validating

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxSubnetCapacity = 1 << 16
)

Variables

This section is empty.

Functions

func IPInstanceCreateValidation

func IPInstanceCreateValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func IPInstanceDeleteValidation

func IPInstanceDeleteValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func IPInstanceUpdateValidation

func IPInstanceUpdateValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func NetworkCreateValidation

func NetworkCreateValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func NetworkDeleteValidation

func NetworkDeleteValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func NetworkUpdateValidation

func NetworkUpdateValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func PodCreateValidation

func PodCreateValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func RCCreateValidation added in v0.3.0

func RCCreateValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func RCDeleteValidation added in v0.3.0

func RCDeleteValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func RCUpdateValidation added in v0.3.0

func RCUpdateValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func RemoteSubnetCreateValidation added in v0.3.0

func RemoteSubnetCreateValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func RemoteSubnetDeleteValidation added in v0.3.0

func RemoteSubnetDeleteValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func RemoteSubnetUpdateValidation added in v0.3.0

func RemoteSubnetUpdateValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func SubnetCreateValidation

func SubnetCreateValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func SubnetDeleteValidation

func SubnetDeleteValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

func SubnetUpdateValidation

func SubnetUpdateValidation(ctx context.Context, req *admission.Request, handler *Handler) admission.Response

Types

type Handler

type Handler struct {
	Decoder *admission.Decoder
	Cache   cache.Cache
	Client  client.Client
}

func NewHandler

func NewHandler() *Handler

func (*Handler) Handle

func (*Handler) InjectCache

func (h *Handler) InjectCache(cache cache.Cache) error

func (*Handler) InjectClient

func (h *Handler) InjectClient(client client.Client) error

func (*Handler) InjectDecoder

func (h *Handler) InjectDecoder(decoder *admission.Decoder) error

Jump to

Keyboard shortcuts

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