containerbuilder

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	BuildID       v1.ContainerBuildID
	SystemID      v1.SystemID
	WorkingDir    string
	DockerOptions *DockerOptions
	DockerClient  *dockerclient.Client
	GitOptions    *git.Options
	StatusUpdater StatusUpdater
}

func NewBuilder

func NewBuilder(
	buildID v1.ContainerBuildID,
	systemID v1.SystemID,
	workDirectory string,
	dockerOptions *DockerOptions,
	gitResolverOptions *git.Options,
	updater StatusUpdater,
) (*Builder, error)

func (*Builder) Build

func (b *Builder) Build(containerBuild *definitionv1.ContainerBuild) error

type DockerOptions

type DockerOptions struct {
	Registry             string
	Repository           string
	Tag                  string
	Push                 bool
	RegistryAuthProvider docker.RegistryLoginProvider
}

type ErrorInternal

type ErrorInternal struct {
	// contains filtered or unexported fields
}

func (*ErrorInternal) Error

func (e *ErrorInternal) Error() string

type ErrorUser

type ErrorUser struct {
	// contains filtered or unexported fields
}

func (*ErrorUser) Error

func (e *ErrorUser) Error() string

type Failure

type Failure struct {
	Error error
	Phase v1.ContainerBuildPhase
}

type StatusUpdater

type StatusUpdater interface {
	UpdateProgress(v1.ContainerBuildID, v1.SystemID, v1.ContainerBuildPhase) error
	UpdateError(buildID v1.ContainerBuildID, systemID v1.SystemID, internal bool, err error) error
}

Jump to

Keyboard shortcuts

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