Documentation
¶
Overview ¶
Package snapshot creates sanitized runtime snapshots for inspection and diff.
Index ¶
Constants ¶
View Source
const SchemaVersion = 1
SchemaVersion is the snapshot document schema.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffEntry ¶
type DiffEntry struct {
Path string `json:"path"`
From any `json:"from,omitempty"`
To any `json:"to,omitempty"`
Op string `json:"op"` // add|remove|change
}
DiffEntry describes one changed path.
type Snapshot ¶
type Snapshot struct {
SchemaVersion int `json:"schema_version"`
CreatedAt time.Time `json:"created_at"`
Service string `json:"service,omitempty"`
InstanceID string `json:"instance_id,omitempty"`
ContentHash string `json:"content_hash"`
Data map[string]any `json:"data"`
Labels map[string]string `json:"labels,omitempty"`
}
Snapshot is a sanitized, hashable runtime view with no secrets.
Click to show internal directories.
Click to hide internal directories.