Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(stage StageCreator)
Types ¶
type Name ¶
type Name string
Name is used to identify a StageCreator (which instantiates the stage of the same name) from the command line. It must be in the set of registered stages.
type Stage ¶
type Stage interface { Run(config types.Config) error Apply(config types.Config, ignoreUnsupported bool) error Name() string }
Stage is responsible for actually executing a stage of the configuration.
type StageCreator ¶
type StageCreator interface { Create(logger *log.Logger, root string, f resource.Fetcher, state *state.State) Stage Name() string }
StageCreator is responsible for instantiating a particular stage given a logger and root path under the root partition.
func Get ¶
func Get(name string) StageCreator
Click to show internal directories.
Click to hide internal directories.