Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoInventory = errors.New("no inventory stored")
)
Functions ¶
func ServerSanityCheck ¶
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
Click to show internal directories.
Click to hide internal directories.