Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
Lock represents a file lock.
func (*Lock) ExclusiveLock ¶
ExclusiveLock acquires the file lock for exclusive use. If blocking is disabled and an incompatible lock is held by another process, the returned error will indicate EWOULDBLOCK.
func (*Lock) SetBlocking ¶
SetBlocking sets whether or not to wait when an incompatible lock is held by another process. Defaults to false.
func (*Lock) SharedLock ¶
SharedLock acquires the file lock for shared use. If blocking is disabled and an incompatible lock is held by another process, the returned error will indicate EWOULDBLOCK.
type Xattrs ¶
type Xattrs []Xattr
Xattrs is a list of extended attributes. Implements sort.Interface.
func UnmarshalXattrs ¶
UnmarshalXattrs unmarshals the binary encoding (little-endian) of a list of extended attributes from the given reader.