validation

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidSCName        = errors.New("invalid name of storage class")
	ErrInvalidNamespace     = errors.New("invalid namespace")
	ErrInvalidReclaimPolicy = errors.New("invalid reclaim policy")
	ErrInvalidLBMode        = errors.New("invalid load balancer mode")
)

Functions

func IsHostNameRFC952

func IsHostNameRFC952(hostname string) bool

func IsURL

func IsURL(raw string) bool

func MatchKubernetesNamespace

func MatchKubernetesNamespace(namespace string) bool

func MatchKubernetesReclaimPolicy

func MatchKubernetesReclaimPolicy(policy string) error

func MatchKubernetesStorageClass

func MatchKubernetesStorageClass(storageClass string) bool

func MatchLinuxFilePath

func MatchLinuxFilePath(path string) bool

func MatchLoadBalancerMode added in v1.4.0

func MatchLoadBalancerMode(mode string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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