Documentation ¶
Index ¶
- type CrypterHandle
- func (crypt CrypterHandle) AddNewKey(keyname, repobasedir, sourcedir, destdir string) ([]string, error)
- func (crypt CrypterHandle) Cat(filename string) ([]byte, error)
- func (crypt CrypterHandle) Decrypt(filename string, umask int, overwrite bool) error
- func (crypt CrypterHandle) Encrypt(filename string, umask int, receivers []string) (string, error)
- func (crypt CrypterHandle) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrypterHandle ¶
type CrypterHandle struct { GPGCmd string // "gpg2" or "gpg" // contains filtered or unexported fields }
CrypterHandle is the handle
func (CrypterHandle) AddNewKey ¶
func (crypt CrypterHandle) AddNewKey(keyname, repobasedir, sourcedir, destdir string) ([]string, error)
AddNewKey extracts keyname from sourcedir's GnuPG chain to destdir keychain. It returns a list of files that may have changed.
func (CrypterHandle) Cat ¶
func (crypt CrypterHandle) Cat(filename string) ([]byte, error)
Cat returns the plaintext or, if it is missing, the decrypted cyphertext.
func (CrypterHandle) Decrypt ¶
func (crypt CrypterHandle) Decrypt(filename string, umask int, overwrite bool) error
Decrypt name+".gpg", possibly overwriting name.
Click to show internal directories.
Click to hide internal directories.