validate

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidClusterName = errors.New("invalid cluster name")
View Source
var ErrInvalidDBUsername = errors.New("invalid db username")
View Source
var ErrInvalidPath = errors.New("invalid path")
View Source
var ErrMissingCredentials = errors.New("missing credentials")
View Source
var ErrShortPassword = errors.New("the password provided is too short")
View Source
var ErrWeakPassword = errors.New("the password provided is too common")

Functions

func ClusterName added in v1.15.3

func ClusterName(val interface{}) error

func Credentials

func Credentials() error

Credentials validates public and private API keys have been set.

func DBUsername added in v1.15.3

func DBUsername(val interface{}) error

func FlagInSlice added in v1.3.0

func FlagInSlice(value, flag string, validValues []string) error

func ObjectID

func ObjectID(s string) error

ObjectID validates a value is a valid ObjectID.

func OptionalObjectID added in v1.0.0

func OptionalObjectID(val interface{}) error

OptionalObjectID validates a value is a valid ObjectID.

func OptionalPath added in v1.20.0

func OptionalPath(val interface{}) error

func OptionalURL added in v1.1.0

func OptionalURL(val interface{}) error

OptionalURL validates a value is a valid URL for the cli store.

func Path added in v1.15.0

func Path(val interface{}) error

func URL

func URL(val interface{}) error

URL validates a value is a valid URL for the cli store.

func WeakPassword added in v1.16.0

func WeakPassword(val interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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