activator

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activator

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

func NewActivator

func NewActivator(cfg Config, kubeClient kubernetes.Interface) Activator

type Config added in v0.0.55

type Config struct {
	ResyncInterval time.Duration `envconfig:"INFORMERS_RESYNC_INTERVAL" required:"true"`
}

Config represents the configuration options for activator nolint: lll

func GetConfigFromEnvironment added in v0.0.55

func GetConfigFromEnvironment() (Config, error)

GetConfigFromEnvironment returns configuration derived from environment variables

func NewConfigWithDefaults added in v0.0.55

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.

Jump to

Keyboard shortcuts

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