validate

package
v1.44.1-0...-df9783c Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AzureTimeZoneString

func AzureTimeZoneString() func(interface{}, string) ([]string, []error)

func Base64EncodedString

func Base64EncodedString(i interface{}, k string) ([]string, []error)

Base64EncodedString validates that the string is base64 encoded

func CIDR

func CIDR(i interface{}, k string) (warnings []string, errors []error)

CIDR is a SchemaValidateFunc which tests if the provided value is a valid IPv4 CIDR

func IPv4Address

func IPv4Address(i interface{}, k string) (warnings []string, errors []error)

func ISO8601DateTime

func ISO8601DateTime(i interface{}, k string) (warnings []string, errors []error)

func ISO8601Duration

func ISO8601Duration(i interface{}, k string) (warnings []string, errors []error)

func ISO8601DurationBetween

func ISO8601DurationBetween(min string, max string) func(i interface{}, k string) (warnings []string, errors []error)

func PortNumber

func PortNumber(i interface{}, k string) (warnings []string, errors []error)

func PortNumberOrZero

func PortNumberOrZero(i interface{}, k string) (warnings []string, errors []error)

func RegExHelper

func RegExHelper(i interface{}, k, r string) (match bool, errors []error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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