user

package
v0.0.0-...-2608902 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 NewShowUserCommand

func NewShowUserCommand() cmd.Command

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.

Jump to

Keyboard shortcuts

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