zeroscaler

package
v0.0.0-...-a53ac42 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 21 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 {
	MetricsCheckInterval int `envconfig:"METRICS_CHECK_INTERVAL" required:"true"`
}

Config represents the configuration options for zeroscaler nolint: lll

func GetConfigFromEnvironment

func GetConfigFromEnvironment() (Config, error)

GetConfigFromEnvironment returns configuration derived from environment variables

func NewConfigWithDefaults

func NewConfigWithDefaults() Config

NewConfigWithDefaults returns a Config object with default values already applied. Callers are then free to set custom values for the remaining fields and/or override default values.

type Zeroscaler

type Zeroscaler interface {
	Run(ctx context.Context)
}

func NewZeroscaler

func NewZeroscaler(cfg Config, kubeClient kubernetes.Interface) Zeroscaler

Jump to

Keyboard shortcuts

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