package
Version:
v0.47.8
Opens a new window with list of versions in this module.
Published: Oct 24, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package lock provides file-based locking for bosun operations.
WithLock executes a function while holding the lock.
The lock is automatically released when the function returns.
Lock represents a file-based lock.
The Lock struct is safe for concurrent use from multiple goroutines.
New creates a new lock for the given operation in the manifest directory.
Acquire attempts to acquire the lock.
Returns an error if the lock is already held by another process.
This method is safe for concurrent calls.
Release releases the lock.
This method is safe for concurrent calls.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.