Documentation ¶
Overview ¶
Package sypgp implements the openpgp integration into the singularity project.
Index ¶
- func DecryptKey(k *openpgp.Entity) error
- func DirPath() string
- func FetchPubkey(fingerprint, keyserverURI, authToken string) (openpgp.EntityList, error)
- func GenKeyPair() error
- func LoadPrivKeyring() (openpgp.EntityList, error)
- func LoadPubKeyring() (openpgp.EntityList, error)
- func PathsCheck() error
- func PrintEntity(index int, e *openpgp.Entity)
- func PrintPrivKeyring() (err error)
- func PrintPubKeyring() (err error)
- func PublicPath() string
- func PushPubkey(entity *openpgp.Entity, keyserverURI, authToken string) error
- func SearchPubkey(search, keyserverURI, authToken string) (string, error)
- func SecretPath() string
- func SelectPrivKey(el openpgp.EntityList) (*openpgp.Entity, error)
- func SelectPubKey(el openpgp.EntityList) (*openpgp.Entity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptKey ¶
DecryptKey decrypts a private key provided a pass phrase
func DirPath ¶
func DirPath() string
DirPath returns a string describing the path to the sypgp home folder
func FetchPubkey ¶
func FetchPubkey(fingerprint, keyserverURI, authToken string) (openpgp.EntityList, error)
FetchPubkey connects to a key server and requests a specific key
func GenKeyPair ¶
func GenKeyPair() error
GenKeyPair generates a PGP key pair and store them in the sypgp home folder
func LoadPrivKeyring ¶
func LoadPrivKeyring() (openpgp.EntityList, error)
LoadPrivKeyring loads the private keys from local store into an EntityList
func LoadPubKeyring ¶
func LoadPubKeyring() (openpgp.EntityList, error)
LoadPubKeyring loads the public keys from local store into an EntityList
func PathsCheck ¶
func PathsCheck() error
PathsCheck creates the sypgp home folder, secret and public keyring files
func PrintEntity ¶
PrintEntity pretty prints an entity entry
func PrintPrivKeyring ¶
func PrintPrivKeyring() (err error)
PrintPrivKeyring prints the secret keyring read from the public local store
func PrintPubKeyring ¶
func PrintPubKeyring() (err error)
PrintPubKeyring prints the public keyring read from the public local store
func PublicPath ¶
func PublicPath() string
PublicPath returns a string describing the path to the public keys store
func PushPubkey ¶
PushPubkey pushes a public key to a key server
func SearchPubkey ¶
SearchPubkey connects to a key server and searches for a specific key
func SecretPath ¶
func SecretPath() string
SecretPath returns a string describing the path to the private keys store
func SelectPrivKey ¶
func SelectPrivKey(el openpgp.EntityList) (*openpgp.Entity, error)
SelectPrivKey prints a secret key list to user and returns the choice
func SelectPubKey ¶
func SelectPubKey(el openpgp.EntityList) (*openpgp.Entity, error)
SelectPubKey prints a public key list to user and returns the choice
Types ¶
This section is empty.