Documentation ¶
Index ¶
Constants ¶
const (
BindingType = "Procfile" // BindingType is used to resolve a binding containing a Procfile
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
func (Build) Build ¶
func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error)
type Detect ¶
type Detect struct{}
func (Detect) Detect ¶
func (d Detect) Detect(context libcnb.DetectContext) (libcnb.DetectResult, error)
type Procfile ¶
type Procfile map[string]interface{}
Procfile is a map between a logical name and a command.
func NewProcfileFromBinding ¶
NewProcfileFromBinding creates a Procfile by reading Procfile from bindings if it exists. If it does not exist, returns an empty Procfile.
func NewProcfileFromEnvironment ¶
NewProcfileFromEnvironment creates a Procfile by reading environment variable BP_PROCFILE_DEFAULT_PROCESS if it exists. If it does not exist, returns an empty Procfile.
func NewProcfileFromEnvironmentOrPathOrBinding ¶
func NewProcfileFromEnvironmentOrPathOrBinding(path string, binds libcnb.Bindings) (Procfile, error)
NewProcfileFromEnvironmentOrPathOrBinding attempts to create a merged Procfile from environment and/or given path and bindings. If none can be created, returns an empty Procfile.
func NewProcfileFromPath ¶
NewProcfileFromPath creates a Procfile by reading Procfile from path if it exists. If it does not exist, returns an empty Procfile.