baseboard

package
Version: v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 2 Imported by: 0

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 Parse

func Parse(s *smbios.Structure) (*Information, error)

Parse 解析

func (Information) String

func (b Information) String() string

type Type

type Type byte

Type 主板类型

const (
	Unknown Type = 1 + iota
	Other
	ServerBlade
	ConnectivitySwitch
	ManagementModule
	ProcessorModule
	IOModule
	MemModule
	DaughterBoard
	Motherboard
	ProcessorMemmoryModule
	ProcessorIOModule
	InterconnectBoard
)

func (Type) String

func (b Type) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL