domain

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package domain defines core domain models and errors for secrets.

Package domain defines the core domain models and types for secret management. Secrets use an immutable versioning system with envelope encryption where each update creates a new database row with an incremented version number.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrSecretNotFound indicates the secret was not found at the specified path.
	ErrSecretNotFound = errors.Wrap(errors.ErrNotFound, "secret not found")
)

Secret-specific error definitions.

Functions

This section is empty.

Types

type Secret

type Secret struct {
	ID         uuid.UUID
	Path       string
	Version    uint
	DekID      uuid.UUID
	Ciphertext []byte
	Plaintext  []byte `json:"-"` // In memory only
	Nonce      []byte
	CreatedAt  time.Time
	DeletedAt  *time.Time
}

Jump to

Keyboard shortcuts

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