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 ¶
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 ¶
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