package
0.0.0-20230226003218-1dd1f65bfa42
Repository: https://github.com/c4-project/c4t.git
Documentation: pkg.go.dev
# Functions
FactoryFromRemoteConfig creates a remote factory using gc and mc, if mc is non-nil; else, it creates a local factory.
NewLocalRunner creates a new LocalRunner.
NewRemoteFactory opens a SSH connection using Config and mc.
NewRemoteRunner creates a new RemoteRunner.
# Structs
FromPlanFactory is a runner factory that instantiates either a SSH or local runner depending on the machine configuration inside the first plan passed to it.
LocalFactory allows spawning of local runners using said path as the local directory.
LocalRunner runs the machine-runner locally.
RemoteFactory is a factory that produces runners in the form of SSH sessions.
RemoteRunner runs the machine-runner via SSH.
# Interfaces
Factory is the interface of factories for machine node runners.
InvocationGetter is the interface of types that tell the invoker how to invoke the machine node.
Runner is the interface of types that know how to run the machine node.