Documentation ¶
Overview ¶
Package userapi contains the methods required to manage platform users.
Index ¶
- func Create(params CreateParams) (*models.User, error)
- func Delete(params DeleteParams) error
- func Enable(params EnableParams) (*models.User, error)
- func Get(params GetParams) (*models.User, error)
- func GetCurrent(params GetCurrentParams) (*models.User, error)
- func List(params ListParams) (*models.UserList, error)
- func Update(params UpdateParams) (*models.User, error)
- func UpdateCurrent(params UpdateParams) (*models.User, error)
- func ValidateRoles(roles []string) error
- type CreateParams
- type DeleteParams
- type EnableParams
- type GetCurrentParams
- type GetParams
- type ListParams
- type UpdateParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Enable ¶
func Enable(params EnableParams) (*models.User, error)
Enable enables or disables an existing user.
func GetCurrent ¶
func GetCurrent(params GetCurrentParams) (*models.User, error)
GetCurrent returns information about the current user.
func List ¶
func List(params ListParams) (*models.UserList, error)
List returns a list of all users.
func Update ¶
func Update(params UpdateParams) (*models.User, error)
Update updates an existing user.
func UpdateCurrent ¶
func UpdateCurrent(params UpdateParams) (*models.User, error)
UpdateCurrent updates the current user.
func ValidateRoles ¶
ValidateRoles ensures the parameters are usable by the consuming function.
Types ¶
type CreateParams ¶
type CreateParams struct { *api.API Password []byte Roles []string UserName, FullName, Email string }
CreateParams is consumed by Create
func (CreateParams) Validate ¶
func (params CreateParams) Validate() error
Validate ensures the parameters are usable by the consuming function.
type DeleteParams ¶
DeleteParams is consumed by Delete
func (DeleteParams) Validate ¶
func (params DeleteParams) Validate() error
Validate ensures the parameters are usable by the consuming function.
type EnableParams ¶
EnableParams is consumed by Enable
func (EnableParams) Validate ¶
func (params EnableParams) Validate() error
Validate ensures the parameters are usable by the consuming function.
type GetCurrentParams ¶
GetCurrentParams is consumed by GetCurrent
func (GetCurrentParams) Validate ¶
func (params GetCurrentParams) Validate() error
Validate ensures the parameters are usable by the consuming function.
type ListParams ¶
ListParams is consumed by List
func (ListParams) Validate ¶
func (params ListParams) Validate() error
Validate ensures the parameters are usable by the consuming function.
type UpdateParams ¶
type UpdateParams struct { *api.API Password []byte Roles []string FullName, Email, UserName string }
UpdateParams is consumed by Update
func (UpdateParams) Validate ¶
func (params UpdateParams) Validate() error
Validate ensures the parameters are usable by the consuming function.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package userauthapi contains the self service logic required to manage a user's authentication settings, such as API keys.
|
Package userauthapi contains the self service logic required to manage a user's authentication settings, such as API keys. |
adminapi
Package userauthadminapi contains the logic required to manage a user's authentication settings, such as API keys.
|
Package userauthadminapi contains the logic required to manage a user's authentication settings, such as API keys. |