Documentation
¶
Index ¶
Constants ¶
View Source
const ( MountNamespaceFD = "mnt" MaximumMessageSize = 255 SuccessResponse = "NSFileLock LOCKED" )
Variables ¶
View Source
var (
DefaultTimeout = 15 * time.Second
)
Functions ¶
This section is empty.
Types ¶
type NSFileLock ¶
type NSFileLock struct {
Namespace string
FilePath string
Timeout time.Duration
// contains filtered or unexported fields
}
func NewLock ¶
func NewLock(ns string, filepath string) *NSFileLock
func NewLockWithTimeout ¶
func NewLockWithTimeout(ns string, filepath string, timeout time.Duration) *NSFileLock
func (*NSFileLock) Lock ¶
func (l *NSFileLock) Lock() error
func (*NSFileLock) Unlock ¶
func (l *NSFileLock) Unlock()
Click to show internal directories.
Click to hide internal directories.