inventory

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package inventory persists commissioning observations and operator-approved device baselines keyed by bus endpoint and stable ISO Device NAME.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	bus.DeviceInfo
	FirstSeen time.Time `json:"first_seen"`
	Expected  bool      `json:"expected"`
	Label     string    `json:"label,omitempty"`
	Status    string    `json:"status"`
	Changed   bool      `json:"changed"`
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func New

func New(st *store.Store) *Registry

func (*Registry) CommitBaseline

func (r *Registry) CommitBaseline(ctx context.Context) error

func (*Registry) Observe

func (r *Registry) Observe(ctx context.Context, devices []bus.DeviceInfo) error

func (*Registry) Records

func (r *Registry) Records() []Record

func (*Registry) Refresh

func (r *Registry) Refresh(ctx context.Context) error

func (*Registry) SetLabel

func (r *Registry) SetLabel(ctx context.Context, endpoint string, name uint64, label string) error

Jump to

Keyboard shortcuts

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