cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLayersDir     = "/layers"
	DefaultAppDir        = "/workspace"
	DefaultBuildpacksDir = "/buildpacks"
	DefaultPlatformDir   = "/platform"
	DefaultOrderPath     = "/buildpacks/order.toml"
	DefaultGroupPath     = "./group.toml"
	DefaultStackPath     = "/buildpacks/stack.toml"
	DefaultPlanPath      = "./plan.toml"

	EnvLayersDir     = "CNB_LAYERS_DIR"
	EnvAppDir        = "CNB_APP_DIR"
	EnvBuildpacksDir = "CNB_BUILDPACKS_DIR"
	EnvPlatformDir   = "CNB_PLATFORM_DIR"
	EnvOrderPath     = "CNB_ORDER_PATH"
	EnvGroupPath     = "CNB_GROUP_PATH"
	EnvStackPath     = "CNB_STACK_PATH"
	EnvPlanPath      = "CNB_PLAN_PATH"
	EnvUseDaemon     = "CNB_USE_DAEMON"       // defaults to false
	EnvUseHelpers    = "CNB_USE_CRED_HELPERS" // defaults to false
	EnvRunImage      = "CNB_RUN_IMAGE"
	EnvCacheImage    = "CNB_CACHE_IMAGE"
	EnvUID           = "CNB_USER_ID"
	EnvGID           = "CNB_GROUP_ID"
	EnvRegistryAuth  = "CNB_REGISTRY_AUTH"
)
View Source
const (
	CodeFailed      = 1
	CodeInvalidArgs = iota + 2
	CodeInvalidEnv
	CodeNotFound
	CodeFailedDetect
	CodeFailedBuild
	CodeFailedLaunch
	CodeFailedUpdate
)

Variables

This section is empty.

Functions

func Exit

func Exit(err error)

func FailCode

func FailCode(code int, action ...string) error

func FailErr

func FailErr(err error, action ...string) error

func FailErrCode

func FailErrCode(err error, code int, action ...string) error

func FlagAppDir

func FlagAppDir(dir *string)

func FlagBuildpacksDir

func FlagBuildpacksDir(dir *string)

func FlagCacheImage

func FlagCacheImage(image *string)

func FlagGID

func FlagGID(gid *int)

func FlagGroupPath

func FlagGroupPath(path *string)

func FlagLayersDir

func FlagLayersDir(dir *string)

func FlagOrderPath

func FlagOrderPath(path *string)

func FlagPlanPath

func FlagPlanPath(path *string)

func FlagPlatformDir

func FlagPlatformDir(dir *string)

func FlagRunImage

func FlagRunImage(image *string)

func FlagStackPath

func FlagStackPath(path *string)

func FlagUID

func FlagUID(uid *int)

func FlagUseCredHelpers

func FlagUseCredHelpers(use *bool)

func FlagUseDaemon

func FlagUseDaemon(use *bool)

Types

type ErrorFail

type ErrorFail struct {
	Err    error
	Code   int
	Action []string
}

func (*ErrorFail) Error

func (e *ErrorFail) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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