env

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ProductionACMEServer = "https://acme-v02.api.letsencrypt.org/directory"

ProductionACMEServer is the production ACME Server from let's encrypt

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)

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)

func GetCurrentEnvName

func GetCurrentEnvName() (string, error)

func GetEnvByName

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

func GetEnvDirByName

func GetEnvDirByName(name string) string

func GetStringPointer

func GetStringPointer(v string) *string

func ListEnvs

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

func SetEnv

func SetEnv(envName string) (string, error)

func UpdateEnv

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

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