validators

package
v0.0.0-...-2a43829 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentName

func DeploymentName(fl validator.FieldLevel) bool

DeploymentName is a validator for deployment names. It ensures that the name is valid according to some reserved internal names and suffixes

func DomainName

func DomainName(fl validator.FieldLevel) bool

DomainName is a validator for domain names. It ensures that the domain name is not a parent domain of any zone It also ensures that the domain name is valid and can be converted to punycode

func EnvList

func EnvList(fl validator.FieldLevel) bool

EnvList is a validator for environment variable lists. It ensures that every environment variable name is unique

func EnvName

func EnvName(fl validator.FieldLevel) bool

EnvName is a validator for environment variable names It ensures the name is valid for use in the environment

func HealthCheckPath

func HealthCheckPath(fl validator.FieldLevel) bool

HealthCheckPath is a validator for health check paths. It ensures that the path is valid and that it starts with a slash

func PortListHttpProxies

func PortListHttpProxies(fl validator.FieldLevel) bool

PortListHttpProxies is a validator for port lists. It ensures that every proxy name is unique

func PortListNames

func PortListNames(fl validator.FieldLevel) bool

PortListNames is a validator for port lists. It ensures that every port name is unique

func PortListNumbers

func PortListNumbers(fl validator.FieldLevel) bool

PortListNumbers is a validator for port lists. It ensures that every port number is unique per protocol

func Rfc1035

func Rfc1035(fl validator.FieldLevel) bool

Rfc1035 is a validator for RFC 1035 hostnames

func SshPublicKey

func SshPublicKey(fl validator.FieldLevel) bool

SshPublicKey is a validator for SSH public keys. It attempts to parse the key using the golang.org/x/crypto/ssh package If the key is invalid, it will return false

func TeamMemberList

func TeamMemberList(fl validator.FieldLevel) bool

TeamMemberList is a validator for team member lists. It ensures that every team member is unique

func TeamName

func TeamName(fl validator.FieldLevel) bool

TeamName is a validator for team names. It ensures that the name is valid and does not start or end with a space

func TeamResourceList

func TeamResourceList(fl validator.FieldLevel) bool

TeamResourceList is a validator for team model lists. It ensures that every team model is unique

func TimeInFuture

func TimeInFuture(fl validator.FieldLevel) bool

TimeInFuture is a validator for time fields. It ensures that the time is in the future

func VmName

func VmName(fl validator.FieldLevel) bool

VmName is a validator for VM names. It ensures that the name is valid according to some reserved internal names and suffixes

func VmPortName

func VmPortName(fl validator.FieldLevel) bool

VmPortName is a validator for VM port names. It ensures that the name is valid according to some reserved internal names and suffixes

func VolumeName

func VolumeName(fl validator.FieldLevel) bool

VolumeName is a validator for volume names. It ensures that the name is valid and does not start or end with a space

Types

This section is empty.

Jump to

Keyboard shortcuts

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