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