Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Component ¶
type Component struct {
Uid uuid.UUID `json:"uid" db:"uid"`
Id string `json:"xname" db:"xname"`
Type string `json:"type" db:"type"`
State string `json:"state,omitempty" db:"state"`
Flag string `json:"flag,omitempty" db:"flag"`
Enabled bool `json:"enabled,omitempty" db:"enabled"`
SwStatus string `json:"sw_status,omitempty" db:"sw_status"`
Role string `json:"role,omitempty" db:"role"`
SubRole string `json:"sub_role,omitempty" db:"subrole"`
NID uint `json:"nid,omitempty" db:"nid"`
Subtype string `json:"sub_type,omitempty" db:"subtype"`
NetType string `json:"net_type,omitempty" db:"net_type"`
Arch string `json:"arch,omitempty" db:"arch"`
Class string `json:"class,omitempty" db:"class"`
ReservationDisabled bool `json:"reservation_disabled,omitempty" db:"reservation_disabled"`
Locked bool `json:"locked,omitempty" db:"locked"`
}
Component is the base type for all hardware. It represents nodes, BMCs, Switches, etc... and can be extended to represnt other items as well. The UID field is a UUID that is generated by the system. The ID field is more commonly referred to as the Xname which uniquely identifies components and describes their location in the system. The official xname decoder ring is at https://cray-hpe.github.io/docs-csm/en-14/operations/component_names_xnames/
Click to show internal directories.
Click to hide internal directories.