interactive

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PinEntryMode string

Functions

func AuthenticateVault

func AuthenticateVault(v *api.VaultInfo, attempt int, lastErr error) ([]byte, error)

func GetNewPassword

func GetNewPassword(label string) (string, error)

func GetOnePassword

func GetOnePassword(ref string) ([]byte, error)

func GetPassword

func GetPassword(long, short string, rd io.Reader, wr io.Writer, mask bool) (string, error)

func ResolveOnePassword

func ResolveOnePassword(itemName, fieldLabel string) (string, error)

func ValidateDependencies added in v0.7.0

func ValidateDependencies()

ValidateDependencies checks that security-critical dependencies (namely, go-pinentry) are audited when they are updated.

The pinentry library is used to read secret data. Therefore it must be audited. If the pinentry library is updated without updating this function, the program will print a warning. This makes it harder to accidentally update the library without auditing it.

I wanted to make this exit the program, but I couldn't figure out how to reliably detect if the program was running in a test environment.

Types

type OnePasswordField

type OnePasswordField struct {
	ID        string `json:"id"`
	Type      string `json:"type"`
	Label     string `json:"label"`
	Value     string `json:"value"`
	Reference string `json:"reference"`
}

Jump to

Keyboard shortcuts

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