validator

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppGetKey

func AppGetKey(key string) error

func AppspaceAvatarFilename

func AppspaceAvatarFilename(f string) error

func AppspaceBackupFile

func AppspaceBackupFile(b string) error

AppspaceBackupFile validates names of appspace backup files (sans .zip extension)

func AppspacePermission

func AppspacePermission(p string) error

AppspacePermission validates an appspace permission identifier string

func AppspaceUserAuthType

func AppspaceUserAuthType(authType string) error

AppspaceUserAuthType validates auth type for appspace users

func DBName

func DBName(pw string) error

DBName validates an appspace DB name

func DisplayName

func DisplayName(dn string) error

DisplayName validates an aappspace user's or DropID display name

func DomainName

func DomainName(domainName string) error

DomainName validates a domain name Domain can include subdomains

func DropIDFull

func DropIDFull(dropID string) error

DropIDFull validates a full dropid

func DropIDHandle

func DropIDHandle(handle string) error

DropIDHandle validates a handle

func Email

func Email(email string) error

Email validates an email address. Assumed to be required.

func HttpURL added in v0.11.0

func HttpURL(url string) error

func JoinDropID

func JoinDropID(handle, domain string) string

JoinDropID joins the domain and handle of a dropid

func LocationKey

func LocationKey(loc string) error

func NormalizeDisplayName

func NormalizeDisplayName(dn string) string

NormalizeDisplayName makes display names better

func NormalizeDomainName

func NormalizeDomainName(domainName string) string

NormalizeDomainName makes domain names comparable

func NormalizeDropIDFull

func NormalizeDropIDFull(dropid string) string

NormalizeDropIDFull makes full dropid strings comparable

func NormalizeDropIDHandle

func NormalizeDropIDHandle(h string) string

NormalizeDropIDHandle makes handles comparable

func NormalizeEmail

func NormalizeEmail(email string) string

NormalizeEmail makes emails comparable

func Password

func Password(pw string) error

Password validates a password for logging in or registering

func SplitDropID

func SplitDropID(key string) (handle, domain string)

SplitDropID splits the dropid key into its domain and handle subparts

func UserProxyID

func UserProxyID(p string) error

UserProxyID validates an appspace user proxy id

func V0AppspaceLoginRef

func V0AppspaceLoginRef(ref string) error

V0AppspaceLoginRef is a reference used to identify requests for tokens to remote host

func V0AppspaceLoginToken

func V0AppspaceLoginToken(token string) error

V0AppspaceLoginToken is used to obtain a session cookie for an appspace

Types

This section is empty.

Jump to

Keyboard shortcuts

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