rosetta

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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