Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider interface { EncryptFile(string, string) error DecryptFile(string, string) error GetEncryptionKey() (encryptionKey *openpgp.Entity, err error) GetSigningKey() (signingKey *openpgp.Entity, err error) }
Provider helper functions to encrypt/decrypt files
func NewProvider ¶
func NewProvider(config ProviderConfig, log *log.Entry) Provider
NewProvider returns a Crypto Provider
type ProviderConfig ¶
type ProviderConfig struct { EncryptionKey string `json:"encryptionKey"` SigningKey string `json:"signingKey"` SigningKeyPassword string `json:"signingKeyPassword"` SigningFingerPrint string `json:"signingFingerPrint"` FingerPrint string `json:"fingerprint"` EncryptionKeyPassword string `json:"encryptionKeyPassword"` DecryptionKey string `json:"decryptionKey"` SrcDir string `json:"srcDir"` DestDir string `json:"destDir"` Enabled bool `json:"enabled"` }
ProviderConfig is an instance of the SFTP Connection Details
Click to show internal directories.
Click to hide internal directories.