launch

package
v0.21.23 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
	// EnvExecEnv is the target execution environment. Standard values include "production", "test", and "development".
	EnvExecEnv     = "CNB_EXEC_ENV"
	DefaultExecEnv = "production"

	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