Documentation ¶
Index ¶
Constants ¶
View Source
const LogRotateLockName = "logrotate_run.lock"
LogRotateLockName used to lock processes which can touch /var/log/vic logs to avoid race condition during export and logrotate run.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLock ¶
FileLock is a cross-process lock designed to work over FS that supports locking.
func NewFileLock ¶
NewFileLock returns a new instance of the file based lock. it is a user responsibility to ensure lock name is unique and doesn't collide with any other file names in the TEMP directory.
Click to show internal directories.
Click to hide internal directories.