handlers

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMutationHandler

type IMutationHandler interface {
	MutatePodSpec(w http.ResponseWriter, r *http.Request)
	HandleAdmissionReview(request *admissionv1.AdmissionRequest) (*admissionv1.AdmissionResponse, error)
}

type IValidationHandler

type IValidationHandler interface {
	ValidatePodSpec(w http.ResponseWriter, r *http.Request)
	HandleAdmissionReview(request *admissionv1.AdmissionRequest) (*admissionv1.AdmissionResponse, error)
}

type MutationHandler

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

func NewMutationHandler added in v0.0.7

func NewMutationHandler(computeService services.IComputeService) *MutationHandler

func (*MutationHandler) HandleAdmissionReview

func (mh *MutationHandler) HandleAdmissionReview(request *admissionv1.AdmissionRequest) (*admissionv1.AdmissionResponse, error)

func (*MutationHandler) MutatePodSpec

func (mh *MutationHandler) MutatePodSpec(w http.ResponseWriter, r *http.Request)

type ValidationHandler

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

func NewValidationHandler added in v0.0.7

func NewValidationHandler(computeService services.IComputeService, mapper mapper.IMapper, redisClient *redis.Client) *ValidationHandler

func (*ValidationHandler) HandleAdmissionReview

func (vh *ValidationHandler) HandleAdmissionReview(request *admissionv1.AdmissionRequest) (*admissionv1.AdmissionResponse, error)

func (*ValidationHandler) ValidatePodSpec

func (vh *ValidationHandler) ValidatePodSpec(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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