Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrEmpty ¶
type ErrEmpty struct{}
ErrEmpty is returned if the validated password is empty or all whitespace.
type ErrTooFewChars ¶
type ErrTooFewChars struct {
// contains filtered or unexported fields
}
ErrTooFewChars is returned if the password has less than the required number of distinct characters.
func (*ErrTooFewChars) Error ¶
func (e *ErrTooFewChars) Error() string
type ErrTooShort ¶
type ErrTooShort struct {
// contains filtered or unexported fields
}
ErrTooShort is returned if the password is shorter than the required number of chars.
func (*ErrTooShort) Error ¶
func (e *ErrTooShort) 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.