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 ¶
Otp runs the `gopass otp` command with the provided key and if successful it will return the OTP code.
func (GopassPath) Passphrase ¶
Passphrase runs the `gopass passphrase` command with the provided key and if successful it will return the requested passphrase
Click to show internal directories.
Click to hide internal directories.