Skip to main content
Version: 0.15.1

Vocabulary

Every page of this documentation uses these words in one sense only. Four of them carry most of the weight, plugin, unit, instance and incarnation, and a reader who confuses two of them will find later pages ambiguous exactly where they need to be precise. Each term links to the page that states it exactly.

The four names​

TermMeans
pluginwho a program is, a namespaced identity such as com.yoke.station.acquire. What a Manifest declares, what an operator authorises and what a package installs. Authorising it once covers every copy
unitone thing a deployment runs, such as acquire or camera-2. A unit has its own socket, its own Session, its own place in the start order and its own log. A plugin is authorised; a unit is launched, addressed and supervised
instanceone Core and everything it owns: its units, its channels, its Registry and its log store. The service form has one per host; the application form has as many as were created (instances)
incarnationone life of a unit's process, from its start to its exit. A unit outlives its incarnations; each restart is a new one, and the count is kept

What a deployment runs​

TermMeans
Plugin unita long-running program holding a Session with the Core, the ordinary case (a Plugin)
unit that runs to completionstarts, does one job and exits; its exit status is its result. Declared as oneshot
managed interfacean interface the Core launches and supervises, so that a channel has a program behind it: a unit with a channel
attached interfacea client that arrives on its own and attaches to a channel already bound, such as a browser: a channel with no unit
containerised unitany of the three, run in a container rather than on the host (what changes)
interface clientany program that attaches to a channel, managed or not (an interface client)
administrative clientany program that speaks the administrative surface: yoke's client verbs, a script, a person at the shell

What is written down​

TermMeans
Manifestmanifest.yaml: what a Plugin declares about itself, before it runs. The same file in both forms (the Manifest)
descriptoryoke.yaml: the description of an application in the application form, and the only source of truth about it
composition documentthe service form's description of what the deployment runs, in /etc/yoke/deployments/. Configuration of the host, not shipped and not signed
packagethe application as one file, <id>-<version>.yoke, to be carried and installed (the file)
bundlethe package once installed: an unchanging directory holding the descriptor, the Manifests and the application's executables (the install root)
projectthe working directory an application is written in, which the composer checks and builds into a package (a project)
blocka reusable fragment of a project, such as a unit with its parameters, needs and channels, copied in when it is placed (blocks)
instance recordinstance.yaml: which application, at which version, should exist under a name, with which parameters, and whether it should be running (the instance record)

The parts of a running instance​

TermMeans
the Coreyoke-core, the process at the centre of an instance
surfacea published contract the Core speaks. There are three: the plugin surface, the administrative surface and the interface surface
channelone way into an application for interfaces, declared by the application and bound by the Core, with an address and a projection (channels)
projectionone contract carried on one kind of transport. The interface surface has two, local and http+ws; the administrative surface has two, operator and shell
admissionthe one gate at which a launched process becomes a participant, decided against the Registry and never against the declaration (admission)
Sessionwhat a Plugin unit holds with the Core once admitted. An incarnation holds at most one, and when it ends the incarnation ends (the Session)
capabilitythe name of one permission an operator grants a plugin, governing one object it declared, such as query.info.answer (capabilities)
command, query, occurrencewhat a Plugin declares besides streams: an instruction it acknowledges, a question it answers, a fact it reports
streama live flow of data from a unit, started at an interface's request, on a transport the Core creates (streams and transports)
eventwhat the Core tells whoever is watching about what it observed or decided, never a payload of a unit (the envelope)
arbitrationa declared order between channels that exclude each other: precedence, never privilege (arbitration)
the Registrythe store of what operators decided: which plugins are known and enabled, what each is granted, and who decided it
the log storethe store of every unit's output and the lasting record of what happened to it (retention)

The acts​

TermMeans
composeto state what a deployment runs: which units, with what, over which channels, under which arbitration
checkthe validation of a description against itself and against the host, before anything runs. It refuses; it authorises nothing
installto expand a package into a bundle and verify what it names. Installing runs nothing the package contains (installing)
grantan operator's decision that a plugin may use a capability, kept in the Registry and read at the next admission
reconcilewhat the guardian does: bring each declared instance to the state its record asks for (reconciling)
need, bindinga need is a kind of thing a unit must reach, declared with the program: a device, a directory, a secret, a display. A binding is the particular one that satisfies it, supplied where the deployment is composed
parametera value a site supplies when it creates an instance, from those the descriptor allows. Never a secret
secreta value a unit needs and nobody should display, supplied apart from the description and delivered to the unit as a file (secrets)
waiveran advisory from the composer that the author set aside, with a reason, recorded beside the project (advice and waivers)