env

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Prefix is used to select environment variables that should be contributed to the image
	Prefix             = "BPE_"
	PrefixTypeAppend   = Prefix + "APPEND_"
	PrefixTypeDefault  = Prefix + "DEFAULT_"
	PrefixTypeDelim    = Prefix + "DELIM_"
	PrefixTypeOverride = Prefix + "OVERRIDE_"
	PrefixTypePrepend  = Prefix + "PREPEND_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Logger bard.Logger
}

func (Build) Build

func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error)

func (Build) LogConfiguration

func (b Build) LogConfiguration()

type Detect

type Detect struct{}

func (Detect) Detect

func (Detect) Detect(context libcnb.DetectContext) (libcnb.DetectResult, error)

type Variables

type Variables struct {
	libcnb.Environment
	LayerContributor libpak.LayerContributor
	Logger           bard.Logger
}

func NewVariables

func NewVariables(vars map[string]string) *Variables

func (Variables) Contribute

func (v Variables) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (Variables) Name

func (Variables) Name() string

Jump to

Keyboard shortcuts

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