Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Type of this signer is "gpg2" represents a signer that // shells out to gpg2 to sign artifacts since the golang "pgp" // signer doesn't support signing with subkeys // https://godoc.org/golang.org/x/crypto/openpgp#ArmoredDetachSign // or loading keys exported with gnu-dummy s2k encrypted // passphrases https://github.com/golang/go/issues/13605 Type = "gpg2" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GPG2Signer ¶
type GPG2Signer struct { signer.Configuration // KeyID is the fingerprint of the gpg key or subkey to use // e.g. 0xA2B637F535A86009 KeyID string // contains filtered or unexported fields }
GPG2Signer holds the configuration of the signer
func New ¶
func New(conf signer.Configuration) (s *GPG2Signer, err error)
New initializes a pgp signer using a configuration
func (*GPG2Signer) AtExit ¶
func (s *GPG2Signer) AtExit() error
AtExit removes the temp dir containing the signer key and sec rings when the app is shut down gracefully
func (*GPG2Signer) Config ¶
func (s *GPG2Signer) Config() signer.Configuration
Config returns the configuration of the current signer
func (*GPG2Signer) GetDefaultOptions ¶
func (s *GPG2Signer) GetDefaultOptions() interface{}
GetDefaultOptions returns default options of the signer
Click to show internal directories.
Click to hide internal directories.