Versions in this module Expand all Collapse all v0 v0.4.0 Jan 2, 2022 Changes in this version + const FormatVersion + func Marshal(v interface{}) ([]byte, error) + func Unmarshal(data []byte, v interface{}) error + type CreateOpt func(c *createSnapshotOptions) + func CreateOptCarryOn() CreateOpt + func CreateOptExclude(v []string) CreateOpt + func CreateOptShallow() CreateOpt + type FileInfo struct + Checksum []byte + Gid uint32 + IsDev bool + IsDir bool + IsPipe bool + IsSock bool + LinkTo string + Mode os.FileMode + Mtime time.Time + Path string + Size int64 + Uid uint32 + func (f *FileInfo) String() string + type Metadata struct + Date time.Time + FormatVersion int + FsdiffVersion string + RootDir string + Shallow bool + type Snapshot struct + func Create(outFile, root string, opts ...CreateOpt) (*Snapshot, error) + func Open(path string) (*Snapshot, error) + func (s *Snapshot) Close() error + func (s *Snapshot) FilesByChecksum() ([]*FileInfo, error) + func (s *Snapshot) FilesByPath() ([]*FileInfo, error) + func (s *Snapshot) Metadata() *Metadata + func (s *Snapshot) Read(readFunc func(byPath, byChecksum *bolt.Bucket) error) error + func (s *Snapshot) Write(writeFunc func(byPath, byChecksum *bolt.Bucket) error) error