Documentation
¶
Overview ¶
Package bootstrapmanifest derives embedded generation identity from canonical catalog bytes without rewriting unchanged generations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct {
Changed bool `json:"changed"`
PreviousGenerationID string `json:"previous_generation_id,omitempty"`
GenerationID string `json:"generation_id"`
GeneratedAt time.Time `json:"generated_at"`
PayloadChecksum string `json:"payload_checksum"`
SemanticChecksum string `json:"semantic_checksum"`
PayloadSizeBytes int64 `json:"payload_size_bytes"`
}
Report describes whether canonical catalog bytes require a new embedded generation.
func Derive ¶
func Derive(reader catalogs.Reader, current *catalogs.BootstrapManifest, generatedAt time.Time) (catalogs.BootstrapManifest, Report, error)
Derive compares canonical reader bytes with the current manifest. Unchanged input returns the exact current identity; changed input gets a new logical ID.
func DeriveCommitted ¶ added in v0.2.0
func DeriveCommitted( reader catalogs.Reader, generation catalogstore.Generation, current *catalogs.BootstrapManifest, ) (catalogs.BootstrapManifest, Report, error)
DeriveCommitted binds changed embedded bytes to the identity of the exact durable generation that produced them. It never reconstructs source observations; release staging reads the same generation from its store.
Click to show internal directories.
Click to hide internal directories.