gcb

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StatusUnknown "STATUS_UNKNOWN" - Status of the build is unknown.
	StatusUnknown = "STATUS_UNKNOWN"

	// StatusQueued "QUEUED" - Build is queued; work has not yet begun.
	StatusQueued = "QUEUED"

	// StatusWorking "WORKING" - Build is being executed.
	StatusWorking = "WORKING"

	// StatusSuccess  "SUCCESS" - Build finished successfully.
	StatusSuccess = "SUCCESS"

	// StatusFailure  "FAILURE" - Build failed to complete successfully.
	StatusFailure = "FAILURE"

	// StatusInternalError  "INTERNAL_ERROR" - Build failed due to an internal cause.
	StatusInternalError = "INTERNAL_ERROR"

	// StatusTimeout  "TIMEOUT" - Build took longer than was allowed.
	StatusTimeout = "TIMEOUT"

	// StatusCancelled  "CANCELLED" - Build was canceled by a user.
	StatusCancelled = "CANCELLED"

	// RetryDelay is the time to wait in between polling the status of the cloud build
	RetryDelay = 1 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	*latest.GoogleCloudBuild
	// contains filtered or unexported fields
}

Builder builds artifacts with Google Cloud Build.

func NewBuilder

func NewBuilder(runCtx *runcontext.RunContext) *Builder

NewBuilder creates a new Builder that builds artifacts with Google Cloud Build.

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, out io.Writer, tags tag.ImageTags, artifacts []*latest.Artifact) ([]build.Artifact, error)

Build builds a list of artifacts with Google Cloud Build.

func (*Builder) DependenciesForArtifact added in v0.28.0

func (b *Builder) DependenciesForArtifact(ctx context.Context, a *latest.Artifact) ([]string, error)

DependenciesForArtifact returns the dependencies for this artifact

func (*Builder) Labels

func (b *Builder) Labels() map[string]string

Labels are labels specific to Google Cloud Build.

func (*Builder) Prune added in v0.28.0

func (b *Builder) Prune(ctx context.Context, out io.Writer) error

func (*Builder) SyncMap added in v0.32.0

func (b *Builder) SyncMap(ctx context.Context, artifact *latest.Artifact) (map[string][]string, error)

Jump to

Keyboard shortcuts

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