env

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildEnvWhitelist = []string{
	"CNB_STACK_ID",
	"HOSTNAME",
	"HOME",
}
View Source
var LaunchEnvBlacklist = []string{
	"CNB_LAYERS_DIR",
	"CNB_APP_DIR",
	"CNB_PROCESS_TYPE",
}
View Source
var POSIXBuildEnv = map[string][]string{
	"bin": {
		"PATH",
	},
	"lib": {
		"LD_LIBRARY_PATH",
		"LIBRARY_PATH",
	},
	"include": {
		"CPATH",
	},
	"pkgconfig": {
		"PKG_CONFIG_PATH",
	},
}
View Source
var POSIXLaunchEnv = map[string][]string{
	"bin": {"PATH"},
	"lib": {"LD_LIBRARY_PATH"},
}

Functions

This section is empty.

Types

type Env

type Env struct {
	RootDirMap map[string][]string
	Vars       map[string]string
}

func NewBuildEnv

func NewBuildEnv(environ []string) *Env

func NewLaunchEnv

func NewLaunchEnv(environ []string) *Env

func (*Env) AddEnvDir

func (p *Env) AddEnvDir(envDir string) error

func (*Env) AddRootDir

func (p *Env) AddRootDir(baseDir string) error

func (*Env) Get added in v0.7.1

func (p *Env) Get(k string) string

Get returns the value for the given key

func (*Env) List

func (p *Env) List() []string

func (*Env) WithPlatform

func (p *Env) WithPlatform(platformDir string) (out []string, err error)

Jump to

Keyboard shortcuts

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