Documentation ¶
Index ¶
- Variables
- func CreateUser(username string, password string) error
- func UserAddPassword(username string, opts PasswordOptions) error
- func UserGetPassword(username string, key string) (string, error)
- func UserRemovePassword(username string, key string) error
- func UserRenamePassword(username string, oldKey string, newKey string) error
- func ValidateUserCreds(username string, password string) error
- type PasswordOptions
- type UserData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoPasswordErr = errors.New("Invalid password key. The password doesn't exist") PasswordConflictErr = errors.New("Invalid password key. The password already exists") )
View Source
var ( UserAlreadyExistsErr = errors.New("user with the same username already exits.") UserInvalidErr = errors.New("Invalid credentials for user authentification.") )
Functions ¶
func CreateUser ¶
func UserAddPassword ¶
func UserAddPassword(username string, opts PasswordOptions) error
func UserRemovePassword ¶
func UserRenamePassword ¶
func ValidateUserCreds ¶
Types ¶
type PasswordOptions ¶
Click to show internal directories.
Click to hide internal directories.