verify

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HexColorCode = regexp.MustCompile(`^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$`)
View Source
var IPv4IPv6Regexp = regexp.MustCompile(fmt.Sprintf(`%s|%s`, IPv4RegexpFull.String(), IPv6RegexpFull.String()))
View Source
var IPv4Regexp = regexp.MustCompile(`(?:\d{1,3}\.){3}\d{1,3}(?:/\d{1,2})?`)
View Source
var IPv4RegexpFull = regexp.MustCompile(fmt.Sprintf(`^%s$`, IPv4Regexp.String()))
View Source
var IPv6Regexp = regexp.MustCompile(`(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}(?:/\d{1,3})?`)
View Source
var IPv6RegexpFull = regexp.MustCompile(fmt.Sprintf(`^%s$`, IPv6Regexp.String()))
View Source
var IsDomain = regexp.MustCompile(`^(?:[\w-]+\.)+[a-z]{2,}$`)
View Source
var IsHostname = regexp.MustCompile(`^(?:[\w-]+\.)+[a-z]{2,}(?:\/[\w-]+)*(?:\/[\w.-]+)?\/?(?:\?.*)?$`)
View Source
var IsTwoCharCountryCode = regexp.MustCompile(`^(A(D|E|F|G|I|L|M|N|O|R|S|T|Q|U|W|X|Z)|B(A|B|D|E|F|G|H|I|J|L|M|N|O|R|S|T|V|W|Y|Z)|C(A|C|D|F|G|H|I|K|L|M|N|O|R|U|V|X|Y|Z)|D(E|J|K|M|O|Z)|E(C|E|G|H|R|S|T)|F(I|J|K|M|O|R)|G(A|B|D|E|F|G|H|I|L|M|N|P|Q|R|S|T|U|W|Y)|H(K|M|N|R|T|U)|I(D|E|Q|L|M|N|O|R|S|T)|J(E|M|O|P)|K(E|G|H|I|M|N|P|R|W|Y|Z)|L(A|B|C|I|K|R|S|T|U|V|Y)|M(A|C|D|E|F|G|H|K|L|M|N|O|Q|P|R|S|T|U|V|W|X|Y|Z)|N(A|C|E|F|G|I|L|O|P|R|U|Z)|OM|P(A|E|F|G|H|K|L|M|N|R|S|T|W|Y)|QA|R(E|O|S|U|W)|S(A|B|C|D|E|G|H|I|J|K|L|M|N|O|R|T|V|Y|Z)|T(C|D|F|G|H|J|K|L|M|N|O|R|T|V|W|Z)|U(A|G|M|S|Y|Z)|V(A|C|E|G|I|N|U)|W(F|S)|Y(E|T)|Z(A|M|W))$`)
View Source
var IsURLWithHTTPS = regexp.MustCompile(fmt.Sprintf(`^https:\/\/%s`, urlRegexStringWithoutProtocol))
View Source
var IsURLWithHTTPorHTTPS = regexp.MustCompile(fmt.Sprintf(`^http[s]{0,1}:\/\/%s`, urlRegexStringWithoutProtocol))
View Source
var P1DVResourceIDRegexp = regexp.MustCompile(`[a-f0-9]{32}`)
View Source
var P1DVResourceIDRegexpFullString = regexp.MustCompile(fmt.Sprintf(`^%s$`, P1DVResourceIDRegexp.String()))
View Source
var P1ResourceIDRegexp = regexp.MustCompile(`[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}`)
View Source
var P1ResourceIDRegexpFullString = regexp.MustCompile(fmt.Sprintf(`^%s$`, P1ResourceIDRegexp.String()))
View Source
var RFC3339Regexp = regexp.MustCompile(`^((?:(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2}(?:\.\d+)?))(Z|[\+-]\d{2}:\d{2})?)$`)

Functions

func FullIsoList added in v0.6.0

func FullIsoList() []string

func FullIsoListString added in v0.8.0

func FullIsoListString() string

func IllegalOIDCAttributeNameString added in v0.7.0

func IllegalOIDCAttributeNameString() string

func IllegalOIDCattributeNamesList added in v0.7.0

func IllegalOIDCattributeNamesList() []string

func IsoList added in v0.6.0

func IsoList() []string

func IsoReservedListString added in v0.6.0

func IsoReservedListString() string

func OverrideOIDCAttributeNameList added in v0.7.0

func OverrideOIDCAttributeNameList() []string

func OverrideOIDCAttributeNameString added in v0.7.0

func OverrideOIDCAttributeNameString() string

func P1DVResourceIDValidator added in v0.11.0

func P1DVResourceIDValidator() validator.String

func P1ResourceIDValidator added in v0.9.0

func P1ResourceIDValidator() validator.String

Framework

func ReservedIsoList added in v0.6.0

func ReservedIsoList() []string

func ValidP1ResourceID

func ValidP1ResourceID(v interface{}, k string) (ws []string, errors []error)

SDKv2

Types

type IsoCountry added in v1.0.0

type IsoCountry struct {
	Code string
	Name string
}

Jump to

Keyboard shortcuts

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