user

package
v0.0.0-...-9ec3720 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: AGPL-3.0 Imports: 37 Imported by: 0

Documentation

Overview

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

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 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.

Types

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.

Jump to

Keyboard shortcuts

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