Copyright 2012-2016 Canonical Ltd. Licensed under the AGPLv3, see LICENCE file for details.



    This section is empty.


    This section is empty.


    func NewAddCommand

    func NewAddCommand() cmd.Command

    func NewChangePasswordCommand

    func NewChangePasswordCommand() cmd.Command

    func NewDisableCommand

    func NewDisableCommand() cmd.Command

    func NewEnableCommand

    func NewEnableCommand() cmd.Command

    func NewListCommand

    func NewListCommand() cmd.Command

    func NewLoginCommand

    func NewLoginCommand() cmd.Command

      NewLoginCommand returns a new cmd.Command to handle "juju login".

      func NewLogoutCommand

      func NewLogoutCommand() cmd.Command

        NewLogoutCommand returns a new cmd.Command to handle "juju logout".

        func NewRemoveCommand

        func NewRemoveCommand() cmd.Command

          NewRemoveCommand constructs a wrapped unexported removeCommand.

          func NewShowUserCommand

          func NewShowUserCommand() cmd.Command

          func NewWhoAmICommand

          func NewWhoAmICommand() cmd.Command

            NewWhoAmICommand returns a command to print login details.


            type AddUserAPI

            type AddUserAPI interface {
            	AddUser(username, displayName, password string) (names.UserTag, []byte, error)
            	Close() error

              AddUserAPI defines the usermanager API methods that the add command uses.

              type ChangePasswordAPI

              type ChangePasswordAPI interface {
              	SetPassword(username, password string) error
              	ResetPassword(username string) ([]byte, error)
              	BestAPIVersion() int
              	Close() error

                ChangePasswordAPI defines the usermanager API methods that the change password command uses.

                type RemoveUserAPI

                type RemoveUserAPI interface {
                	RemoveUser(username string) error
                	Close() error

                  RemoveUserAPI defines the usermanager API methods that the remove command uses.

                  type UserInfo

                  type UserInfo struct {
                  	Username       string `yaml:"user-name" json:"user-name"`
                  	DisplayName    string `yaml:"display-name,omitempty" json:"display-name,omitempty"`
                  	Access         string `yaml:"access" json:"access"`
                  	DateCreated    string `yaml:"date-created,omitempty" json:"date-created,omitempty"`
                  	LastConnection string `yaml:"last-connection,omitempty" json:"last-connection,omitempty"`
                  	Disabled       bool   `yaml:"disabled,omitempty" json:"disabled,omitempty"`

                    UserInfo defines the serialization behaviour of the user information.

                    type UserInfoAPI

                    type UserInfoAPI interface {
                    	UserInfo([]string, usermanager.IncludeDisabled) ([]params.UserInfo, error)
                    	Close() error

                      UserInfoAPI defines the API methods that the info command uses.