Documentation
¶
Index ¶
- Constants
- func BindEnvironmentVariables()
- func CreateIfNotExist(dir string) (bool, error)
- func GetCapCenterDir() (string, error)
- func GetCapabilityDir() (string, error)
- func GetCurrentEnvPath() (string, error)
- func GetRepoConfig() (string, error)
- func GetVelaHomeDir() (string, error)
- func InitCapCenterDir() error
- func InitCapabilityDir() error
- func InitDirs() error
Constants ¶
View Source
const (
// LegacyKubeVelaSystemNamespaceEnv the legacy environment variable for kubevela system namespace
LegacyKubeVelaSystemNamespaceEnv = "DEFAULT_VELA_NS"
// KubeVelaSystemNamespaceEnv the environment variable for kubevela system namespace
KubeVelaSystemNamespaceEnv = "KUBEVELA_SYSTEM_NAMESPACE"
// KubeVelaDefinitionNamespaceEnv the environment variable for kubevela definition namespace
KubeVelaDefinitionNamespaceEnv = "KUBEVELA_DEFINITION_NAMESPACE"
)
View Source
const (
// VelaHomeEnv defines vela home system env
VelaHomeEnv = "VELA_HOME"
)
Variables ¶
This section is empty.
Functions ¶
func BindEnvironmentVariables ¶ added in v1.4.0
func BindEnvironmentVariables()
BindEnvironmentVariables bind
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.