Documentation ¶
Overview ¶
import github.com/dmcsorley/goblin/cibuild
import github.com/dmcsorley/goblin/cibuild
import github.com/dmcsorley/goblin/cibuild
import github.com/dmcsorley/goblin/cibuild
import github.com/dmcsorley/goblin/cibuild
import github.com/dmcsorley/goblin/cibuild
import github.com/dmcsorley/goblin/cibuild
import github.com/dmcsorley/goblin/cibuild
Index ¶
Constants ¶
View Source
const ( TimeFormat = time.RFC3339Nano WorkDir = "/tmp/workdir" BuildContainerPrefix = "goblin-build-" VolumePrefix = "goblin-volume-" )
View Source
const ( GitClone StepType = "git-clone" DockerBuild StepType = "docker-build" DockerRun StepType = "docker-run" DockerPull StepType = "docker-pull" DockerPush StepType = "docker-push" DockerLogin StepType = "docker-login" UrlKey = "url" ImageKey = "image" DirKey = "dir" CmdKey = "cmd" UsernameKey = "username" PasswordKey = "password" )
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶
func Cleanup(eb *gobdocker.ExitedBuild)
Types ¶
type Build ¶
type Build struct { Id string // contains filtered or unexported fields }
func New ¶
func New(t time.Time, bc *BuildConfig, vr ValueResolver) *Build
func (*Build) StepPrefix ¶
func (*Build) VolumeName ¶
type BuildConfig ¶
type DockerBuildStep ¶
type DockerBuildStep struct {
// contains filtered or unexported fields
}
func (*DockerBuildStep) Cleanup ¶
func (dbs *DockerBuildStep) Cleanup(se StepEnvironment)
func (*DockerBuildStep) Step ¶
func (dbs *DockerBuildStep) Step(se StepEnvironment) error
type DockerLoginStep ¶
type DockerLoginStep struct {
// contains filtered or unexported fields
}
func (*DockerLoginStep) Cleanup ¶
func (dls *DockerLoginStep) Cleanup(se StepEnvironment)
func (*DockerLoginStep) Step ¶
func (dls *DockerLoginStep) Step(se StepEnvironment) error
type DockerPullStep ¶
type DockerPullStep struct {
// contains filtered or unexported fields
}
func (*DockerPullStep) Cleanup ¶
func (dps *DockerPullStep) Cleanup(se StepEnvironment)
func (*DockerPullStep) Step ¶
func (dps *DockerPullStep) Step(se StepEnvironment) error
type DockerPushStep ¶
type DockerPushStep struct {
// contains filtered or unexported fields
}
func (*DockerPushStep) Cleanup ¶
func (dps *DockerPushStep) Cleanup(se StepEnvironment)
func (*DockerPushStep) Step ¶
func (dps *DockerPushStep) Step(se StepEnvironment) error
type DockerRunStep ¶
type DockerRunStep struct {
// contains filtered or unexported fields
}
func (*DockerRunStep) Cleanup ¶
func (drs *DockerRunStep) Cleanup(se StepEnvironment)
func (*DockerRunStep) Step ¶
func (drs *DockerRunStep) Step(se StepEnvironment) error
type GitCloneStep ¶
type GitCloneStep struct {
// contains filtered or unexported fields
}
func (*GitCloneStep) Cleanup ¶
func (gcs *GitCloneStep) Cleanup(se StepEnvironment)
func (*GitCloneStep) Step ¶
func (gcs *GitCloneStep) Step(se StepEnvironment) error
type StepEnvironment ¶
type Stepper ¶
type Stepper interface { Step(StepEnvironment) error Cleanup(StepEnvironment) }
func NewStep ¶
func NewStep(index int, sr *config.StepRecord, vv ValueValidator) (Stepper, error)
type ValueResolver ¶
type ValueValidator ¶
Click to show internal directories.
Click to hide internal directories.