system

package
v0.0.0-...-f6c2e69 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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"`
	UUID         string     `json:"uuid,omitempty"`
	WakeUpType   WakeUpType `json:"wake_up_type,omitempty"`
	SKUNumber    string     `json:"sku_number,omitempty"`
	Family       string     `json:"family,omitempty"`
}

Information 系统信息

func Parse

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

Parse 解析smbios struct数据

func (Information) String

func (s Information) String() string

type WakeUpType

type WakeUpType byte

WakeUpType 唤醒类型

const (
	Reserved WakeUpType = iota
	Other
	Unknown
	APMTimer
	ModemRing
	LANRemote
	PoAerSwitch
	PCIPME
	ACPowerRestored
)

func (WakeUpType) String

func (w WakeUpType) String() string

Jump to

Keyboard shortcuts

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