Documentation
¶
Overview ¶
Package cluster composes a machine's local runtime with remote runtimes for its peers (spec 022). It implements core/runtime.Runtime by dispatching each RunSpec to the transport for spec.Machine: the local name (or empty) runs on the local runtime; any other name runs on that machine's remote runtime.
The machine is chosen upstream by deterministic placement (core/machines); cluster only carries the run to the resolved transport, so core/engine stays unaware of local-vs-remote.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime is the per-machine composite runtime.
func New ¶
New builds a cluster runtime: localName identifies this machine, localRT runs its work, and remotes maps peer machine names to their runtimes.
func (*Runtime) Add ¶ added in v0.6.0
Add installs (or replaces) the transport for a peer machine. Used by mesh enrollment (spec 024) to apply a join without restarting the daemon.