Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaxIndex is the maximum index usable for Name / returned by ParseName. MaxIndex = numLetters*numLetters + numLetters - 1 // IronCorePrefix is the device prefix used by ironcore devices. IronCorePrefix = "od" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Namer ¶
type Namer struct {
// contains filtered or unexported fields
}
Namer allows managing multiple device names. It remembers reserved ones and allows claiming / releasing new ones.
func NewNamer ¶
func NewNamer() *Namer
NewNamer creates a new Namer that allows managing multiple device names.
func (*Namer) Free ¶
Free releases the given name. If it has not been claimed before, an error is returned.
Click to show internal directories.
Click to hide internal directories.