validate

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Email

func Email(email string) bool

func IsNumber

func IsNumber(value int, min int, max int) bool

func IsPositiveNumber

func IsPositiveNumber(value int) bool

func IsTime

func IsTime(time string) bool

func MaxLength

func MaxLength(text string, length int) bool

func Name

func Name(name string) bool

func OneOf

func OneOf(value string, values []string) bool

func Password

func Password(password string) bool

func Required

func Required(text string) bool

func SSHPrivateKey added in v0.25.0

func SSHPrivateKey(key string) bool

func SSHPublicKeys added in v0.25.0

func SSHPublicKeys(keys string) bool

func Subdomain

func Subdomain(subdomain string) bool

func TokenName

func TokenName(name string) bool

func UUID

func UUID(uuid string) bool

func Uri

func Uri(uri string) bool

func Username added in v0.24.0

func Username(name string) bool

func ValidateStackDefinition added in v0.24.0

func ValidateStackDefinition(req *apiclient.StackDefinitionRequest) []apiclient.ValidationError

ValidateStackDefinition checks structural validity of a stack definition request. Returns a slice of validation errors (empty if valid).

func VarName

func VarName(name string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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