Skip to content

Commit

Permalink
model: rename Device struct to Asset
Browse files Browse the repository at this point in the history
Asset makes more sense here since this object is retrieved from the inventory.
  • Loading branch information
joelrebel committed May 4, 2023
1 parent 196e213 commit c4acaf7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ func StoreKinds() []StoreKind {
return []StoreKind{InventoryStoreYAML, InventoryStoreServerservice}
}

type Device struct {
// Asset holds attributes of a server retrieved from the inventory store.
//
// nolint:govet // fieldalignment struct is easier to read in the current format
type Asset struct {
ID uuid.UUID

// Device BMC attributes
Expand All @@ -54,6 +57,9 @@ type Device struct {
Model string
Serial string

// Facility this Asset is hosted in.
FacilityCode string

// Device components
Components Components
}
Expand Down

0 comments on commit c4acaf7

Please sign in to comment.