MCPcopy
hub / github.com/peak/s5cmd / SyncStrategy

Interface SyncStrategy

command/sync_strategy.go:10–12  ·  view source on GitHub ↗

SyncStrategy is the interface to make decision whether given source object should be synced to destination object

Source from the content-addressed store, hash-verified

8// SyncStrategy is the interface to make decision whether given source object should be synced
9// to destination object
10type SyncStrategy interface {
11 ShouldSync(srcObject, dstObject *storage.Object) error
12}
13
14func NewStrategy(sizeOnly bool) SyncStrategy {
15 if sizeOnly {

Callers 1

planRunMethod · 0.65

Implementers 2

SizeOnlyStrategycommand/sync_strategy.go
SizeAndModificationStrategycommand/sync_strategy.go

Calls

no outgoing calls

Tested by

no test coverage detected