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 application.Application
// 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
// Platform represents components contributed by the platform to the buildpack.
Platform platform.Platform
// Services represents the services bound to the application.
Services services.Services
// Stack is the stack currently available to the application.
Stack stack.Stack
// Writer is the writer used to write the build plan in Pass().
Writer buildplan.Writer
}
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.