local

package
v0.0.0-...-a355528 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvInfrakitHome is the environment variable for defining the top level working directory
	// for infrakit.
	EnvInfrakitHome = "INFRAKIT_HOME"
)

Variables

This section is empty.

Functions

func EnsureDir

func EnsureDir(dir string) error

EnsureDir ensures the directory exists

func Getenv

func Getenv(env string, defaultValue string) string

Getenv returns the value at the environment variable 'env'. If the value is not found then default value is returned

func InfrakitHome

func InfrakitHome() string

InfrakitHome returns the directory of INFRAKIT_HOME if specified. Otherwise, it will return the user's home directory. If that cannot be determined, then it returns the current working directory. If that still cannot be determined, a temporary directory is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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