Skip to main content
Version: 0.13.0

Reference

The reference states each part of Yoke exactly: what it accepts, what it gives back, and what it refuses. It is where you look something up once you know what you are looking for, such as a variable a unit is launched with, the stage at which an admission was refused, or the code an error carries. Each area opens by saying what the part is for and where it sits, and each page opens by saying what it covers. The tables beneath are the lookup layer, complete for the release this set documents. The reference states and does not argue: the ideas the whole rests on are in Understanding Yoke, and a worked example is in Building an application.

The plugin surface​

The contract between the Core and a Plugin unit — one running copy of a Plugin, the program that holds a part of an application's logic. A unit is launched by the Core, admitted at a gate, and then lives inside one Session.

Read it to know exactly what a library does on a Plugin author's behalf, or to write a library of your own. A unit's life on this surface, from its launch to the end of its Session:

PageWhat it covers
What a unit arrives withthe five environment variables, what a unit is not given, the order of its first acts, the startup window
The Manifestthe document that speaks for a Plugin before it runs: its keys, its absences, what is refused
Admissionthe gate: four inputs, nine ordered stages, three outcomes, the grant
The Sessionidentity, validity, opening and closing, revocation, the envelope, correlation, validation
The familiesthe eight kinds of message, their direction, acknowledgements, events, health
Capabilitiesthe names three parties share: families, naming rules, how a grant is stored
Streams and transportsactivation, the two tolerances, the frame, shared objects, how a stream ends
The wirethe two services, the registration exchange, the envelope, the payloads, the error codes

The administrative surface​

The contract every administrative client speaks — the manager, a command-line tool, a script, a person connected to a running instance. It administers one instance from the inside, in two projections: a call and an answer, or a connection held open.

Read it to know exactly what yoke's client verbs and yoke shell do, or to write an administrative tool of your own. What the surface reaches, and from where:

PageWhat it covers
What it administerswhat the surface reaches, what sits outside it, the one pair of addresses per instance
The two projectionsthe operator and shell projections, what differs and what does not, correlation and completion
Reaching itthe socket as the whole of the authorisation, the actor, connections, liveness
The operationsthe seventeen operations, what a change answers, how an operation about a unit reaches it
Reads and the logthe six readable subjects, their records, querying and following the log store
Subscriptionswhat a subscription promises here, its filter, the standing subscription
Refusals and the stopthe codes, what is answered while the instance stops, three kinds of news
The wirethe two services over one union, the frame, ordering, the version

Events​

What the Core publishes about a deployment, on either surface: one envelope, one severity scale, and a set of types that grows as producers appear.

Read it to follow a deployment from a panel or a tool, or to know exactly what a subscriber is owed. Where an event comes from, and how a consumer that missed one recovers:

PageWhat it covers
The envelopethe eight fields, the six subject kinds, the four actor classes, the sequence and cause
Severitythe scale and its anchors, who grades, what severity never decides, the edge of the scale
Level and edgethe two classes, and the rule joining each to a snapshot or to the log store
A subscriptionthe five rules a subscriber is owed, and the confirmed subscription
Names and filteringthe grammar of a type's name, the four filter axes, handling an unknown type
The catalogueevery type as it stands: class, severity, detail, durable counterpart

The interface surface​

The contract an application is used through — a panel on an instrument, a browser, a remote operator's tool. A deployment declares its channels; a client attaches to one and commands units, follows what the deployment is doing, and receives streams.

Read it to write an interface, or to know exactly what the reference clients and an interface library do. Two channels of one deployment, and what passes through the Core:

PageWhat it covers
Channelsthe declaration, managed and attached, where a channel is bound, the two traffic shapes
The projectionslocal and http+ws, the two axes, what every projection carries
Attachingcardinality, who the client is, the opening picture, what ends an attachment, confirmation
The operationsthe eleven operations, what is opaque, what authorises one, the order of refusals
What a channel seesobserved and addressed, the subscription, what a suspended channel keeps
Arbitrationholding, the computation, the two grades, how a suspension ends, the local reclaim
Streams to clientsstarting and subscribing, the three delivery paths, what is preserved, what ends a delivery
The wirethe typed service and its frame, the browser paths, ordering, the version, the error codes
A routable channelTLS 1.3 alone, the certificate and key in the instance's state, what a client verifies
Signing inthe host's answer through yoke-auth, the session token, the cookie, a browser end to end

