stages

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Names

func Names() (names []string)

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.

func (*Name) Set

func (s *Name) Set(val string) error

func (Name) String

func (s Name) String() string

type Stage

type Stage interface {
	Run(config types.Config) bool
	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) 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL