Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct { KeyType string KeyLength int Validity string CreationDate time.Time ExpirationDate time.Time Ownertrust string Fingerprint string Identities map[string]Identity SubKeys map[string]struct{} }
Key is a GPG key (public or secret)
func (Key) IsUseable ¶
IsUseable returns true if GPG would assume this key is useable for encryption
type KeyList ¶
type KeyList []Key
KeyList is a searchable slice of Keys
func (KeyList) Recipients ¶ added in v1.3.0
Recipients returns the KeyList formatted as a recipient list
func (KeyList) UnuseableKeys ¶ added in v1.3.0
UnuseableKeys returns the list of unuseable keys (invalid keys)
func (KeyList) UseableKeys ¶
UseableKeys returns the list of useable (valid keys)
Click to show internal directories.
Click to hide internal directories.