Containerised units​

A unit may run in a container instead of on the host, when it needs what the host does not have. The unit is the same unit; what changes is how it is started and isolated.

PageWhat it covers
What changes in a containerwhat stays the same, declaring an image, the channel across the boundary, no network by default
Identity and needswho the process runs as, per engine and mode; what each declared need expands into
The enginereaching it, what is asked of it, a quiet engine and its return, a managed interface in a container

Retention​

How the log store is kept from growing without bound: three limits, per unit.

PageWhat it covers
Retentionthe three limits, the group, a group's policy, when the cleaner runs, the worst case

The package​

How an application travels to a host and is installed there: one file, checked before it is opened, expanded into a tree nothing at runtime writes.

An application's path in the application form, from a project to a running instance, across this area, the manager, the guardian and the composer:

PageWhat it covers
The filethe payload and the footer, its fields, the three checks and the order a host performs them, sealing
Trust and sealingpackages.conf, rotating a key, what removing one reaches, the credential that opens a sealed package
Installingthe eleven steps, obtaining images, what is reported, what a failure leaves
The install rootthe shared tree, who owns what, the install record, what is read rather than written

The manager​

yoke, the one command: lifecycle verbs on what is declared, client verbs on what is running.

PageWhat it covers
The command linethe two halves, the namespaces, every lifecycle verb and where it goes, the exit statuses
Configurationmanager.conf, its four keys and their defaults, what is checked of the install root, what it may never say
Instancescreating and naming one, the values a site supplies, a run with no record, copying state, reading one
Updating and removalan update as four operations, rolling back, the three removals, the one reclaiming verb
Migrating statethe data range, the stamp beside the state, a migration unit and when it is skipped
The shellone held connection, a line as a client verb, events between answers, how it ends

The guardian​

The one process per account that brings declared instances to their desired state, and makes an instance that loses its Core lose everything in it.

Read it to know what keeps an instance running in the application form, and what happens when its Core falls silent. Who does what:

PageWhat it covers
The instance recordwhere a record sits, its fields, an ephemeral record, who writes it and how
The guardian and its channelits two duties, how it starts and exits, what it never acquires, the four messages, the why
Reconcilingwhat wakes it, what it derives, starting and stopping, a refused start, a failed one, the control group
Watching a Corethe liveness signal, the bounded escalation on a silence, coming back

Secrets​

PageWhat it covers
Secretsdeclared, supplied without being displayed, delivered as a file, refused when missing, never copied across

The composer​

yoke-compose, the tool an application is written and packaged with, on a workstation and never on the device.

PageWhat it covers
A projectthe working directory, the two sidecars, building a package, the exit statuses
Writing a descriptiona verb for every field, set by a finding's path, remove, what a verb refuses, start to finish
Blockswhat a block holds, placing one, where it comes from, the record, saving one
Advice and waiversthe five advisories, when each is raised and where, waiving one, stale waivers
Carrying a project forwardthe model a descriptor states, the chain of steps, what is refused, what it reports

The libraries​

What a program outside the Core links to speak a contract: one library per contract, in each language that offers it.

PageWhat it covers
The interface librarythe three libraries and their base, what the interface library does and never does, using it from C++

The example​

PageWhat it covers
A walk through the examplecom.yoke.station from the file to a running bench, an update, and the same bench as a service

An image​

How Yoke reaches an embedded Linux image built with the Yocto Project, for an integrator who adds the layer to a build of their own.

PageWhat it covers
The layertaking the layer, which packages go on a device and which do not, what the init system is given, a deployment in the service form, the images the layer is tested with