env

package
v1.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 DeleteEnv

func DeleteEnv(envName string) (string, error)

DeleteEnv will delete env locally

func GetCurrentEnvName

func GetCurrentEnvName() (string, error)

GetCurrentEnvName will get current env name

func GetEnvByName

func GetEnvByName(name string) (*types.EnvMeta, error)

GetEnvByName will get env info by name

func GetEnvDirByName

func GetEnvDirByName(name string) string

GetEnvDirByName will get env dir from name

func ListEnvs

func ListEnvs(envName string) ([]*types.EnvMeta, error)

ListEnvs will list all envs

func SetEnv

func SetEnv(envName string) (string, error)

SetEnv will set the current env to the specified one

func UpdateEnv

func UpdateEnv(ctx context.Context, c client.Client, envName string, namespace string) (string, error)

UpdateEnv will update Env, if env does not exist, return error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL