validation

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePolicy added in v1.8.0

func ValidatePolicy(policy *v1.Policy, isPlus, enablePreviewPolicies, enableAppProtect bool) error

ValidatePolicy validates a Policy.

Types

type GlobalConfigurationValidator added in v1.7.0

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

GlobalConfigurationValidator validates a GlobalConfiguration resource.

func NewGlobalConfigurationValidator added in v1.7.0

func NewGlobalConfigurationValidator(forbiddenListenerPorts map[int]bool) *GlobalConfigurationValidator

NewGlobalConfigurationValidator creates a new GlobalConfigurationValidator.

func (*GlobalConfigurationValidator) ValidateGlobalConfiguration added in v1.7.0

func (gcv *GlobalConfigurationValidator) ValidateGlobalConfiguration(globalConfiguration *v1alpha1.GlobalConfiguration) error

ValidateGlobalConfiguration validates a GlobalConfiguration.

type TransportServerValidator added in v1.7.0

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

TransportServerValidator validates a TransportServer resource.

func NewTransportServerValidator added in v1.7.0

func NewTransportServerValidator(tlsPassthrough bool, snippetsEnabled bool, isPlus bool) *TransportServerValidator

NewTransportServerValidator creates a new TransportServerValidator.

func (*TransportServerValidator) ValidateTransportServer added in v1.7.0

func (tsv *TransportServerValidator) ValidateTransportServer(transportServer *v1alpha1.TransportServer) error

ValidateTransportServer validates a TransportServer.

type VirtualServerValidator added in v1.9.0

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

VirtualServerValidator validates a VirtualServer/VirtualServerRoute resource.

func NewVirtualServerValidator added in v1.9.0

func NewVirtualServerValidator(isPlus bool) *VirtualServerValidator

NewVirtualServerValidator creates a new VirtualServerValidator.

func (*VirtualServerValidator) ValidateVirtualServer added in v1.9.0

func (vsv *VirtualServerValidator) ValidateVirtualServer(virtualServer *v1.VirtualServer) error

ValidateVirtualServer validates a VirtualServer.

func (*VirtualServerValidator) ValidateVirtualServerRoute added in v1.9.0

func (vsv *VirtualServerValidator) ValidateVirtualServerRoute(virtualServerRoute *v1.VirtualServerRoute) error

ValidateVirtualServerRoute validates a VirtualServerRoute.

func (*VirtualServerValidator) ValidateVirtualServerRouteForVirtualServer added in v1.9.0

func (vsv *VirtualServerValidator) ValidateVirtualServerRouteForVirtualServer(virtualServerRoute *v1.VirtualServerRoute, virtualServerHost string, vsPath string) error

ValidateVirtualServerRouteForVirtualServer validates a VirtualServerRoute for a VirtualServer represented by its host and path prefix.

Jump to

Keyboard shortcuts

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