config

package
v0.0.0-...-4b2e221 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 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 Config

type Config struct {
	KubeConfig      string
	Namespace       string
	WatchNamespaces string
	NumWorkers      int
	HA              HA
	Metrics         Metrics
	Env             string
	LogLevel        string
	RefreshTime     int
}

func GetConfig

func GetConfig() (Config, error)

func (Config) String

func (c Config) String() string

type HA

type HA struct {
	Enabled       bool
	NodeId        string
	LeaseLockName string
	LeaseDuration time.Duration
	RenewDeadline time.Duration
	RetryPeriod   time.Duration
}

func (HA) String

func (c HA) String() string

type Metrics

type Metrics struct {
	Enabled bool
	Path    string
	Port    string
}

func (Metrics) String

func (m Metrics) String() string

Jump to

Keyboard shortcuts

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