Documentation ¶
Overview ¶
Package sypgp implements the openpgp integration into the singularity project.
Index ¶
- func AskQuestion(format string, a ...interface{}) (string, error)
- func AskQuestionNoEcho(format string, a ...interface{}) (string, error)
- func DecryptKey(k *openpgp.Entity) error
- func DirPath() string
- func EncryptKey(k *openpgp.Entity, pass string) (err error)
- func FetchPubkey(fingerprint, keyserverURI, authToken string, noPrompt bool) (openpgp.EntityList, error)
- func GenKeyPair() (entity *openpgp.Entity, err error)
- func GetTokenFile() string
- 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)
- func StorePrivKey(e *openpgp.Entity) (err error)
- func StorePubKey(e *openpgp.Entity) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskQuestion ¶
AskQuestion prompts the user with a question and return the response
func AskQuestionNoEcho ¶
AskQuestionNoEcho works like AskQuestion() except it doesn't echo user's input
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 EncryptKey ¶
EncryptKey encrypts a private key using a pass phrase
func FetchPubkey ¶
func FetchPubkey(fingerprint, keyserverURI, authToken string, noPrompt bool) (openpgp.EntityList, error)
FetchPubkey connects to a key server and requests a specific key
func GenKeyPair ¶
GenKeyPair generates an OpenPGP key pair and store them in the sypgp home folder
func GetTokenFile ¶
func GetTokenFile() string
GetTokenFile returns a string describing the path to the stored token file
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
func StorePrivKey ¶
StorePrivKey stores a private entity list into the local key cache
func StorePubKey ¶
StorePubKey stores a public key entity list into the local key cache
Types ¶
This section is empty.