system

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// VelaHomeEnv defines vela home system env
	VelaHomeEnv = "VELA_HOME"
	// StorageDriverEnv defines vela storage driver env
	StorageDriverEnv = "STORAGE_DRIVER"
)

Variables

This section is empty.

Functions

func CreateIfNotExist

func CreateIfNotExist(dir string) (bool, error)

CreateIfNotExist create dir if not exist

func GetCapCenterDir

func GetCapCenterDir() (string, error)

GetCapCenterDir return cap center dir

func GetCapabilityDir

func GetCapabilityDir() (string, error)

GetCapabilityDir return capability dirs including workloads and traits

func GetCurrentEnvPath

func GetCurrentEnvPath() (string, error)

GetCurrentEnvPath return current env config

func GetDefaultFrontendDir

func GetDefaultFrontendDir() (string, error)

GetDefaultFrontendDir return default vela frontend dir

func GetRepoConfig

func GetRepoConfig() (string, error)

GetRepoConfig return repo config

func GetVelaHomeDir

func GetVelaHomeDir() (string, error)

GetVelaHomeDir return vela home dir

func InitCapCenterDir

func InitCapCenterDir() error

InitCapCenterDir create dir if not exits

func InitCapabilityDir

func InitCapabilityDir() error

InitCapabilityDir create dir if not exits

func InitDirs

func InitDirs() error

InitDirs create dir if not exits

Types

This section is empty.

Jump to

Keyboard shortcuts

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