Documentation
¶
Index ¶
Constants ¶
View Source
const FileLockDir = "/var/lock/vgmanager"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLock ¶
type FileLock struct {
// contains filtered or unexported fields
}
FileLock is a lock file used to ensure that only one instance of the operator is running, For example, when an old instance is still terminating its controllers, the new instance should not start. In this case the old instance will still hold the lock file and the new instance will wait for the lock to be released with WaitForLock.
func NewFileLock ¶
Click to show internal directories.
Click to hide internal directories.