Documentation ¶
Index ¶
- type UserManagerAPI
- func (api *UserManagerAPI) AddUser(args params.AddUsers) (params.AddUserResults, error)
- func (api *UserManagerAPI) CreateLocalLoginMacaroon(args params.Entities) (params.MacaroonResults, error)
- func (api *UserManagerAPI) DisableUser(users params.Entities) (params.ErrorResults, error)
- func (api *UserManagerAPI) EnableUser(users params.Entities) (params.ErrorResults, error)
- func (api *UserManagerAPI) SetPassword(args params.EntityPasswords) (params.ErrorResults, error)
- func (api *UserManagerAPI) UserInfo(request params.UserInfoRequest) (params.UserInfoResults, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserManagerAPI ¶
type UserManagerAPI struct {
// contains filtered or unexported fields
}
UserManagerAPI implements the user manager interface and is the concrete implementation of the api end point.
func NewUserManagerAPI ¶
func NewUserManagerAPI( st *state.State, resources *common.Resources, authorizer common.Authorizer, ) (*UserManagerAPI, error)
func (*UserManagerAPI) AddUser ¶
func (api *UserManagerAPI) AddUser(args params.AddUsers) (params.AddUserResults, error)
AddUser adds a user with a username, and either a password or a randomly generated secret key which will be returned.
func (*UserManagerAPI) CreateLocalLoginMacaroon ¶
func (api *UserManagerAPI) CreateLocalLoginMacaroon(args params.Entities) (params.MacaroonResults, error)
CreateLocalLoginMacaroon creates a macaroon for the specified users to use for future logins.
func (*UserManagerAPI) DisableUser ¶
func (api *UserManagerAPI) DisableUser(users params.Entities) (params.ErrorResults, error)
DisableUser disables one or more users. If the user is already disabled, the action is consided a success.
func (*UserManagerAPI) EnableUser ¶
func (api *UserManagerAPI) EnableUser(users params.Entities) (params.ErrorResults, error)
EnableUser enables one or more users. If the user is already enabled, the action is consided a success.
func (*UserManagerAPI) SetPassword ¶
func (api *UserManagerAPI) SetPassword(args params.EntityPasswords) (params.ErrorResults, error)
SetPassword changes the stored password for the specified users.
func (*UserManagerAPI) UserInfo ¶
func (api *UserManagerAPI) UserInfo(request params.UserInfoRequest) (params.UserInfoResults, error)
UserInfo returns information on a user.