Documentation ¶
Index ¶
- func NewAddCommand() cmd.Command
- func NewChangePasswordCommand() cmd.Command
- func NewDisableCommand() cmd.Command
- func NewEnableCommand() cmd.Command
- func NewListCommand() cmd.Command
- func NewLoginCommand() cmd.Command
- func NewLogoutCommand() cmd.Command
- func NewShowUserCommand() cmd.Command
- type AddUserAPI
- type ChangePasswordAPI
- type LoginAPI
- type UserInfo
- type UserInfoAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddCommand ¶
func NewDisableCommand ¶
func NewEnableCommand ¶
func NewListCommand ¶
func NewLoginCommand ¶
NewLoginCommand returns a new cmd.Command to handle "juju login".
func NewLogoutCommand ¶
NewLogoutCommand returns a new cmd.Command to handle "juju logout".
func NewShowUserCommand ¶
Types ¶
type AddUserAPI ¶
type AddUserAPI interface { AddUser(username, displayName, password, access string, modelUUIDs ...string) (names.UserTag, []byte, error) Close() error }
AddUserAPI defines the usermanager API methods that the add command uses.
type ChangePasswordAPI ¶
type ChangePasswordAPI interface { CreateLocalLoginMacaroon(names.UserTag) (*macaroon.Macaroon, error) SetPassword(username, password string) error Close() error }
ChangePasswordAPI defines the usermanager API methods that the change password command uses.
type LoginAPI ¶
type LoginAPI interface { CreateLocalLoginMacaroon(names.UserTag) (*macaroon.Macaroon, error) Close() error }
LoginAPI provides the API methods that the login command uses.
type UserInfo ¶
type UserInfo struct { Username string `yaml:"user-name" json:"user-name"` DisplayName string `yaml:"display-name" json:"display-name"` DateCreated string `yaml:"date-created" json:"date-created"` LastConnection string `yaml:"last-connection" json:"last-connection"` 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.
Click to show internal directories.
Click to hide internal directories.