routes

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthController

type HealthController interface {
	Health(http.ResponseWriter, *http.Request)
}

HealthController is an interface that implements mutation method

func NewHealthController

func NewHealthController() (HealthController, error)

NewHealthController is a factory method to create an instance of HealthController

type MutatorController

type MutatorController interface {
	Shutdown()
	Mutate(http.ResponseWriter, *http.Request)
}

MutatorController is an interface that implements mutation method

func NewMutatorController

func NewMutatorController(sideCarConfigFile string, shawarmaImage string, shawarmaServiceAcctName string, shawarmaSecretTokenName string) (MutatorController, error)

NewMutatorController is a factory method to create an instance of MutatorController

type SideCar

type SideCar struct {
	Name    string          `json:"name"`
	Sidecar webhook.SideCar `json:"sidecar"`
}

SideCar is a named sidecar to be injected

type SideCars

type SideCars struct {
	Sidecars []SideCar `json:"sidecars"`
}

SideCars is an array of named SideCar instances

Jump to

Keyboard shortcuts

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