Documentation
¶
Index ¶
- Variables
- func CopyFilesToImage(myBaton *baton.Baton) ciutil.OnWriterFunc
- func CreateDockerfile(buildRoot string, fnOnCreate ciutil.OnWriterFunc) error
- func DebugDockerfile(buildRoot string) func(log logger.Log) error
- func GetDockerImageTag(myBaton *baton.Baton, stage string) string
- type BuildID
- type OnBuildContextFunc
- type OnGenericFunc
- type OnProfileFunc
- type Pipeline
- type PipelineRunExecFunc
- type PipelineRunReturnFunc
- type Profile
Constants ¶
This section is empty.
Variables ¶
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 ¶
func CopyFilesToImage ¶
func CopyFilesToImage(myBaton *baton.Baton) ciutil.OnWriterFunc
CopyFilesToImage copies the files from dockerdirectory to image
func CreateDockerfile ¶
func CreateDockerfile(buildRoot string, fnOnCreate ciutil.OnWriterFunc) error
Types ¶
type OnBuildContextFunc ¶
type OnBuildContextFunc func(buildRoot string) (PipelineRunExecFunc, error)
OnBuildContextFunc represents a function to act on the given build context
func GetBuildContextFunc ¶
func GetBuildContextFunc(createDockerClientFunc cidocker.CreateDockerClientFunc, imageBuildOptions *types.ImageBuildOptions, result *types.BuildResult) OnBuildContextFunc
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 BuildID, info interface{}) 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 PipelineRunExecFunc ¶
PipelineRunExecFunc represents the functor to return after a pipeline run
func BuildDockerImage ¶
func BuildDockerImage(buildDirectory string, prefix string, fnCreateBuildContext ciutil.OnDirFunc, fnOnBuildContext OnBuildContextFunc) PipelineRunExecFunc
BuildDockerImage creates the temporary directory for buildContext, and builds a docker image from the same directory as a build context
func RunOnClientFunc ¶
func RunOnClientFunc(createDockerClientFunc cidocker.CreateDockerClientFunc, fnOnClient cidocker.OnClientFunc) PipelineRunExecFunc
RunOnClientFunc runs the given OnClientFunc on the system
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