injector

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 17 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 {
	TLSCertFile          string `envconfig:"TLS_CERT_FILE" required:"true"`
	TLSKeyFile           string `envconfig:"TLS_KEY_FILE" required:"true"`
	ProxyImage           string `envconfig:"PROXY_IMAGE" required:"true"`
	ProxyImagePullPolicy string `envconfig:"PROXY_IMAGE_PULL_POLICY"`
}

Config represents configuration options for the Osiris Proxy Injector webhook server

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 Injector

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

Injector interface definition.

func NewInjector

func NewInjector(config Config) Injector

NewInjector creates and returns a new Injector Interface.

Jump to

Keyboard shortcuts

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