prompt

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT, MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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 New

func New(conn *dbus.Conn) *Dialogs

New prompts through the dialog host on conn.

func (*Dialogs) Confirm

func (d *Dialogs) Confirm(ctx context.Context, r pinentry.Request, oneButton bool) (bool, error)

Confirm asks gpg-agent's question; a message only has its OK.

func (*Dialogs) ConfirmRead

func (d *Dialogs) ConfirmRead(ctx context.Context, r service.ReadRequest) (service.Access, error)

ConfirmRead asks whether a program may read an item it does not own.

func (*Dialogs) ConfirmUse

func (d *Dialogs) ConfirmUse(ctx context.Context, k sshagent.Key) (bool, error)

ConfirmUse asks whether an SSH key added with ssh-add -c may sign.

func (*Dialogs) GetPin

func (d *Dialogs) GetPin(ctx context.Context, r pinentry.Request) ([]byte, bool, bool, error)

GetPin asks for a GnuPG passphrase as gpg-agent set the dialog up.

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

func (d *Dialogs) MasterPassword(ctx context.Context, retry bool) ([]byte, bool, error)

MasterPassword asks for the Bitwarden vault's master password.

func (*Dialogs) NewPassword

func (d *Dialogs) NewPassword(ctx context.Context, collection string) ([]byte, bool, error)

NewPassword asks for a new collection's password, twice.

func (*Dialogs) Password

func (d *Dialogs) Password(ctx context.Context, collection string, retry bool) ([]byte, bool, error)

Password asks for an existing collection's password.

func (*Dialogs) PreviousLoginPassword

func (d *Dialogs) PreviousLoginPassword(ctx context.Context, retry bool) ([]byte, bool, error)

PreviousLoginPassword asks for the login password from before it changed.

Jump to

Keyboard shortcuts

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