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
| Term | Means |
|---|---|
| plugin | who 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 |
| unit | one 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 |
| instance | one 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) |
| incarnation | one 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
| Term | Means |
|---|---|
| Plugin unit | a long-running program holding a Session with the Core, the ordinary case (a Plugin) |
| unit that runs to completion | starts, does one job and exits; its exit status is its result. Declared as oneshot |
| managed interface | an interface the Core launches and supervises, so that a channel has a program behind it: a unit with a channel |
| attached interface | a client that arrives on its own and attaches to a channel already bound, such as a browser: a channel with no unit |
| containerised unit | any of the three, run in a container rather than on the host (what changes) |
| interface client | any program that attaches to a channel, managed or not (an interface client) |
| administrative client | any program that speaks the administrative surface: yoke's client verbs, a script, a person at the shell |
What is written down
| Term | Means |
|---|---|
| Manifest | manifest.yaml: what a Plugin declares about itself, before it runs. The same file in both forms (the Manifest) |
| descriptor | yoke.yaml: the description of an application in the application form, and the only source of truth about it |
| composition document | the service form's description of what the deployment runs, in /etc/yoke/deployments/. Configuration of the host, not shipped and not signed |
| package | the application as one file, <id>-<version>.yoke, to be carried and installed (the file) |
| bundle | the package once installed: an unchanging directory holding the descriptor, the Manifests and the application's executables (the install root) |
| project | the working directory an application is written in, which the composer checks and builds into a package (a project) |
| block | a reusable fragment of a project, such as a unit with its parameters, needs and channels, copied in when it is placed (blocks) |
| instance record | instance.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
| Term | Means |
|---|---|
| the Core | yoke-core, the process at the centre of an instance |
| surface | a published contract the Core speaks. There are three: the plugin surface, the administrative surface and the interface surface |
| channel | one way into an application for interfaces, declared by the application and bound by the Core, with an address and a projection (channels) |
| projection | one contract carried on one kind of transport. The interface surface has two, local and http+ws; the administrative surface has two, operator and shell |
| admission | the one gate at which a launched process becomes a participant, decided against the Registry and never against the declaration (admission) |
| Session | what a Plugin unit holds with the Core once admitted. An incarnation holds at most one, and when it ends the incarnation ends (the Session) |
| capability | the name of one permission an operator grants a plugin, governing one object it declared, such as query.info.answer (capabilities) |
| command, query, occurrence | what a Plugin declares besides streams: an instruction it acknowledges, a question it answers, a fact it reports |
| stream | a live flow of data from a unit, started at an interface's request, on a transport the Core creates (streams and transports) |
| event | what the Core tells whoever is watching about what it observed or decided, never a payload of a unit (the envelope) |
| arbitration | a declared order between channels that exclude each other: precedence, never privilege (arbitration) |
| the Registry | the store of what operators decided: which plugins are known and enabled, what each is granted, and who decided it |
| the log store | the store of every unit's output and the lasting record of what happened to it (retention) |
The acts
| Term | Means |
|---|---|
| compose | to state what a deployment runs: which units, with what, over which channels, under which arbitration |
| check | the validation of a description against itself and against the host, before anything runs. It refuses; it authorises nothing |
| install | to expand a package into a bundle and verify what it names. Installing runs nothing the package contains (installing) |
| grant | an operator's decision that a plugin may use a capability, kept in the Registry and read at the next admission |
| reconcile | what the guardian does: bring each declared instance to the state its record asks for (reconciling) |
| need, binding | a 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 |
| parameter | a value a site supplies when it creates an instance, from those the descriptor allows. Never a secret |
| secret | a value a unit needs and nobody should display, supplied apart from the description and delivered to the unit as a file (secrets) |
| waiver | an advisory from the composer that the author set aside, with a reason, recorded beside the project (advice and waivers) |