manager

package
v0.0.0-...-e3efe30 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpEncrypt = "encrypt"
	OpDecrypt = "decrypt"
)

Variables

This section is empty.

Functions

func ProvideEncryptionManager

func ProvideEncryptionManager(
	tracer trace.Tracer,
	store contracts.DataKeyStorage,
	usageStats usagestats.Service,
	enc cipher.Cipher,
	providerConfig encryption.ProviderConfig,
) (contracts.EncryptionManager, error)

ProvideEncryptionManager returns an EncryptionManager that uses the OSS KMS providers, along with any additional third-party (e.g. Enterprise) KMS providers

Types

type EncryptionManager

type EncryptionManager struct {
	// contains filtered or unexported fields
}

func (*EncryptionManager) Decrypt

func (s *EncryptionManager) Decrypt(ctx context.Context, namespace string, payload []byte) ([]byte, error)

func (*EncryptionManager) Encrypt

func (s *EncryptionManager) Encrypt(ctx context.Context, namespace string, payload []byte) ([]byte, error)

func (*EncryptionManager) GetDecryptedValue

func (s *EncryptionManager) GetDecryptedValue(ctx context.Context, namespace string, sjd map[string][]byte, key, fallback string) string

func (*EncryptionManager) GetProviders

func (s *EncryptionManager) GetProviders() encryption.ProviderConfig

Jump to

Keyboard shortcuts

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