Documentation
¶
Overview ¶
Package deviceownership prevents multiple bsbctl daemons from writing to the same BUSY Bar application namespace at the same time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrAlreadyOwned = errors.New("device application is already owned")
ErrAlreadyOwned reports that another bsbctl daemon currently owns the device/application pair.
Functions ¶
This section is empty.
Types ¶
type ConflictError ¶
type ConflictError struct {
OwnerPID int
}
ConflictError carries the safe portion of the current owner's identity. Device addresses and credentials never appear in this error.
func (*ConflictError) Error ¶
func (err *ConflictError) Error() string
func (*ConflictError) Unwrap ¶
func (err *ConflictError) Unwrap() error
type Lease ¶
type Lease struct {
// contains filtered or unexported fields
}
Lease holds exclusive ownership until Close or process exit.