Documentation ¶
Overview ¶
Package pki handles PGP for pillar content
Index ¶
- Constants
- type Pki
- func (p *Pki) DecryptSecret(cipherText string) (plainText string, err error)
- func (p *Pki) EncryptSecret(plainText string) (string, error)
- func (p *Pki) ExpandTilde(path string) (string, error)
- func (p *Pki) GetKeyByID(keyring *openpgp.EntityList, id interface{}) *openpgp.Entity
- func (p *Pki) KeyUsedForEncryptedFile(file string) (string, error)
Constants ¶
View Source
const PGPHeader string = "-----BEGIN PGP MESSAGE-----"
PGPHeader header const
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pki ¶
type Pki struct { PublicKey *openpgp.Entity SecretKey *openpgp.Entity PubRing *openpgp.EntityList SecRing *openpgp.EntityList PublicKeyRing string SecretKeyRing string PgpKeyName string }
Pki pki info
func (*Pki) DecryptSecret ¶
DecryptSecret returns decrypted cipherText
func (*Pki) EncryptSecret ¶
EncryptSecret returns encrypted plainText
func (*Pki) ExpandTilde ¶
ExpandTilde does exactly what it says on the tin
func (*Pki) GetKeyByID ¶
func (p *Pki) GetKeyByID(keyring *openpgp.EntityList, id interface{}) *openpgp.Entity
GetKeyByID returns a keyring by the given ID
Click to show internal directories.
Click to hide internal directories.