Documentation
¶
Overview ¶
Package gpg creates deterministic aggregate APT and RPM metadata signatures with a configured GnuPG home, key identity, and owner-only passphrase file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Path overrides the gpg executable. Empty resolves "gpg" from PATH.
Path string
// Home is the absolute GnuPG home containing the aggregate metadata key.
Home string
// KeyID selects the aggregate metadata signing key.
KeyID string
// PassphraseFile is the absolute owner-only file containing the key passphrase.
PassphraseFile string
// Environ is the child process environment. Nil inherits the parent.
Environ []string
// Stderr receives live GnuPG diagnostics. Nil discards them.
Stderr io.Writer
}
Options configures a Signer.
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer creates deterministic aggregate APT and RPM OpenPGP signatures.
The passphrase is supplied by file path and never appears as an argument, environment value, returned error, or adapter output.
func (*Signer) ClearSign ¶
ClearSign implements pkgrepo.Signer.
func (*Signer) DetachSign ¶
DetachSign implements pkgrepo.Signer.
Click to show internal directories.
Click to hide internal directories.