Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBatonNotPresent indicates the wrong type of data structure passed between pipelines. Internal / Programmatic error ErrBatonNotPresent = errors.New("right data structure not present between pipelines") )
Functions ¶
This section is empty.
Types ¶
type OnGenericFunc ¶
type OnGenericFunc func() error
OnGenericFunc represents a function that returns an error or otherwise
type OnProfileFunc ¶
OnProfileFunc is a function executed on the receipt of a given profile
type Pipeline ¶
type Pipeline interface { // Runs a bunch of processes based on the given config Run(config *config.Config, buildID cidocker.BuildID, myBaton *baton.Baton) PipelineRunReturnFunc // GetNames returns the names of the pipelines . Returns a tuple , a key and a long descriptive name GetNames() (key string, longName string) }
Pipeline builds and executes a given set of commands
type PipelineRunReturnFunc ¶
PipelineRunReturnFunc represents the functor to return after a pipeline run
type Profile ¶
Profile represents the start and end time of a profile
func RunProfile ¶
func RunProfile(name string, fnOnGenericFunc OnGenericFunc) (*Profile, error)
RunProfile returns a profile along with the status of the function
Click to show internal directories.
Click to hide internal directories.