launch

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EnvAppDir      = "CNB_APP_DIR"
	EnvLayersDir   = "CNB_LAYERS_DIR"
	EnvNoColor     = "CNB_NO_COLOR" // defaults to false
	EnvPlatformAPI = "CNB_PLATFORM_API"
	EnvProcessType = "CNB_PROCESS_TYPE"

	DefaultPlatformAPI = ""
	DefaultProcessType = "web"

	DefaultExecExt = path.ExecExt
)
View Source
const CodeForFailed = 1

Variables

View Source
var (
	DefaultAppDir    = filepath.Join(path.RootDir, "workspace")
	DefaultLayersDir = filepath.Join(path.RootDir, "layers")
)

Functions

This section is empty.

Types

type DefaultExiter

type DefaultExiter struct{}

func (*DefaultExiter) CodeFor

func (e *DefaultExiter) CodeFor(errType LifecycleExitError) int

type Exiter

type Exiter interface {
	CodeFor(errType LifecycleExitError) int
}

func NewExiter

func NewExiter(_ string) Exiter

NewExiter configures a new Exiter according to the provided Platform API version.

type LifecycleExitError

type LifecycleExitError int
const (
	LaunchError LifecycleExitError = iota
)

type Platform

type Platform struct {
	Exiter
	// contains filtered or unexported fields
}

func NewPlatform

func NewPlatform(apiStr string) *Platform

func (*Platform) API

func (p *Platform) API() *api.Version

Jump to

Keyboard shortcuts

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