hijacker

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: 16 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"`
}

Config represents configuration options for the Osiris Proxy Injecgtor 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 Hijacker

type Hijacker interface {
	// Run causes the webhook server to serve requests. This function will not
	// return until the context it has been passed expires or is canceled.
	Run(ctx context.Context)
}

Hijacker is an interface for a component that handles webhook requests for patching Osiris-enabled services in a manner that will permit the Osiris endpoints controller to manage service endpoints

func NewHijacker

func NewHijacker(config Config) Hijacker

NewHijacker returns a new component that handles webhook requests for patching Osiris-enabled services in a manner that will permit the Osiris endpoints controller to manage service endpoints

Jump to

Keyboard shortcuts

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