admission

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 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 AdmissionHandler

type AdmissionHandler interface {
	admission.Handler
	Kind() string
	VersionSupported(v string) bool
	InjectDecoder(*admission.Decoder) error
}

type LimitRanger

type LimitRanger interface {
	LimitRangeConfig(namespace string) (*limitrange.Config, error)
}

type OptionsFunc

type OptionsFunc func(*Router) error

func WithAdmissionHandlers

func WithAdmissionHandlers(handlers ...AdmissionHandler) OptionsFunc

type Router

type Router struct {
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(lr LimitRanger, opts ...OptionsFunc) (*Router, error)

func (*Router) Handle

func (*Router) InjectDecoder

func (r *Router) InjectDecoder(d *admission.Decoder) error

func (*Router) SetupWithManager

func (r *Router) SetupWithManager(m manager.Manager)

Jump to

Keyboard shortcuts

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