Documentation
¶
Overview ¶
Package prompt asks the user for lys-secrets' passwords through the shell's dialog host (dev.stubbe.lys.PortalDialogs1), so the prompts look like every other lys dialog and lys-secrets draws no UI itself.
Index ¶
- type Dialogs
- func (d *Dialogs) Confirm(ctx context.Context, r pinentry.Request, oneButton bool) (bool, error)
- func (d *Dialogs) ConfirmRead(ctx context.Context, r service.ReadRequest) (service.Access, error)
- func (d *Dialogs) ConfirmUse(ctx context.Context, k sshagent.Key) (bool, error)
- func (d *Dialogs) GetPin(ctx context.Context, r pinentry.Request) ([]byte, bool, bool, error)
- func (d *Dialogs) KeyPassphrase(ctx context.Context, k sshagent.Key, retry bool) ([]byte, bool, bool, error)
- func (d *Dialogs) MasterPassword(ctx context.Context, retry bool) ([]byte, bool, error)
- func (d *Dialogs) NewPassword(ctx context.Context, collection string) ([]byte, bool, error)
- func (d *Dialogs) Password(ctx context.Context, collection string, retry bool) ([]byte, bool, error)
- func (d *Dialogs) PreviousLoginPassword(ctx context.Context, retry bool) ([]byte, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialogs ¶
type Dialogs struct {
// contains filtered or unexported fields
}
Dialogs is a service.Prompter, an sshagent.Prompter and a pinentry.UI over the shell's dialogs.
func (*Dialogs) ConfirmRead ¶
ConfirmRead asks whether a program may read an item it does not own.
func (*Dialogs) ConfirmUse ¶
ConfirmUse asks whether an SSH key added with ssh-add -c may sign.
func (*Dialogs) KeyPassphrase ¶
func (d *Dialogs) KeyPassphrase(ctx context.Context, k sshagent.Key, retry bool) ([]byte, bool, bool, error)
KeyPassphrase asks for an SSH key's passphrase, and whether to remember it.
func (*Dialogs) MasterPassword ¶
MasterPassword asks for the Bitwarden vault's master password.
func (*Dialogs) NewPassword ¶
NewPassword asks for a new collection's password, twice.