encryption

package
v0.1.0-dev.20260308000933 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 6 Imported by: 0

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 (p *Provider) CompensateDecryptSopsFile(state Tombstone) error

CompensateDecryptSopsFile removes the decrypted file created by DecryptSopsFile.

func (*Provider) DecryptSopsFile

func (p *Provider) DecryptSopsFile(source file.Resource, destination file.Resource) (file.Resource, Tombstone, error)

DecryptSopsFile takes a file.Resource, reads it into memory, and decrypts it via SOPS.

Parameters:

  • source: file resource identifying the encrypted SOPS file
  • destination: file resource identifying where to write the decrypted content

type Tombstone

type Tombstone struct {
	op.TombstoneBase
	DestinationPath string
}

Tombstone holds encryption-specific compensation state.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL