Documentation
¶
Index ¶
- type IDMapper
- func (m *IDMapper) AddMapping(xname, instanceID, nodeID string) error
- func (m *IDMapper) GetByInstanceID(instanceID string) (IDMapping, error)
- func (m *IDMapper) GetByNodeID(nodeID string) (IDMapping, error)
- func (m *IDMapper) GetByXName(xname string) (IDMapping, error)
- func (m *IDMapper) UpdateMapping(xname, instanceID, nodeID string) error
- type IDMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDMapper ¶
type IDMapper struct {
// contains filtered or unexported fields
}
IDMapper provides lookup maps for IDs
func (*IDMapper) AddMapping ¶
AddMapping adds a new ID mapping
func (*IDMapper) GetByInstanceID ¶
GetByInstanceID retrieves the ID mapping by instanceID
func (*IDMapper) GetByNodeID ¶
GetByNodeID retrieves the ID mapping by nodeID
func (*IDMapper) GetByXName ¶
GetByXName retrieves the ID mapping by xname
func (*IDMapper) UpdateMapping ¶
Click to show internal directories.
Click to hide internal directories.