validator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceValidator

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

func NewServiceValidator

func NewServiceValidator(allowedCIDRs []string) (*ServiceValidator, error)

NewServiceValidator validates the input list if any and returns ServiceValidator with list of valid external IPNets

func (*ServiceValidator) Handle

Handle handles the /validate-service endpoint requests

func (*ServiceValidator) InjectDecoder

func (sv *ServiceValidator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects decoder into ServiceValidator

Jump to

Keyboard shortcuts

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