env

package
v0.107.8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	ServerPort            int    `env:"SERVER_PORT" envDefault:"8081"`
	K1AccessToken         string `env:"K1_ACCESS_TOKEN"`
	KubefirstVersion      string `env:"KUBEFIRST_VERSION" envDefault:"main"`
	CloudProvider         string `env:"CLOUD_PROVIDER"`
	ClusterID             string `env:"CLUSTER_ID"`
	ClusterType           string `env:"CLUSTER_TYPE"`
	DomainName            string `env:"DOMAIN_NAME"`
	GitProvider           string `env:"GIT_PROVIDER"`
	InstallMethod         string `env:"INSTALL_METHOD"`
	KubefirstTeam         string `env:"KUBEFIRST_TEAM"`
	KubefirstTeamInfo     string `env:"KUBEFIRST_TEAM_INFO"`
	AWSRegion             string `env:"AWS_REGION"`
	AWSProfile            string `env:"AWS_PROFILE"`
	IsClusterZero         bool   `env:"IS_CLUSTER_ZERO" envDefault:"true"`
	ParentClusterID       string `env:"PARENT_CLUSTER_ID"`
	InCluster             bool   `env:"IN_CLUSTER" envDefault:"false"`
	EnterpriseAPIURL      string `env:"ENTERPRISE_API_URL"`
	K1LocalDebug          bool   `env:"K1_LOCAL_DEBUG"`
	K1LocalKubeconfigPath string `env:"K1_LOCAL_KUBECONFIG_PATH"`
}

func GetEnv

func GetEnv(silent bool) (Env, error)

Jump to

Keyboard shortcuts

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