Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyError ¶
type EmptyError struct{}
EmptyError is returned if the validated password is empty or all whitespace.
func (*EmptyError) Error ¶
func (*EmptyError) Error() string
type TooFewCharsError ¶
type TooFewCharsError struct {
// contains filtered or unexported fields
}
TooFewCharsError is returned if the password has less than the required number of distinct characters.
func (*TooFewCharsError) Error ¶
func (e *TooFewCharsError) Error() string
type TooShortError ¶
type TooShortError struct {
// contains filtered or unexported fields
}
TooShortError is returned if the password is shorter than the required number of chars.
func (*TooShortError) Error ¶
func (e *TooShortError) Error() string
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator is a wrapper type for our password validation
func NewValidator ¶
NewValidator instantiates a password.Validator struct
Click to show internal directories.
Click to hide internal directories.