Building an application
This section builds an application from Plugins that already exist, with the programs and libraries Yoke released: a client that reaches it, the project that puts the Plugins together, a run on a local Core, and the ways a finished application leaves the workstation. Every Plugin it runs was written before it, by you or by somebody else. Writing a Plugin is Building a Plugin, and what a Plugin and an application are, and how they differ, is Plugins and applications; this section assumes both.
One worked example runs through every page: com.example.hello, which composes two Plugins — the
greeter you wrote in Building a Plugin, and system-info, a Plugin the Yoke
project publishes — and a client that asks each a question. The client is written in Go, with the Go family's library.
Every family offers the same contracts, so the steps are the same in another language and only the
spelling changes (what each family offers).
| Page | What it covers |
|---|---|
| Taking the Plugins | the project, a Plugin taken from its path and one taken from its repository at a tag, and what each declares |
| The project | the working directory the composer writes: a new build of a Plugin, the channel, a check and a package |
| An interface client | a program that reaches the application through a channel, as a panel or a tool does |
| Running it | a run from the working directory, the grants, a command from yoke, an instance, and what to read when something is wrong |
| Shipping it | the package on a host, the service form a device runs, and an image |
What you need
Yoke installed on this machine, with the composer; git; Go, for the greeter and the client; Rust,
with cargo, for system-info; and the greeter's Plugin project, from
Building a Plugin. The composer builds every Plugin it takes on this machine,
so each one's language has to be here. Nothing in this section needs root. Setting up Yoke obtains the two files of
a release — yoke-<version>-linux-<arch>.tar.gz, the programs a host runs, and
yoke-conformance-<version>-linux-<arch>.tar.gz, which carries yoke-compose — and
installs them; installing for your account alone is enough for every page
here.
yoke-compose is for the workstation and is never installed on a device; a device carries the
runtime.