Documentation ¶
Index ¶
- Constants
- func CreateEnv(envName string, envArgs *types.EnvMeta) error
- func DeleteEnv(envName string) (string, error)
- func GetCurrentEnv() (*types.EnvMeta, error)
- func GetEnvByName(name string) (*types.EnvMeta, error)
- func ListEnvs(envName string) ([]*types.EnvMeta, error)
- func SetEnv(envName string) (string, error)
Constants ¶
View Source
const ( // IndicatingLabel is label key indicating application is an env IndicatingLabel = "cli.env.oam.dev/name" // RawType is component type of raw RawType = "raw" // DefaultEnvName is name of default env DefaultEnvName = "default" // DefaultEnvNamespace is namespace of default env DefaultEnvNamespace = "default" // AppNameSchema is used to generate env app name AppNameSchema = "vela-env-%s" // AppNamePrefix is prefix of AppNameSchema AppNamePrefix = "vela-env-" )
Variables ¶
This section is empty.
Functions ¶
func CreateEnv ¶
CreateEnv will create e env. Because Env equals to namespace, one env should not be updated
func GetCurrentEnv ¶ added in v1.1.4
GetCurrentEnv will get current env, create default env if not exist
func GetEnvByName ¶
GetEnvByName will get env info by name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.