encryption

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptionCollector

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

EncryptionCollector implements prometheus.Collector for encryption metrics.

func NewEncryptionCollector

func NewEncryptionCollector(manager *enc.Manager) *EncryptionCollector

NewEncryptionCollector creates a new EncryptionCollector.

func (*EncryptionCollector) Collect

func (c *EncryptionCollector) Collect(ch chan<- prometheus.Metric)

Collect implements prometheus.Collector.

func (*EncryptionCollector) Describe

func (c *EncryptionCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements prometheus.Collector.

func (*EncryptionCollector) RecordCanaryValidation

func (c *EncryptionCollector) RecordCanaryValidation(strategy, keyID, status string)

RecordCanaryValidation records a canary validation attempt.

func (*EncryptionCollector) RecordError

func (c *EncryptionCollector) RecordError(operation, strategy, keyID, errorType string)

RecordError records an encryption error.

func (*EncryptionCollector) RecordOperation

func (c *EncryptionCollector) RecordOperation(operation, strategy, keyID, status string, duration time.Duration)

RecordOperation records a successful or failed encryption/decryption operation.

Jump to

Keyboard shortcuts

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