validation

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 30 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 ErrInvalidURL

func ErrInvalidURL(fieldName string) error

ErrInvalidURL when the given fieldName contains invalid URL.

func ErrNameNotRFC1035Compatible

func ErrNameNotRFC1035Compatible(fieldName string) error

ErrNameNotRFC1035Compatible when the given fieldName doesn't contain RFC 1035 compatible string.

func ErrNameTooLong

func ErrNameTooLong(fieldName string) error

ErrNameTooLong when the given fieldName is too long.

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,
	kubeClient *kubernetes.Kubernetes,
) 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