Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintDiff ¶
func PrintDiff(w io.Writer, r *DiffResult, showValues bool)
PrintDiff writes a human-readable diff to the given writer. When showValues is false, changed keys show "(changed)" instead of actual values.
Types ¶
type DiffOptions ¶
DiffOptions holds configuration for the diff command.
type DiffResult ¶
type DiffResult struct {
Added []string // keys in local but not in remote
Removed []string // keys in remote but not in local
Changed map[string][2]string // key → [remote, local]
}
DiffResult represents the result of comparing local and remote secrets.
func ComputeDiff ¶
func ComputeDiff(remote, local map[string]string) *DiffResult
ComputeDiff compares two maps and returns the differences.
func Diff ¶
func Diff(ctx context.Context, client *sm.Client, opts DiffOptions) (*DiffResult, error)
Diff compares a local dotenv file with a remote Secrets Manager secret.
func (DiffResult) HasDiff ¶
func (d DiffResult) HasDiff() bool
HasDiff returns true if there are any differences.
type PullOptions ¶
PullOptions holds configuration for the pull command.
type PushOptions ¶
PushOptions holds configuration for the push command.
Click to show internal directories.
Click to hide internal directories.