usermanager

package
v0.0.0-...-be26699 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2015 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserManager

type UserManager interface {
	AddUser(args params.AddUsers) (params.AddUserResults, error)
	DisableUser(args params.Entities) (params.ErrorResults, error)
	EnableUser(args params.Entities) (params.ErrorResults, error)
	SetPassword(args params.EntityPasswords) (params.ErrorResults, error)
	UserInfo(args params.UserInfoRequest) (params.UserInfoResults, error)
}

UserManager defines the methods on the usermanager API end point.

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.

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

UserInfo returns information on a user.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL