Documentation ¶
Index ¶
- func CreateEnv(ctx context.Context, c client.Client, envName string, envArgs *types.EnvMeta) (string, error)
- func CreateOrUpdateEnv(ctx context.Context, c client.Client, envName string, envArgs *types.EnvMeta) (string, error)
- func DeleteEnv(envName string) (string, error)
- func GetCurrentEnvName() (string, error)
- func GetEnvByName(name string) (*types.EnvMeta, error)
- func GetEnvDirByName(name string) string
- func ListEnvs(envName string) ([]*types.EnvMeta, error)
- func SetEnv(envName string) (string, error)
- func UpdateEnv(ctx context.Context, c client.Client, envName string, namespace string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEnv ¶
func CreateEnv(ctx context.Context, c client.Client, envName string, envArgs *types.EnvMeta) (string, error)
CreateEnv will only create. If env already exists, return error
func CreateOrUpdateEnv ¶
func CreateOrUpdateEnv(ctx context.Context, c client.Client, envName string, envArgs *types.EnvMeta) (string, error)
CreateOrUpdateEnv will create or update env. If it does not exist, create it and set to the new env. If it exists, update it and set to the new env.
func GetCurrentEnvName ¶
GetCurrentEnvName will get current env name
func GetEnvByName ¶
GetEnvByName will get env info by name
func GetEnvDirByName ¶
GetEnvDirByName will get env dir from name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.