Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter bridges the generic envelope encryptor to secret-specific semantics.
func NewAdapter ¶
NewAdapter creates a new secret Adapter.
type Decryptor ¶
type Decryptor interface {
Decrypt(ctx context.Context, scope, scopeID string, value EncryptedValue) (string, error)
}
Decryptor decrypts encrypted secrets for a specific scope.
type EncryptedValue ¶
EncryptedValue represents an encrypted secret with its associated key version.
func New ¶
func New(content string, keyVersion int) EncryptedValue
New creates a new EncryptedValue.
func (EncryptedValue) IsEmpty ¶
func (e EncryptedValue) IsEmpty() bool
IsEmpty returns true if the Content is empty.
Click to show internal directories.
Click to hide internal directories.