function

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

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

Detect is a member function that implements packit.DetectFunc

Jump to

Keyboard shortcuts

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