Documentation
¶
Overview ¶
Package checksum defines shadow-fidelity contracts enforcing CO-1, CO-2, and CO-3.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanWatermark ¶
type CleanWatermark struct {
// contains filtered or unexported fields
}
CleanWatermark proves every chunk through its watermark was clean on a fresh read and that the pass repaired nothing. Its zero value is forgeable; consumers must reject it when Watermark().Valid() is false.
func (CleanWatermark) Watermark ¶
func (w CleanWatermark) Watermark() copier.Watermark
Watermark returns the clean copied-through watermark.
type VerifiedShadow ¶
type VerifiedShadow struct {
// contains filtered or unexported fields
}
VerifiedShadow proves a full checksum pass found source and shadow equal. Its zero value is forgeable; consumers must reject a proof whose Table is empty.
func (VerifiedShadow) Schema ¶
func (v VerifiedShadow) Schema() string
Schema returns the verified source schema.
func (VerifiedShadow) Shadow ¶
func (v VerifiedShadow) Shadow() string
Shadow returns the verified shadow table.
func (VerifiedShadow) Table ¶
func (v VerifiedShadow) Table() string
Table returns the verified source table.
func (VerifiedShadow) VerifiedAt ¶
func (v VerifiedShadow) VerifiedAt() time.Time
VerifiedAt returns the verification time.
func (VerifiedShadow) Watermark ¶
func (v VerifiedShadow) Watermark() copier.Watermark
Watermark returns the copied-through watermark at verification.