Documentation ¶
Index ¶
- Variables
- func CreateUser(userService UserService, pr PasswordReader, username string, groups []string, ...) error
- func DeleteUser(userService UserService, username string) error
- func UpdateUser(userService UserService, pr PasswordReader, username string, groups []string, ...) error
- type PasswordReader
- type UserInput
- type UserService
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPasswordsDoNotMatch = errors.New("passwords do not match")
Functions ¶
func CreateUser ¶
func CreateUser(userService UserService, pr PasswordReader, username string, groups []string, twoFASendTo string) error
func DeleteUser ¶
func DeleteUser(userService UserService, username string) error
func UpdateUser ¶
func UpdateUser(userService UserService, pr PasswordReader, username string, groups []string, twoFASendTo string, askForPassword bool) error
Types ¶
type PasswordReader ¶
func NewPasswordReader ¶
func NewPasswordReader() PasswordReader
type UserService ¶
type UserService interface { Create(input UserInput) error Change(input UserInput) error Delete(username string) error ProviderType() enums.ProviderSource }
func NewUserService ¶
func NewUserService(cfg *chconfig.Config) (UserService, error)
Click to show internal directories.
Click to hide internal directories.