menu

package
v3.0.42 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidCredentials = errors.New("Credentials are not valid")
	ErrNotAUser           = errors.New("Credentials are not for a user principal")
)
View Source
var (
	ErrUserAbort   = errors.New("Aborted by user. Vault unchanged.")
	ErrSaveAndExit = errors.New("Exiting at user request.")
)

Functions

This section is empty.

Types

type AWSMenu

type AWSMenu struct {
	*Menu
}

AWSMenu The menu type for the AWS edit tree

func (*AWSMenu) Handler

func (m *AWSMenu) Handler() error

func (*AWSMenu) Help

func (m *AWSMenu) Help()

func (*AWSMenu) Printer

func (m *AWSMenu) Printer()

type DetectMFAMenu

type DetectMFAMenu struct {
	*Menu
}

func (*DetectMFAMenu) Handler

func (m *DetectMFAMenu) Handler() error

type DurationMenu

type DurationMenu struct {
	*Menu
}

func (*DurationMenu) Handler

func (m *DurationMenu) Handler() error

func (*DurationMenu) Printer

func (m *DurationMenu) Printer()

type ImportCredentialsMenu

type ImportCredentialsMenu struct {
	Menu
	Credentials *vaulted.AWSCredentials
}

func (*ImportCredentialsMenu) Handler

func (m *ImportCredentialsMenu) Handler() error

type Interaction

type Interaction struct {
	// contains filtered or unexported fields
}

func (*Interaction) ReadInput

func (interaction *Interaction) ReadInput(message string, rl *readline.Instance) (string, error)

func (*Interaction) ReadMenu

func (interaction *Interaction) ReadMenu(message string) (string, error)

func (*Interaction) ReadPrompt

func (interaction *Interaction) ReadPrompt(message string) (string, error)

func (*Interaction) ReadValue

func (interaction *Interaction) ReadValue(message string) (string, error)
type MainMenu struct {
	Menu
	VaultName string
}

MainMenu is the top level menu entrypoint handler

func (m *MainMenu) Handler() error
func (m *MainMenu) Help()
type Menu struct {
	Vault      *vaulted.Vault
	ShowHidden bool
}

Menu the type of all menus for the edit classes, provides a standardized interface for abstraction

type SSHKeyMenu

type SSHKeyMenu struct {
	*Menu
}

func (*SSHKeyMenu) AddSSHKey

func (m *SSHKeyMenu) AddSSHKey() error

func (*SSHKeyMenu) Handler

func (m *SSHKeyMenu) Handler() error

func (*SSHKeyMenu) Help

func (m *SSHKeyMenu) Help()

func (*SSHKeyMenu) Printer

func (m *SSHKeyMenu) Printer()

type VariableMenu

type VariableMenu struct {
	*Menu
}

func (*VariableMenu) Handler

func (m *VariableMenu) Handler() error

func (*VariableMenu) Help

func (m *VariableMenu) Help()

func (*VariableMenu) Printer

func (m *VariableMenu) Printer()

Jump to

Keyboard shortcuts

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