admission

package
v0.13.37 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricNamespace = "routegroup_admission"
)

Variables

This section is empty.

Functions

func Handler

func Handler(admitter Admitter) http.HandlerFunc

Types

type Admitter

type Admitter interface {
	Name() string
	Admit(req *admissionsv1.AdmissionRequest) (*admissionsv1.AdmissionResponse, error)
}

type RouteGroupAdmitter

type RouteGroupAdmitter struct {
}

func (RouteGroupAdmitter) Admit

func (RouteGroupAdmitter) Name

func (r RouteGroupAdmitter) Name() string

Jump to

Keyboard shortcuts

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