Documentation
¶
Overview ¶
Package plansnapshot validates caller-owned immutable planning inputs.
Index ¶
Constants ¶
View Source
const MaxBytes = 512 << 10
View Source
const Schema = "corvint-planning-snapshot/0"
Variables ¶
View Source
var ErrInvalid = errors.New("unsupported-planning-snapshot")
Functions ¶
func PathDigest ¶
Types ¶
type Receipt ¶
type Receipt struct {
Schema string `json:"schema"`
Commit string `json:"commitRevision"`
Tree string `json:"treeRevision"`
Base string `json:"baseRevision"`
Paths []string `json:"changedPaths"`
Digest string `json:"changedPathsSha256"`
}
Receipt binds the complete committed diff and all source/configuration bytes. Overlay inputs are deliberately absent: unknown members fail closed.
func (Receipt) Materialize ¶
Materialize copies exact blobs to private scratch; no checkout, filters, archive attributes, live files, symlinks or submodules can change the inputs.
Click to show internal directories.
Click to hide internal directories.