Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keystore ¶
type Keystore struct { LocalPath string UserPath string SystemPath string // contains filtered or unexported fields }
A Keystore represents a repository of trusted public keys which can be used to verify PGP signatures.
func Default ¶
func Default() *Keystore
Default returns a keystore backed by the default local, user, and system paths.
func (*Keystore) CheckSignature ¶
CheckSignature takes a signed file and a detached signature and verifies if it is signed by a trusted signer.
func (*Keystore) DeleteTrustedKey ¶
DeleteTrustedKey deletes the trusted key identified by fingerprint.
func (*Keystore) MaskTrustedSystemKey ¶
MaskTrustedSystemKey masks the system trusted key identified by fingerprint.
Click to show internal directories.
Click to hide internal directories.