Documentation
¶
Index ¶
- Constants
- func CreateIfNotExist(dir string) (bool, error)
- func GetCapCenterDir() (string, error)
- func GetCapabilityDir() (string, error)
- func GetCurrentEnvPath() (string, error)
- func GetDefaultFrontendDir() (string, error)
- func GetEnvDir() (string, error)
- func GetRepoConfig() (string, error)
- func GetVelaHomeDir() (string, error)
- func InitCapCenterDir() error
- func InitCapabilityDir() error
- func InitDefaultEnv() error
- func InitDirs() error
Constants ¶
View Source
const (
// VelaHomeEnv defines vela home system env
VelaHomeEnv = "VELA_HOME"
// StorageDriverEnv defines vela storage driver env
StorageDriverEnv = "STORAGE_DRIVER"
)
View Source
const EnvConfigName = "config.json"
EnvConfigName defines config
Variables ¶
This section is empty.
Functions ¶
func CreateIfNotExist ¶
func CreateIfNotExist(dir string) (bool, error)
CreateIfNotExist create dir if not exist
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.