package
2.27.7
Repository: https://github.com/cs3org/reva.git
Documentation: pkg.go.dev

# Functions

AcquireReadLock tries to acquire a shared lock to read from the file and returns a lock object or an error accordingly.
AcquireWriteLock tries to acquire a shared lock to write from the file and returns a lock object or an error accordingly.
FlockFile returns the flock filename for a given file name it returns an empty string if the input is empty.
ReleaseLock releases a lock from a file that was previously created by AcquireReadLock or AcquireWriteLock.
SetLockCycleDurationFactor configures the factor applied to the timeout allowed during a lock cycle.
SetMaxLockCycles configures the maximum amount of lock cycles.

# Constants

LockFileSuffix to use for lock files.

# Variables

ErrAcquireLockFailed indicates that it was not possible to lock the resource.
ErrPathEmpty indicates that no path was specified.