validating

package
v2.0.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AllowedReason string = "allowed to be admitted"

Webhook response reasons

Variables

View Source
var (
	// Builders contain admission webhook builders
	Builders = map[string]*builder.WebhookBuilder{}
	// HandlerMap contains admission webhook handlers
	HandlerMap = map[string][]admission.Handler{}
)

Functions

This section is empty.

Types

type HostProfileCreateUpdateHandler

type HostProfileCreateUpdateHandler struct {
	// API client
	Client client.Client

	// Decoder decodes objects
	Decoder types.Decoder
}

HostProfileCreateUpdateHandler handles HostProfile

func (*HostProfileCreateUpdateHandler) Handle

Handle handles admission requests.

func (*HostProfileCreateUpdateHandler) InjectClient

InjectClient injects the client into the HostProfileCreateUpdateHandler

func (*HostProfileCreateUpdateHandler) InjectDecoder

func (h *HostProfileCreateUpdateHandler) InjectDecoder(d types.Decoder) error

InjectDecoder injects the decoder into the HostProfileCreateUpdateHandler

Jump to

Keyboard shortcuts

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