port

package
v0.1.5-0...-5d44f57 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 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 ConnectorType

type ConnectorType byte
const (
	ConnectorTypeNone ConnectorType = iota
	ConnectorTypeCentronics
	ConnectorTypeMiniCentronics
	ConnectorTypeProprietary
	ConnectorTypeDB_25pinmale
	ConnectorTypeDB_25pinfemale
	ConnectorTypeDB_15pinmale
	ConnectorTypeDB_15pinfemale
	ConnectorTypeDB_9pinmale
	ConnectorTypeDB_9pinfemale
	ConnectorTypeRJ_11
	ConnectorTypeRJ_45
	ConnectorType50_pinMiniSCSI
	ConnectorTypeMini_DIN
	ConnectorTypeMicro_DIN
	ConnectorTypePS2
	ConnectorTypeInfrared
	ConnectorTypeHP_HIL
	ConnectorTypeAccessBusUSB
	ConnectorTypeSSASCSI
	ConnectorTypeCircularDIN_8male
	ConnectorTypeCircularDIN_8female
	ConnectorTypeOnBoardIDE
	ConnectorTypeOnBoardFloppy
	ConnectorType9_pinDualInlinepin10cut
	ConnectorType25_pinDualInlinepin26cut
	ConnectorType50_pinDualInline
	ConnectorType68_pinDualInline
	ConnectorTypeOnBoardSoundInputfromCD_ROM
	ConnectorTypeMini_CentronicsType_14
	ConnectorTypeMini_CentronicsType_26
	ConnectorTypeMini_jackheadphones
	ConnectorTypeBNC
	ConnectorType1394
	ConnectorTypeSASSATAPlugReceptacle
	ConnectorTypePC_98
	ConnectorTypePC_98Hireso
	ConnectorTypePC_H98
	ConnectorTypePC_98Note
	ConnectorTypePC_98Full
	ConnectorTypeOther
)

func (ConnectorType) String

func (p ConnectorType) String() string

type Information

type Information struct {
	smbios.Header
	InternalReferenceDesignator string        `json:"internal_reference_designator,omitempty"`
	InternalConnectorType       ConnectorType `json:"internal_connector_type,omitempty"`
	ExternalReferenceDesignator string        `json:"external_reference_designator,omitempty"`
	ExternalConnectorType       ConnectorType `json:"external_connector_type,omitempty"`
	Type                        PortType      `json:"type,omitempty"`
}

Information port信息

func Parse

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

Parse 解析port信息

func (Information) String

func (p Information) String() string

type PortType

type PortType byte
const (
	PortTypeNone PortType = iota
	PortTypeParallelPortXTATCompatible
	PortTypeParallelPortPS2
	PortTypeParallelPortECP
	PortTypeParallelPortEPP
	PortTypeParallelPortECPEPP
	PortTypeSerialPortXTATCompatible
	PortTypeSerialPort16450Compatible
	PortTypeSerialPort16550Compatible
	PortTypeSerialPort16550ACompatible
	PortTypeSCSIPort
	PortTypeMIDIPort
	PortTypeJoyStickPort
	PortTypeKeyboardPort
	PortTypeMousePort
	PortTypeSSASCSI
	PortTypeUSB
	PortTypeFireWireIEEEP1394
	PortTypePCMCIATypeI2
	PortTypePCMCIATypeII
	PortTypePCMCIATypeIII
	PortTypeCardbus
	PortTypeAccessBusPort
	PortTypeSCSIII
	PortTypeSCSIWide
	PortTypePC_98
	PortTypePC_98_Hireso
	PortTypePC_H98
	PortTypeVideoPort
	PortTypeAudioPort
	PortTypeModemPort
	PortTypeNetworkPort
	PortTypeSATA
	PortTypeSAS
	PortType8251Compatible
	PortType8251FIFOCompatible
	PortTypeOther
)

func (PortType) String

func (p PortType) String() string

Jump to

Keyboard shortcuts

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