MCPcopy
hub / github.com/kopia/kopia / Lock

Method Lock

tests/robustness/pathlock/path_lock.go:23–23  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

21// - Allows a Lock call for path /a/x
22type Locker interface {
23 Lock(path string) (Unlocker, error)
24}
25
26// Unlocker unlocks from a previous invocation of Lock().

Callers 15

TestPathLockBasicFunction · 0.95
TestPathLockWithoutBlockFunction · 0.95
TestPathLockRaceFunction · 0.95
SendMethod · 0.65
outputMethod · 0.65
EstimatedDataSizeMethod · 0.65
outputMethod · 0.65
runMethod · 0.65
outputSyncProgressMethod · 0.65
runSyncBlobsMethod · 0.65
registerStorageProviderFunction · 0.65

Implementers 3

NullPathLockertests/tools/fio/fio.go
pathLocktests/robustness/pathlock/path_lock.go
lockStatefs/cachefs/cache_test.go

Calls

no outgoing calls

Tested by 15

TestPathLockBasicFunction · 0.76
TestPathLockWithoutBlockFunction · 0.76
TestPathLockRaceFunction · 0.76
TestMetricsPushFlagsFunction · 0.52
enterMethod · 0.52
exitMethod · 0.52
verifyCacheExpirationFunction · 0.52
runMaintenanceTaskMethod · 0.52
TestServerMaintenanceFunction · 0.52
randLongHexFunction · 0.52
TestThrottlingSemaphoreFunction · 0.52