Documentation ¶
Overview ¶
Package cli holds commands for accounts command.
Index ¶
- type CLI
- func (c *CLI) Create(ctx context.Context, username, password string) error
- func (c *CLI) Delete(ctx context.Context, username string) error
- func (c *CLI) List(ctx context.Context, opts *ListOptions) error
- func (c *CLI) SetPassword(ctx context.Context, username, password string) error
- func (c *CLI) WithAccountManager(m accounts.Interface)
- type ListOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI provides functionality for managing user accounts via the CLI.
func (*CLI) List ¶
func (c *CLI) List(ctx context.Context, opts *ListOptions) error
List all user accounts in the system.
func (*CLI) SetPassword ¶
SetPassword sets the password for an existing account.
func (*CLI) WithAccountManager ¶
WithAccountManager sets the account manager for the CLI.
type ListOptions ¶
type ListOptions struct { NoHeaders bool `mapstructure:"no-headers"` Columns []string `mapstructure:"columns"` }
ListOptions holds options for listing user accounts.
Click to show internal directories.
Click to hide internal directories.