Documentation ¶
Index ¶
- Variables
- func DMITypeToString(t DMIType) string
- type BlockDevice
- type BridgeAddHost
- type BridgeCreateArguments
- type BridgeDeleteArguments
- type BridgeNetwork
- type BridgeNetworkMode
- type DMI
- type DMISection
- type DMIType
- type DiskFreeBlock
- type DiskInfoResult
- type LogLevel
- type NetworkDnsMasqSettings
- type NetworkStaticSettings
- type Pair
- type Port
- type PropertyData
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HandlerP = regexp.MustCompile(`handle (\d+)$`)
)
Functions ¶
func DMITypeToString ¶ added in v1.2.2
DMITypeToString returns string representation of DMIType t
Types ¶
type BlockDevice ¶ added in v1.2.2
type BridgeAddHost ¶
type BridgeCreateArguments ¶
type BridgeCreateArguments struct { Name string `json:"name"` HwAddress string `json:"hwaddr"` Network BridgeNetwork `json:"network"` }
func (*BridgeCreateArguments) Validate ¶
func (br *BridgeCreateArguments) Validate() error
type BridgeDeleteArguments ¶
type BridgeDeleteArguments struct {
Name string `json:"name"`
}
type BridgeNetwork ¶
type BridgeNetwork struct { Mode BridgeNetworkMode `json:"mode"` Nat bool `json:"nat"` Settings json.RawMessage `json:"settings"` }
type BridgeNetworkMode ¶
type BridgeNetworkMode string
const ( NoneBridgeNetworkMode BridgeNetworkMode = "" DnsMasqBridgeNetworkMode BridgeNetworkMode = "dnsmasq" StaticBridgeNetworkMode BridgeNetworkMode = "static" )
type DMI ¶ added in v1.2.2
type DMI map[string]DMISection
Property in section is in the form of key value pairs where values are optional and may include a list of items as well. k: [v]
[ item1 item2 ... ]
type DMISection ¶ added in v1.2.2
type DMISection struct { HandleLine string `json:"handleline"` Title string `json:"title"` TypeStr string `json:"typestr,omitempty"` Type DMIType `json:"typenum"` Properties map[string]PropertyData `json:"properties,omitempty"` }
DMISection represents a complete section like BIOS or Baseboard
type DMIType ¶ added in v1.2.2
type DMIType int
DMIType (allowed types 0 -> 42)
const ( DMITypeBIOS DMIType = iota DMITypeSystem DMITypeBaseboard DMITypeChassis DMITypeProcessor DMITypeMemoryController DMITypeMemoryModule DMITypeCache DMITypePortConnector DMITypeSystemSlots DMITypeOnBoardDevices DMITypeOEMSettings DMITypeSystemConfigurationOptions DMITypeBIOSLanguage DMITypeGroupAssociations DMITypeSystemEventLog DMITypePhysicalMemoryArray DMITypeMemoryDevice DMIType32BitMemoryError DMITypeMemoryArrayMappedAddress DMITypeMemoryDeviceMappedAddress DMITypeBuiltinPointingDevice DMITypePortableBattery DMITypeSystemReset DMITypeHardwareSecurity DMITypeSystemPowerControls DMITypeVoltageProbe DMITypeCoolingDevice DMITypeTemperatureProbe DMITypeElectricalCurrentProbe DMITypeOutOfBandRemoteAccess DMITypeBootIntegrityServices DMITypeSystemBoot DMIType64BitMemoryError DMITypeManagementDevice DMITypeManagementDeviceComponent DMITypeManagementDeviceThresholdData DMITypeMemoryChannel DMITypeIPMIDevice DMITypePowerSupply DMITypeAdditionalInformation DMITypeOnboardDevicesExtendedInformation DMITypeManagementControllerHostInterface )
type DiskFreeBlock ¶
type DiskInfoResult ¶
type NetworkDnsMasqSettings ¶
type NetworkDnsMasqSettings struct { NetworkStaticSettings Start net.IP `json:"start"` End net.IP `json:"end"` }
func (*NetworkDnsMasqSettings) Validate ¶
func (n *NetworkDnsMasqSettings) Validate() error
type NetworkStaticSettings ¶
type NetworkStaticSettings struct {
CIDR string `json:"cidr"`
}
func (*NetworkStaticSettings) Validate ¶
func (n *NetworkStaticSettings) Validate() error
type PropertyData ¶ added in v1.2.2
PropertyData represents a key value pair with optional list of items
Source Files ¶
Click to show internal directories.
Click to hide internal directories.