Documentation ¶
Index ¶
- Constants
- func AnalyzeKeyDump(files []string) (map[string]*openpgp.Entity, error)
- func ArmorKey(entity *openpgp.Entity) (string, error)
- func GetAllFiles(dir string) ([]string, error)
- func GetFilesThatMatch(dir string, rgx string) ([]string, error)
- func GetSksOriginalDumpFiles(dir string) ([]string, error)
- func LoadAndParseKeys(files []string) ([]*openpgp.Entity, error)
- func PrimaryEmail(e *openpgp.Entity) string
- func RecoverKeyFromBlock(block []byte, email string) (*openpgp.Entity, error)
- func WriteKeysOnDisk(dir string, entities map[string]*openpgp.Entity) error
- type Key
Constants ¶
View Source
const ( SksParsedFullFileName = "sks-full.pgp" SksOriginalFolder = "sks-original" SksParsedFolder = "sks" )
Variables ¶
This section is empty.
Functions ¶
func GetAllFiles ¶
GetAllFiles returns all the filenames from the directory
func GetFilesThatMatch ¶
GetFilesThatMatch returns the filenames from the directory which match with the given regex expression
func GetSksOriginalDumpFiles ¶
Reads the given directory and returns the file names matching the sks dump description
func PrimaryEmail ¶
Returns the lower-cased email from the primary identity, or if it is empty, the alphabetically first non-empty lower-cased email
func RecoverKeyFromBlock ¶
Returns an Entity with the given email in the primary ID from a block of serialized entities.
Types ¶
Click to show internal directories.
Click to hide internal directories.