Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { // Logger is used to emit waypoints through the build phase of th elifecycle. Logger scribe.Logger }
Builder is a stateful implementation of packit.BuildFunc to implement the build phase of a Paketo buildpack.
func (*Builder) Build ¶
func (b *Builder) Build(bctx packit.BuildContext) (packit.BuildResult, error)
Build is a member function that implements packit.BuildFunc
type Detector ¶
type Detector struct { // Package holds the name of the user-configured Go package containing // a CloudEvents function. Package string `envconfig:"CE_GO_PACKAGE" default:"."` // Function holds the name of the CloudEvent receiver in Package that this // buildpack should wrap in CloudEvents scaffolding. Function string `envconfig:"CE_GO_FUNCTION" default:"Receiver"` // Protocol holds the name of the protocol to which we will // bind the receiver function. Protocol string `envconfig:"CE_PROTOCOL" default:"http"` }
Detector is a stateful implementation of packit.DetectFunc to implement the detect phase of a Paketo buildpack. It is expected to be initialized from the environment via Kelsey's envconfig library.
func (*Detector) Detect ¶
func (d *Detector) Detect(dctx packit.DetectContext) (packit.DetectResult, error)
Detect is a member function that implements packit.DetectFunc
Click to show internal directories.
Click to hide internal directories.