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 StageCreator ¶
type StageCreator interface { Create(logger *log.Logger, client *resource.HttpClient, root string) 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.