rosetta

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 NewIDMapper

func NewIDMapper() *IDMapper

NewIDMapper creates a new IDMapper

func (*IDMapper) AddMapping

func (m *IDMapper) AddMapping(xname, instanceID, nodeID string) error

AddMapping adds a new ID mapping

func (*IDMapper) GetByInstanceID

func (m *IDMapper) GetByInstanceID(instanceID string) (IDMapping, error)

GetByInstanceID retrieves the ID mapping by instanceID

func (*IDMapper) GetByNodeID

func (m *IDMapper) GetByNodeID(nodeID string) (IDMapping, error)

GetByNodeID retrieves the ID mapping by nodeID

func (*IDMapper) GetByXName

func (m *IDMapper) GetByXName(xname string) (IDMapping, error)

GetByXName retrieves the ID mapping by xname

func (*IDMapper) UpdateMapping

func (m *IDMapper) UpdateMapping(xname, instanceID, nodeID string) error

type IDMapping

type IDMapping struct {
	XName      string
	InstanceID string
	NodeID     string
}

IDMapping holds the IDs for a specific entity

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL