validation

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToBroker

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

AccessToBroker handles ServiceBroker validation

func (*AccessToBroker) InjectClient

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

InjectClient injects the client

func (*AccessToBroker) InjectDecoder

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

InjectDecoder injects the decoder

func (*AccessToBroker) Validate

Validate checks if client has access to service broker if broker requires authentication This feature was copied from Service Catalog admission plugin https://github.com/drycc-addons/service-catalog/blob/v0.1.41/plugin/pkg/admission/broker/authsarcheck/admission.go If you want to track previous changes please check there.

type SpecValidationHandler

type SpecValidationHandler struct {
	CreateValidators []Validator
	UpdateValidators []Validator
	// contains filtered or unexported fields
}

SpecValidationHandler handles ServiceBroker validation

func NewSpecValidationHandler

func NewSpecValidationHandler() *SpecValidationHandler

NewSpecValidationHandler creates new SpecValidationHandler and initializes validators list

func (*SpecValidationHandler) Handle

Handle handles admission requests.

func (*SpecValidationHandler) InjectClient

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

InjectClient injects the client into the handlers

func (*SpecValidationHandler) InjectDecoder

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

InjectDecoder injects the decoder into the handlers

type StaticCreate

type StaticCreate struct {
}

StaticCreate runs basic ServiceBroker validation for a Create operation.

func (*StaticCreate) Validate

Validate validate ServiceBinding instance

type StaticUpdate

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

StaticUpdate runs basic ServiceBroker validation for an Update operation.

func (*StaticUpdate) InjectDecoder

func (v *StaticUpdate) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder

func (*StaticUpdate) Validate

Validate validate ServiceBinding instance

type StatusValidationHandler

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

StatusValidationHandler provides status update resource validation handler

func (*StatusValidationHandler) Handle

Handle handles admission requests.

func (*StatusValidationHandler) InjectDecoder

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

InjectDecoder injects the decoder into the handlers

type Validator

Validator is used to implement new validation logic

Jump to

Keyboard shortcuts

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