Documentation ¶
Index ¶
- Constants
- func CreateEnv(envArgs *types.EnvMeta) (err 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 SetCurrentEnv(meta *types.EnvMeta) error
- func SetEnvLabels(envArgs *types.EnvMeta) error
Constants ¶
View Source
const (
// DefaultEnvNamespace is namespace of default env
DefaultEnvNamespace = "default"
)
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
func GetEnvByName ¶
GetEnvByName will get env info by name
func ListEnvs ¶
ListEnvs will list all envs if envName specified, return list that only contains one env
func SetCurrentEnv ¶ added in v1.2.0
SetCurrentEnv will set the current env to the specified one
func SetEnvLabels ¶ added in v1.5.0
SetEnvLabels set labels for namespace
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.