MCPcopy
hub / github.com/syncthing/syncthing / Versioner

Interface Versioner

lib/versioner/versioner.go:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18)
19
20type Versioner interface {
21 Archive(filePath string) error
22 GetVersions() (map[string][]FileVersion, error)
23 Restore(filePath string, versionTime time.Time) error
24 Clean(context.Context) error
25}
26
27type FileVersion struct {
28 VersionTime time.Time `json:"versionTime"`

Callers 23

TestCreateVersionPathFunction · 0.65
ArchiveMethod · 0.65
TestPathTildesFunction · 0.65
GetFolderVersionsMethod · 0.65
GetVersionsMethod · 0.65
RestoreFolderVersionsMethod · 0.65

Implementers 5

trashcanlib/versioner/trashcan.go
externallib/versioner/external.go
simplelib/versioner/simple.go
versionerWithErrorContextlib/versioner/versioner.go
staggeredlib/versioner/staggered.go

Calls

no outgoing calls

Tested by

no test coverage detected