gopass

package
v0.0.0-...-65eea1c Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GopassPath

type GopassPath string

GopassPath represents the absolute path to the `gopass` executable.

func New

func New(gopassPath string) GopassPath

New returns a new instance of GopassPath with the provided path as default. If no path is provided, it uses the value from the $GOPASS environment variable if set, otherwise defaults to "gopass".

func (GopassPath) Otp

func (g GopassPath) Otp(ctx context.Context, key string) (code string, err error)

Otp runs the `gopass otp` command with the provided key and if successful it will return the OTP code.

func (GopassPath) Passphrase

func (g GopassPath) Passphrase(ctx context.Context, key string) (code string, err error)

Passphrase runs the `gopass passphrase` command with the provided key and if successful it will return the requested passphrase

func (GopassPath) Password

func (g GopassPath) Password(ctx context.Context, key string) (code string, err error)

Password runs the `gopass password` command with the provided key and if successfull it will return the requested passphrase

Jump to

Keyboard shortcuts

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