cfg

package
v1.1.26 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvOrDie

func GetEnvOrDie(env string) string

GetEnvOrDie convenience method for initializing env.

Types

type Config

type Config struct {
	CSRName             string
	EmptyDirLocation    string
	Signer              string
	CommonName          string
	EmailAddress        string
	PodIP               string
	KeyName             string
	CertName            string
	CACertName          string
	CACertPEM           []byte
	DNSNames            []string
	SignatureAlgorithm  string
	PrivateKeyAlgorithm string
	RegisterApiserver   bool
	AppName             string
	TimeoutDuration     time.Duration
}

Config holds parameters that are used during runtime.

func GetConfigOrDie

func GetConfigOrDie() *Config

GetConfigOrDie initializes the Config that this program relies on. It exists the program if expected variables are missing.

Jump to

Keyboard shortcuts

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