juju: github.com/juju/juju/apiserver/facades/client/usermanager Index | Files

package usermanager

import "github.com/juju/juju/apiserver/facades/client/usermanager"


Package Files


type UserManagerAPI Uses

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 Uses

func NewUserManagerAPI(
    st *state.State,
    resources facade.Resources,
    authorizer facade.Authorizer,
) (*UserManagerAPI, error)

NewUserManagerAPI provides the signature required for facade registration.

func (*UserManagerAPI) AddUser Uses

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) DisableUser Uses

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 considered a success.

func (*UserManagerAPI) EnableUser Uses

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 considered a success.

func (*UserManagerAPI) RemoveUser Uses

func (api *UserManagerAPI) RemoveUser(entities params.Entities) (params.ErrorResults, error)

RemoveUser permanently removes a user from the current controller for each entity provided. While the user is permanently removed we keep it's information around for auditing purposes. TODO(redir): Add information about getting deleted user information when we add that capability.

func (*UserManagerAPI) ResetPassword Uses

func (api *UserManagerAPI) ResetPassword(args params.Entities) (params.AddUserResults, error)

ResetPassword resets password for supplied users by invalidating current passwords (if any) and generating new random secret keys which will be returned. Users cannot reset their own password.

func (*UserManagerAPI) SetPassword Uses

func (api *UserManagerAPI) SetPassword(args params.EntityPasswords) (params.ErrorResults, error)

SetPassword changes the stored password for the specified users.

func (*UserManagerAPI) UserInfo Uses

func (api *UserManagerAPI) UserInfo(request params.UserInfoRequest) (params.UserInfoResults, error)

UserInfo returns information on a user.

Package usermanager imports 10 packages (graph) and is imported by 4 packages. Updated 2020-07-27. Refresh now. Tools for package owners.