Documentation ¶
Index ¶
- Variables
- func ClusterName(val interface{}) error
- func Credentials() error
- func DBUsername(val interface{}) error
- func FlagInSlice(value, flag string, validValues []string) error
- func ObjectID(s string) error
- func OptionalObjectID(val interface{}) error
- func OptionalPath(val interface{}) error
- func OptionalURL(val interface{}) error
- func Path(val interface{}) error
- func URL(val interface{}) error
- func WeakPassword(val interface{}) error
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 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 WeakPassword ¶ added in v1.16.0
func WeakPassword(val interface{}) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.