 Documentation
      ¶
      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.
func (*FileLock) Acquire ¶
Acquire grabs the lock. If lock is already acquired, it will block. User should check for errors if lock is actually acquired, if lock is not acquired it will panic on Release.
       Source Files
      ¶
      Source Files
      ¶
    
- flock.go
- glocks.go
 Click to show internal directories. 
   Click to hide internal directories.