detect

package
v1.48.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 12

Documentation

Index

Constants

View Source
const (
	// FailStatusCode is the status code returned for fail.
	FailStatusCode = detect.FailStatusCode

	// PassStatusCode is the status code returned for pass.
	PassStatusCode = detect.PassStatusCode
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Detect

type Detect struct {
	detect.Detect

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

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

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

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

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

func DefaultDetect

func DefaultDetect() (Detect, error)

DefaultDetect creates a new instance of Detect using default values. During initialization, all platform environment variables are set in the current process environment.

func (Detect) String

func (d Detect) String() string

String makes Detect satisfy the Stringer interface.

Jump to

Keyboard shortcuts

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