Documentation ¶
Overview ¶
Package gpg provides encrypted files
Index ¶
- func CollectGPGPubKeys(fp string) (*openpgp.EntityList, error)
- func Encrypt(d []byte, encryptionKeys *openpgp.EntityList, useArmor bool) ([]byte, error)
- func EncryptToWithCmd(cmd *cobra.Command) (*openpgp.EntityList, error)
- func NewKeyFilesWithPair(kp *KeyPair, dest string) ([]string, error)
- func ReadEntity(name string) (*openpgp.Entity, error)
- type FileInfo
- type KeyOpts
- type KeyPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectGPGPubKeys ¶
func CollectGPGPubKeys(fp string) (*openpgp.EntityList, error)
CollectGPGPubKeys returns an EntityList from a place of pub keys
func Encrypt ¶
Encrypt the provided bytes for the provided encryption keys recipients. Returns the encrypted content bytes.
func EncryptToWithCmd ¶
func EncryptToWithCmd(cmd *cobra.Command) (*openpgp.EntityList, error)
EncryptToWithCmd uses a cobra.Command to create an EntityList
func NewKeyFilesWithPair ¶
NewKeyFilesWithPair Given a keypair object, write the contents to a public and private key file, returning those paths
Types ¶
type FileInfo ¶
FileInfo is information about a GPGFile
func NewFileInfo ¶
NewFileInfo returns a new FileInfo
Click to show internal directories.
Click to hide internal directories.