inventory

package
v1.19.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoInventory = errors.New("no inventory stored")
)

Functions

func ServerSanityCheck

func ServerSanityCheck(srv *rivets.Server) error

ServerSanityCheck handles verifying that all the details in the incoming data structure have been set so we maintain database invariants.

Types

type DeviceView

type DeviceView struct {
	Inv      *rivets.Server
	Inband   bool // the method of inventory collection
	DeviceID uuid.UUID
}

DeviceView encapsulates everything we need to get and set inventory data for servers A reminder for maintenance: this type needs to be able to contain all the relevant fields from Component-Inventory or Alloy.

func (*DeviceView) FromDatastore

func (dv *DeviceView) FromDatastore(ctx context.Context, exec boil.ContextExecutor) error

func (*DeviceView) UpsertInventory

func (dv *DeviceView) UpsertInventory(ctx context.Context, exec boil.ContextExecutor) error

Jump to

Keyboard shortcuts

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