system

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 5 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"
)
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"
)

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 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