config

package
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CastwareOperatorVersion

type CastwareOperatorVersion struct {
	GitCommit string
	GitRef    string
	Version   string
}

func (*CastwareOperatorVersion) String

func (c *CastwareOperatorVersion) String() string

type Config

type Config struct {
	LogLevel       LogLevel      `envconfig:"LOG_LEVEL" default:"info"`
	RequestTimeout time.Duration `envconfig:"REQUEST_TIMEOUT" default:"10s"`
	CertDir        string        `envconfig:"CERTS_DIR" default:"/certs"`
	CertsSecret    string        `envconfig:"CERTS_SECRET" default:"castware-operator-certs"`
	PodNamespace   string        `envconfig:"POD_NAMESPACE"`
	ServiceName    string        `envconfig:"SERVICE_NAME" default:"castware-operator"`
	CertsRotation  bool          `envconfig:"CERTS_ROTATION" default:"false"`
}

func GetFromEnvironment

func GetFromEnvironment() (*Config, error)

type LogLevel

type LogLevel logrus.Level

func (*LogLevel) Decode

func (l *LogLevel) Decode(value string) error

func (LogLevel) Level

func (l LogLevel) Level() logrus.Level

Jump to

Keyboard shortcuts

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