cibuild

package
v0.0.0-...-29bcaae Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2016 License: MIT Imports: 11 Imported by: 0

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) DockerRun

func (build *Build) DockerRun(image string)

func (*Build) ResolveValues

func (build *Build) ResolveValues(param string) (string, error)

func (*Build) Run

func (build *Build) Run()

func (*Build) StepPrefix

func (build *Build) StepPrefix(index int) string

func (*Build) VolumeName

func (build *Build) VolumeName() string

type BuildConfig

type BuildConfig struct {
	Name  string
	Steps []Stepper
}

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 StepEnvironment interface {
	StepPrefix(index int) string
	VolumeName() string
	ResolveValues(string) (string, error)
}

type StepType

type StepType string

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 ValueResolver interface {
	ResolveValues(string) (string, error)
	EnvVars() []string
}

type ValueValidator

type ValueValidator interface {
	ValidateValue(string) error
}

Jump to

Keyboard shortcuts

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