Documentation
¶
Overview ¶
Package differ compares two secret sets and reports drift without ever exposing secret values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderJSON ¶
RenderJSON produces the machine-readable diff. Never includes secret values.
func RenderTable ¶
RenderTable produces the human-readable diff. Never includes secret values.
Types ¶
type Opts ¶
type Opts struct {
Hashes bool // compute sha256[:8] per side for changed/unknown keys
}
Opts controls diff computation.
type Result ¶
type Result struct {
A, B string
OnlyA []string
OnlyB []string
Changed []string
Unknown []string // value comparison impossible (a side is write-only)
SameCount int
Hashes map[string][2]string // key -> {hashA, hashB}; "?" when a side is unreadable
}
Result holds the comparison outcome. It never stores plaintext values.
type Source ¶
Source yields a point-in-time snapshot of one secret set.
func NewDotenvSource ¶
NewDotenvSource builds a Source backed by a dotenv file.
func NewEnvSource ¶
func NewEnvSource(label string, p provider.SecretProvider, pathPrefix string) Source
NewEnvSource builds a Source backed by a secret provider and path prefix.
func NewGitHubSource ¶
NewGitHubSource builds a presence-only Source over GitHub Actions repo secrets. baseURL defaults to https://api.github.com when empty.