Documentation ¶
Index ¶
- Variables
- func ClusterName(val interface{}) error
- func ConditionalFlagNotInSlice(conditionalFlag string, conditionalFlagValue string, flag string, ...) error
- func Credentials() error
- func DBUsername(val interface{}) error
- func FlagInSlice(value, flag string, validValues []string) error
- func NoAPIKeys() error
- func NoAccessToken() 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 ErrAlreadyAuthenticatedAPIKeys = errors.New("already authenticated with an API key")
View Source
var ErrAlreadyAuthenticatedToken = errors.New("already authenticated with an account")
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("this action requires authentication")
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 ¶
func ClusterName(val interface{}) error
func Credentials ¶
func Credentials() error
Credentials validates public and private API keys have been set.
func DBUsername ¶
func DBUsername(val interface{}) error
func FlagInSlice ¶
func NoAPIKeys ¶
func NoAPIKeys() error
NoAPIKeys there are no API keys in the profile, used for login/register/setup commands.
func NoAccessToken ¶
func NoAccessToken() error
NoAccessToken there is no access token in the profile, used for login/register/setup commands.
func OptionalObjectID ¶
func OptionalObjectID(val interface{}) error
OptionalObjectID validates a value is a valid ObjectID.
func OptionalPath ¶
func OptionalPath(val interface{}) error
func OptionalURL ¶
func OptionalURL(val interface{}) error
OptionalURL validates a value is a valid URL for the cli store.
func WeakPassword ¶
func WeakPassword(val interface{}) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.