procfile

package
v5.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
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

type Build struct {
	Logger bard.Logger
}

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

func NewProcfileFromBinding(binds libcnb.Bindings) (Procfile, error)

NewProcfileFromBinding creates a Procfile by reading Procfile from bindings if it exists. If it does not exist, returns an empty Procfile.

func NewProcfileFromEnvironment added in v5.8.0

func NewProcfileFromEnvironment() (Procfile, error)

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 added in v5.8.0

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

func NewProcfileFromPath(path string) (Procfile, error)

NewProcfileFromPath creates a Procfile by reading Procfile from path if it exists. If it does not exist, returns an empty Procfile.

Jump to

Keyboard shortcuts

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