env

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 1 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 {
	IsDev bool

	GatewayWGPublicKey  string `env:"GATEWAY_WG_PUBLIC_KEY" required:"true"`
	GatewayWGPrivateKey string `env:"GATEWAY_WG_PRIVATE_KEY" required:"true"`
	GatewayWGEndpoint   string `env:"GATEWAY_WG_ENDPOINT" required:"true"`

	ExtraWireguardPeersPath string `env:"EXTRA_WIREGUARD_PEERS_PATH" required:"false"`

	GatewayGlobalIP              string `env:"GATEWAY_GLOBAL_IP" required:"true"`
	GatewayInternalDNSNameserver string `env:"GATEWAY_INTERNAL_DNS_NAMESERVER" required:"true"`

	ClusterCIDR string `env:"CLUSTER_CIDR" required:"true"`
	ServiceCIDR string `env:"SERVICE_CIDR" required:"true"`

	IPManagerConfigName      string `env:"IP_MANAGER_CONFIG_NAME" required:"true"`
	IPManagerConfigNamespace string `env:"IP_MANAGER_CONFIG_NAMESPACE" required:"true"`

	PodAllowedIPs string `env:"POD_ALLOWED_IPS" required:"true"`

	NginxStreamsDir    string `env:"NGINX_STREAMS_DIR" default:"/etc/nginx/streams.d"`
	WireguardConfigDir string `env:"WIREGUARD_CONFIG_DIR" default:"/etc/wireguard"`
}

func LoadEnv

func LoadEnv() (*Env, error)

Jump to

Keyboard shortcuts

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