Documentation
¶
Overview ¶
Package encryption provides encryption and decryption actions for the operation graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
op.ProviderBase
}
Provider provides encryption and decryption actions.
+devlore:access=both
func (*Provider) CompensateDecryptSopsFile ¶
func (*Provider) DecryptSopsFile ¶
func (p *Provider) DecryptSopsFile(sourceFile file.Resource, destinationFilename string) (result file.Resource, undo map[string]any, err error)
DecryptSopsFile takes a file.Resource, reads it into memory, and decrypts it via SOPS.
Parameters:
sourceFile: The file.Resource to decrypt. destinationFilename: The filename to write the decrypted content to.
Returns:
- result: a file.Resource containing the decrypted content.
- undo: a map of compensation receipts.
- err: an error, if any.
Click to show internal directories.
Click to hide internal directories.