Versions in this module Expand all Collapse all v0 v0.2.0 Mar 9, 2025 v0.1.0 Mar 5, 2025 Changes in this version + var ErrInvalidSnapshot = errors.New("invalid snapshot file") + var ErrOperationCanceled = errors.New("operation canceled") + var ErrSnapshotNotFound = errors.New("snapshot file not found") + func CompareSnapshots(oldFile, newFile string) ([]string, error) + func CompareSnapshotsWithContext(ctx context.Context, oldFile, newFile string) ([]string, error) + type BloomFilter struct + func (bf *BloomFilter) Add(data []byte) + func (bf *BloomFilter) Contains(data []byte) bool + type DiffEntry struct + HashDiff bool + NewModTime int64 + NewPermissions uint32 + NewSize int64 + OldModTime int64 + OldPermissions uint32 + OldSize int64 + Path string + Type string + func CompareSnapshotsDetailed(ctx context.Context, oldFile, newFile string) ([]DiffEntry, error) + func CompareSnapshotsDetailedWithOptions(ctx context.Context, oldFile, newFile string, options DiffOptions) ([]DiffEntry, error) + func (d DiffEntry) DetailedString() string + func (d DiffEntry) String() string + type DiffOptions struct + PathPrefix string + UseBloomFilter bool + UseHashDiff bool + Workers int + func DefaultDiffOptions() DiffOptions