Documentation ¶
Overview ¶
Package gpgagent interacts with the local GPG Agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn is a connection to the GPG agent.
func NewConn ¶
NewConn connects to the GPG Agent as described in the GPG_AGENT_INFO environment variable.
func (*Conn) GetPassphrase ¶
func (c *Conn) GetPassphrase(pr *PassphraseRequest) (passphrase string, outerr error)
type PassphraseRequest ¶
type PassphraseRequest struct {
CacheKey, Error, Prompt, Desc string
// If the option --no-ask is used and the passphrase is not in
// the cache the user will not be asked to enter a passphrase
// but the error code GPG_ERR_NO_DATA is returned. (ErrNoData)
NoAsk bool
}
PassphraseRequest is a request to get a passphrase from the GPG Agent.
Click to show internal directories.
Click to hide internal directories.