build

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: Apache-2.0 Imports: 7 Imported by: 26

Documentation

Index

Constants

View Source
const SuccessStatusCode = build.SuccessStatusCode

SuccessStatusCode is the status code returned for success.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	build.Build

	// Buildpack represents the metadata associated with a buildpack.
	Buildpack buildpackPkg.Buildpack

	// DependencyBuildPlans contains all contributed dependencies.
	DependencyBuildPlans buildplan.BuildPlan

	// Layers represents the launch layers contributed by a buildpack.
	Layers layersCf.Layers

	// Logger is used to write debug and info to the console.
	Logger loggerPkg.Logger
}

Build is an extension to libbuildpack.Build that allows additional functionality to be added.

func DefaultBuild

func DefaultBuild() (Build, error)

DefaultBuild creates a new instance of Build using default values.

func (Build) String

func (b Build) String() string

String makes Build satisfy the Stringer interface.

func (Build) Success added in v1.26.0

func (b Build) Success(buildPlan buildplan.BuildPlan) (int, error)

Success signals a successful build by exiting with a zero status code.

Jump to

Keyboard shortcuts

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