Versions in this module Expand all Collapse all v0 v0.1.9 Oct 10, 2026 v0.1.8 Oct 9, 2026 Changes in this version + const SchemaVersion + var ErrBundle = errors.New("content bundle invalid or unsupported reference") + var ErrInvalid = errors.New("content snapshot invalid") + var ErrMapping = errors.New("content mapping invalid or ambiguous") + func VerifyBundle(root string, manifest BundleManifest, pages []store.PageContent) error + type BundleFile struct + Path string + SHA256 string + Size int64 + type BundleManifest struct + Digest string + Files []BundleFile + func InventoryBundle(root string) (BundleManifest, error) + func (m BundleManifest) Validate() error + type DeleteSelection struct + Key string + TargetID int64 + type Diff struct + Action string + AfterDigest string + BeforeDigest string + Key string + NewPath string + OldPath string + TargetID int64 + type Mapping struct + AllowMove bool + Key string + TargetID int64 + func SuggestedMapping(s Snapshot, current store.PageSet) ([]Mapping, error) + type Plan struct + Batch store.PageBatch + BundleBaselineDigest string + BundleDigest string + Diffs []Diff + Digest string + SnapshotDigest string + func DryRun(s Snapshot, current store.PageSet, mappings []Mapping, ...) (Plan, error) + func (p Plan) ContentDigest() string + type Snapshot struct + Bundle BundleManifest + CreatedAt time.Time + Digest string + Pages []SnapshotPage + Schema int + SourceSite string + func Decode(r io.Reader) (Snapshot, error) + func Export(ctx context.Context, pages store.PageStore, sourceTenantID int64, ...) (Snapshot, error) + func (s Snapshot) ContentDigest() string + func (s Snapshot) Validate() error + type SnapshotPage struct + Content store.PageContent + Key string + SourceID int64 + SourceVersion int