encryption

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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