Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnlockFunc ¶
type UnlockFunc func()
UnlockFunc unlocks the lock.
func Lock ¶
func Lock(lockName string) UnlockFunc
Lock creates a lock for a specific storage volume to allow activities that require exclusive access to occur. Will block until the lock is established. On success, it returns an unlock function which needs to be called to unlock the lock.
Click to show internal directories.
Click to hide internal directories.