Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlwaysTrust ¶
IsAlwaysTrust will return the value of the always trust flag or the default (false)
Types ¶
type Identity ¶
type Identity struct { Name string Comment string Email string CreationDate time.Time ExpirationDate time.Time }
Identity is a GPG identity, one key can have many IDs
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 ¶
Recipients returns the KeyList formatted as a recipient list
func (KeyList) UnusableKeys ¶
UnusableKeys returns the list of unusable keys (invalid keys)
func (KeyList) UseableKeys ¶
UseableKeys returns the list of useable (valid keys)
Click to show internal directories.
Click to hide internal directories.