Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSigner ¶
NewSigner returns a signature.Signer which creates “simple signing” signatures using the user’s default GPG configuration ($GNUPGHOME / ~/.gnupg).
The set of options must identify a key to sign with, probably using a WithKeyFingerprint.
The caller must call Close() on the returned Signer.
Types ¶
type Option ¶
type Option func(*simpleSigner) error
func WithKeyFingerprint ¶
WithKeyFingerprint returns an Option for NewSigner, specifying a key to sign with, using the provided GPG key fingerprint.
func WithPassphrase ¶
WithPassphrase returns an Option for NewSigner, specifying a passphrase for the private key. If this is not specified, the system may interactively prompt using a gpg-agent / pinentry.
Click to show internal directories.
Click to hide internal directories.