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
Click to show internal directories.
Click to hide internal directories.