Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeatureFlags ¶
type FeatureFlags byte
FeatureFlags 主板功能标签
const ( HostingBoard FeatureFlags = 1 << iota AtLeastOneDaughter Removable Repleaceable HotSwappable )
Baseboard feature flags
func (FeatureFlags) String ¶
func (f FeatureFlags) String() string
type Information ¶
type Information struct {
smbios.Header
Manufacturer string `json:"manufacturer,omitempty"`
ProductName string `json:"product_name,omitempty"`
Version string `json:"version,omitempty"`
SerialNumber string `json:"serial_number,omitempty"`
AssetTag string `json:"asset_tag,omitempty"`
FeatureFlags FeatureFlags `json:"feature_flags,omitempty"`
LocationInChassis string `json:"location_in_chassis,omitempty"`
ChassisHandle uint16 `json:"chassis_handle,omitempty"`
BoardType Type `json:"board_type,omitempty"`
NumberOfContainedObjectHandles byte `json:"number_of_contained_object_handles,omitempty"`
ContainedObjectHandles []byte `json:"contained_object_handles,omitempty"`
}
Information 主板信息
func (Information) String ¶
func (b Information) String() string
Click to show internal directories.
Click to hide internal directories.