Documentation
¶
Overview ¶
Package log provides methods for extracting the log of changes for a snapshot.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogEntry ¶
type LogEntry struct { // Hash is the hash of the file snapshot Hash *snapshot.Hash // File is the file snapshot File *snapshot.File // contains filtered or unexported fields }
func (*LogEntry) NestedContents ¶
func (e *LogEntry) NestedContents(ctx context.Context, s *storage.LocalFiles, includeDirectories bool) ([]string, map[string]*snapshot.Hash, error)
NestedContents returns a map from subpaths of the log entry's file to the corresponding (hashes of the) file snapshots for the nested files.
This is only defined for snapshots of directories, and for all other cases the return value will be nil.
Click to show internal directories.
Click to hide internal directories.