devicealias

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a, b *Record) bool

Equal reports whether two Records contain the same alias metadata (order-insensitive).

func FormatMap

func FormatMap(values map[string]string) string

FormatMap renders a deterministic string representation of a map for logging or metadata.

Types

type Record

type Record struct {
	LastSeenAt       string
	CollectorIP      string
	CurrentServiceID string
	CurrentIP        string
	Services         map[string]string
	IPs              map[string]string
}

Record captures alias metadata derived from device updates or unified device rows.

func FromMetadata

func FromMetadata(metadata map[string]string) *Record

FromMetadata constructs a Record from the provided metadata map. Returns nil when no alias fields exist.

func (*Record) Clone

func (r *Record) Clone() *Record

Clone creates a defensive copy of the Record.

Jump to

Keyboard shortcuts

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