containerized

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(obj *v1alpha1.Containerized)

Default sets all the default value for the Containerized

func ValidateCreate

func ValidateCreate(r *v1alpha1.Containerized) field.ErrorList

ValidateCreate validates the Containerized on creation

func ValidateDelete

func ValidateDelete(r *v1alpha1.Containerized) field.ErrorList

ValidateDelete validates the Containerized on delete

func ValidateUpdate

ValidateUpdate validates the Containerized on update

Types

type MutatingHandler

type MutatingHandler struct {
	Client client.Client

	// Decoder decodes objects
	Decoder *admission.Decoder
}

MutatingHandler handles Containerized workload

func (*MutatingHandler) Handle

Handle handles admission requests.

func (*MutatingHandler) InjectClient

func (h *MutatingHandler) InjectClient(c client.Client) error

InjectClient injects the client into the MutatingHandler

func (*MutatingHandler) InjectDecoder

func (h *MutatingHandler) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder into the MutatingHandler

type ValidatingHandler

type ValidatingHandler struct {
	Client client.Client

	// Decoder decodes objects
	Decoder *admission.Decoder
}

ValidatingHandler handles Containerized

func (*ValidatingHandler) Handle

Handle handles admission requests.

func (*ValidatingHandler) InjectClient

func (h *ValidatingHandler) InjectClient(c client.Client) error

InjectClient injects the client into the ValidatingHandler

func (*ValidatingHandler) InjectDecoder

func (h *ValidatingHandler) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder into the ValidatingHandler

Jump to

Keyboard shortcuts

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