build

package
v1.85.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: Apache-2.0 Imports: 8 Imported by: 22

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 buildpack.Buildpack

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

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

	// Plans represents required contributions.
	Plans buildpackplan.Plans

	// Runner is used to run commands outside of the process.
	Runner runner.Runner

	// Services represents the services bound to the application.
	Services services.Services
}

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. During initialization, all platform environment // variables are set in the current process environment.

func (Build) Success added in v1.26.0

func (b Build) Success(plans ...buildpackplan.Plan) (int, error)

Success signals a successful build by exiting with a zero status code. Combines specied build plan with build plan entries for all contributed dependencies.

Jump to

Keyboard shortcuts

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