launch

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 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 = "0.3"
	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(platformAPI string) Exiter

type LegacyExiter

type LegacyExiter struct{}

func (*LegacyExiter) CodeFor

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

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