validation

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

Package validation provides the validation handler.

Package validation provides the validation handler.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidRequest is an error that appears when the request is invalid.
	ErrInvalidRequest = errors.New("invalid request")
)

Functions

func ErrCreateStorageNotSupported

func ErrCreateStorageNotSupported(storageType string) error

ErrCreateStorageNotSupported appears when trying to create a storage of a type that is not supported.

func ErrDuplicateSourceRange added in v1.8.0

func ErrDuplicateSourceRange(sourceRange v1alpha1.IPSourceRange) error

ErrDuplicateSourceRange appears when a duplicated source range is found.

func ErrInvalidURL

func ErrInvalidURL(fieldName string) error

ErrInvalidURL when the given fieldName contains invalid URL.

func ErrUpdateStorageNotSupported

func ErrUpdateStorageNotSupported(storageType string) error

ErrUpdateStorageNotSupported appears when trying to update a storage of a type that is not supported.

func New

func New(
	log *zap.SugaredLogger,
	kubeConnector kubernetes.KubernetesConnector,
) handlers.Handler

New returns a new RBAC handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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