Documentation
¶
Index ¶
Constants ¶
View Source
const ( // FailStatusCode is the status code returned for fail. FailStatusCode = 100 // PassStatusCode is the status code returned for pass. PassStatusCode = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detect ¶
type Detect struct {
// Application is the application being processed by the buildpack.
Application applicationPkg.Application
// Buildpack represents the metadata associated with a buildpack.
Buildpack buildpackPkg.Buildpack
// BuildPlan represents dependencies contributed by previous builds.
BuildPlan buildplanPkg.BuildPlan
// BuildPlanWriter is the writer used to write the BuildPlan in Pass().
BuildPlanWriter buildplanPkg.Writer
// Logger is used to write debug and info to the console.
Logger loggerPkg.Logger
// Platform represents components contributed by the platform to the buildpack.
Platform platformPkg.Platform
// Stack is the stack currently available to the application.
Stack string
}
Detect represents all of the components available to a buildpack at detect time.
func DefaultDetect ¶
DefaultDetect creates a new instance of Detect using default values.
func (Detect) Error ¶
Error signals an error during detection by exiting with a specified non-zero, non-100 status code.
Click to show internal directories.
Click to hide internal directories.