package
0.0.0-20230226003218-1dd1f65bfa42
Repository: https://github.com/c4-project/c4t.git
Documentation: pkg.go.dev

# Packages

Package runner contains low-level code for running the machine node via SSH and locally.

# Functions

AllowReinvoke sets whether the invoker should allow the re-invocation of plans that have already been invoked.
New constructs a new Invoker with local directory ldir, runner factory fac, and options o.
ObserveCopiesWith adds each observer given to the invoker's copy observer pool.
ObserveMachWith adds each observer given to the invoker's machine observer pool.
Options bundles the separate options ops into a single option.
OverrideBaseQuantities overrides the base quantity set with qs.
OverrideQuantitiesFromPlanThen tells the invoker to override its base quantity set with the quantities in the incoming plan, and then override them again using qs.

# Variables

ErrDirEmpty occurs when the local directory filepath is empty.

# Structs

ConfigPlanQuantityOverrider overrides quantities by looking up the machine that the plan targets in a config map, then extracting the overrides from there.
Invoker runs the machine-runner, through SSH if needed.
NopPlanQuantityOverrider is a PlanQuantityOverrider that doesn't actually override quantities.

# Interfaces

Observer is the union of the various interfaces of observers used by invoker.
PlanQuantityOverrider is the interface of things that may, or may not, override the invoker's quantity set with quantities according to information in a plan.

# Type aliases

Option is the type of options for the invoker.