chassis

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OUT_OF_SPEC = "<OUT OF SPEC>"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainedElementType

type ContainedElementType byte

type ContainedElements

type ContainedElements struct {
	Type    ContainedElementType
	Minimum byte
	Maximum byte
}

type Height

type Height byte

Height 高度

func (Height) String

func (s Height) String() string

type Information

type Information struct {
	smbios.Header
	Manufacturer                 string            `json:"manufacturer,omitempty"`
	Type                         Type              `json:"type,omitempty"`
	Lock                         Lock              `json:"lock,omitempty"`
	Version                      string            `json:"version,omitempty"`
	AssetTag                     string            `json:"asset_tag,omitempty"`
	SerialNumber                 string            `json:"serial_number,omitempty"`
	BootUpState                  State             `json:"boot_up_state,omitempty"`
	PowerSupplyState             State             `json:"power_supply_state,omitempty"`
	ThermalState                 State             `json:"thermal_state,omitempty"`
	SecurityStatus               SecurityStatus    `json:"security_status,omitempty"`
	OEMdefined                   uint16            `json:"oe_mdefined,omitempty"`
	Height                       Height            `json:"height,omitempty"`
	NumberOfPowerCords           byte              `json:"number_of_power_cords,omitempty"`
	ContainedElementCount        byte              `json:"contained_element_count,omitempty"`
	ContainedElementRecordLength byte              `json:"contained_element_record_length,omitempty"`
	ContainedElements            ContainedElements `json:"contained_elements,omitempty"`
	SKUNumber                    string            `json:"sku_number,omitempty"`
}

Information 底座信息

func Parse

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

Parse 解析底座信息

func (Information) String

func (c Information) String() string

type Lock

type Lock byte

Lock todo

func (Lock) String

func (c Lock) String() string

type SecurityStatus

type SecurityStatus byte
const (
	ChassisSecurityStatusOther SecurityStatus = 1 + iota
	ChassisSecurityStatusUnknown
	ChassisSecurityStatusNone
	ChassisSecurityStatusExternalInterfaceLockedOut
	ChassisSecurityStatusExternalInterfaceEnabled
)

func (SecurityStatus) String

func (s SecurityStatus) String() string

type State

type State byte

State todo

const (
	StateOther State = 1 + iota
	StateUnknown
	StateSafe
	StateWarning
	StateCritical
	StateNonRecoverable
)

func (State) String

func (c State) String() string

type Type

type Type byte

Type Chssis 类型

const (
	Other Type = 1 + iota
	Unknown
	Desktop
	LowProfileDesktop
	PizzaBox
	MiniTower
	Tower
	Portable
	Laptop
	Notebook
	HandHeld
	DockingStation
	AllinOne
	SubNotebook
	SpaceSaving
	LunchBox
	MainServerChassis
	ExpansionChassis
	SubChassis
	BusExpansionChassis
	PeripheralChassis
	RAIDChassis
	RackMountChassis
	SealedcasePC
	MultiSystem
	CompactPCI
	AdvancedTCA
	Blade
	BladeEnclosure
)

func (Type) String

func (c Type) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL