controllers

package
v0.0.0-...-4c43a3e Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseHTTPRequestBodyToAdmissionReview

func ParseHTTPRequestBodyToAdmissionReview(body io.ReadCloser) (*admission.AdmissionReview, error)

Types

type HealthController

type HealthController struct{}

func NewHealthController

func NewHealthController() *HealthController

func (*HealthController) Health

func (h *HealthController) Health(w http.ResponseWriter, req *http.Request)

func (*HealthController) Ready

func (h *HealthController) Ready(w http.ResponseWriter, req *http.Request)

type ValidationController

type ValidationController struct {
	ValidationService *services.ValidationService
	ErrorReporter     *errorReporter.ErrorReporter
	// contains filtered or unexported fields
}

func NewValidationController

func NewValidationController(cliServiceClient *clients.CliClient, state *servicestate.ServiceState, errorReporter *errorReporter.ErrorReporter, k8sMetadataUtilInstance *k8sMetadataUtil.K8sMetadataUtil, logger *logger.Logger, openshiftService *openshiftService.OpenshiftService) *ValidationController

func (*ValidationController) Validate

func (c *ValidationController) Validate(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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