types

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	// Decode decodes the raw byte object from the AdmissionRequest to the passed-in runtime.Object.
	Decode(Request, runtime.Object) error
}

Decoder is used to decode AdmissionRequest.

type Request

type Request struct {
	AdmissionRequest *admissionv1beta1.AdmissionRequest
}

Request is the input of Handler

type Response

type Response struct {
	// Patches are the JSON patches for mutating webhooks.
	// Using this instead of setting Response.Patch to minimize the overhead of serialization and deserialization.
	Patches []jsonpatch.JsonPatchOperation
	// Response is the admission response. Don't set the Patch field in it.
	Response *admissionv1beta1.AdmissionResponse
}

Response is the output of admission.Handler

Jump to

Keyboard shortcuts

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