Documentation
¶
Index ¶
- Variables
- func CopyFilesToImage(myBaton *baton.Baton) ciutil.OnWriterFunc
- func GetBuildOptionsFunc(buildRoot string) *cidocker.BuildOptions
- func GetContainerName(buildID BuildID, suffix string) string
- func GetDockerImageTag(myBaton *baton.Baton, stage string) string
- type BuildID
- type OnBuildContextFunc
- type OnBuildOptionsFunc
- 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 GetBuildOptionsFunc ¶ added in v0.1.10
func GetBuildOptionsFunc(buildRoot string) *cidocker.BuildOptions
GetBuildOptionsFunc returns the default build options for the given buildRoot
func GetContainerName ¶ added in v0.1.7
GetContainerName returns the name of the container with the suffix
Types ¶
type BuildID ¶
type BuildID string
BuildID represents the identification of a given build.
func GetTargetBuildID ¶ added in v0.1.6
GetTargetBuildID returns the buildID with the suffix appended
type OnBuildContextFunc ¶
type OnBuildContextFunc func(buildOptions *cidocker.BuildOptions) (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
GetBuildContextFunc represents the function to return the build context
type OnBuildOptionsFunc ¶ added in v0.1.10
type OnBuildOptionsFunc func(buildRoot string) *cidocker.BuildOptions
OnBuildOptionsFunc represents a function to build options
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, 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 PipelineRunExecFunc ¶
PipelineRunExecFunc represents the functor to return after a pipeline run
func BuildDockerImage ¶
func BuildDockerImage(buildDirectory string, prefix string, fnCreateBuildContext ciutil.OnDirFunc, fnOnBuildOptions OnBuildOptionsFunc, 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