processor

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package processor facilitates communication with Intel® AMT devices capabilities and management of the Processor LogicalDevice

Index

Constants

View Source
const (
	CIMProcessor  string = "CIM_Processor"
	ValueNotFound string = "Value not found in map"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	XMLName           xml.Name `xml:"Body"`
	PullResponse      PullResponse
	EnumerateResponse common.EnumerateResponse
	PackageResponse   PackageResponse
}

type CPUStatus

type CPUStatus int

CPUStatus is an enumeration of the possible values for the CPUStatus property.

const (
	CPUStatusUnknown CPUStatus = iota
	CPUStatusCPUEnabled
	CPUStatusCPUDisabledByUser
	CPUStatusCPUDisabledByBIOS
	CPUStatusCPUIsIdle
	CPUStatusOther
)

func (CPUStatus) String added in v2.2.4

func (e CPUStatus) String() string

String returns a human-readable string representation of the CPUStatus enumeration.

type EnabledState

type EnabledState int

EnabledState is an enumeration of the possible values for the EnabledState property.

const (
	EnabledStateUnknown EnabledState = iota
	EnabledStateOther
	EnabledStateEnabled
	EnabledStateDisabled
	EnabledStateShuttingDown
	EnabledStateNotApplicable
	EnabledStateEnabledButOffline
	EnabledStateInTest
	EnabledStateDeferred
	EnabledStateQuiesce
	EnabledStateStarting
)

func (EnabledState) String added in v2.2.4

func (e EnabledState) String() string

String returns a human-readable string representation of the EnabledState enumeration.

type HealthState

type HealthState int

HealthState is an enumeration of the possible values for the HealthState property.

const (
	HealthStateUnknown             HealthState = 0
	HealthStateOK                  HealthState = 5
	HealthStateDegradedWarning     HealthState = 10
	HealthStateMinorFailure        HealthState = 15
	HealthStateMajorFailure        HealthState = 20
	HealthStateCriticalFailure     HealthState = 25
	HealthStateNonRecoverableError HealthState = 30
)

func (HealthState) String added in v2.2.4

func (e HealthState) String() string

String returns a human-readable string representation of the HealthState enumeration.

type OperationalStatus

type OperationalStatus int

OperationalStatus is an enumeration of the possible values for the OperationalStatus property.

const (
	OperationalStatusUnknown OperationalStatus = iota
	OperationalStatusOther
	OperationalStatusOK
	OperationalStatusDegraded
	OperationalStatusStressed
	OperationalStatusPredictiveFailure
	OperationalStatusError
	OperationalStatusNonRecoverableError
	OperationalStatusStarting
	OperationalStatusStopping
	OperationalStatusStopped
	OperationalStatusInService
	OperationalStatusNoContact
	OperationalStatusLostCommunication
	OperationalStatusAborted
	OperationalStatusDormant
	OperationalStatusSupportingEntityInError
	OperationalStatusCompleted
	OperationalStatusPowerMode
	OperationalStatusRelocating
)

func (OperationalStatus) String added in v2.2.4

func (e OperationalStatus) String() string

String returns a human-readable string representation of the OperationalStatus enumeration.

type Package

type Package struct {
	// contains filtered or unexported fields
}

func NewProcessorWithClient

func NewProcessorWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Package

NewProcessor returns a new instance of the Processor struct.

func (Package) Enumerate

func (processor Package) Enumerate() (response Response, err error)

Enumerate returns an enumeration context which is used in a subsequent Pull call.

func (Package) Get

func (processor Package) Get() (response Response, err error)

Get retrieves the representation of the instance.

func (Package) Pull

func (processor Package) Pull(enumerationContext string) (response Response, err error)

Pull returns the instances of this class. An enumeration context provided by the Enumerate call is used as input.

type PackageResponse

type PackageResponse struct {
	XMLName                 xml.Name            `xml:"CIM_Processor"`
	DeviceID                string              `xml:"DeviceID,omitempty"`                // An address or other identifying information to uniquely name the LogicalDevice.
	CreationClassName       string              `xml:"CreationClassName,omitempty"`       // CreationClassName indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified.
	SystemName              string              `xml:"SystemName,omitempty"`              // The scoping System's Name.
	SystemCreationClassName string              `xml:"SystemCreationClassName,omitempty"` // The scoping System's CreationClassName.
	ElementName             string              `xml:"ElementName,omitempty"`             // A user-friendly name for the object. This property allows each instance to define a user-friendly name in addition to its key properties, identity data, and description information. Note that the Name property of ManagedSystemElement is also defined as a user-friendly name. But, it is often subclassed to be a Key. It is not reasonable that the same property can convey both identity and a user-friendly name, without inconsistencies. Where Name exists and is not a Key (such as for instances of LogicalDevice), the same information can be present in both the Name and ElementName properties. Note that if there is an associated instance of CIM_EnabledLogicalElementCapabilities, restrictions on this properties may exist as defined in ElementNameMask and MaxElementNameLen properties defined in that class.
	OperationalStatus       []OperationalStatus `xml:"OperationalStatus,omitempty"`       // Indicates the current statuses of the element.
	HealthState             HealthState         `xml:"HealthState,omitempty"`             // Indicates the current health of the element.
	EnabledState            EnabledState        `xml:"EnabledState,omitempty"`            // EnabledState is an integer enumeration that indicates the enabled and disabled states of an element.
	RequestedState          RequestedState      `xml:"RequestedState,omitempty"`          // RequestedState is an integer enumeration that indicates the last requested or desired state for the element, irrespective of the mechanism through which it was requested.
	Role                    string              `xml:"Role,omitempty"`                    // A free-form string that describes the role of the Processor, for example, "Central Processor" or "Math Processor".
	Family                  int                 `xml:"Family,omitempty"`                  // The Processor family type. For example, values include "Pentium(R) processor with MMX(TM) technology" (value=14) and "68040" (value=96).
	OtherFamilyDescription  string              `xml:"OtherFamilyDescription,omitempty"`  // A string that describes the Processor Family type. It is used when the Family property is set to 1 ("Other"). This string should be set to NULL when the Family property is any value other than 1.
	UpgradeMethod           UpgradeMethod       `xml:"UpgradeMethod,omitempty"`           // CPU socket information that includes data on how this Processor can be upgraded (if upgrades are supported). This property is an integer enumeration.
	MaxClockSpeed           int                 `xml:"MaxClockSpeed,omitempty"`           // The maximum speed (in MHz) of this Processor.
	CurrentClockSpeed       int                 `xml:"CurrentClockSpeed,omitempty"`       // The current speed (in MHz) of this Processor.
	Stepping                string              `xml:"Stepping,omitempty"`                // Stepping is a free-form string that indicates the revision level of the Processor within the Processor.Family.
	CPUStatus               CPUStatus           `xml:"CPUStatus,omitempty"`               // The CPUStatus property that indicates the current status of the Processor.
	ExternalBusClockSpeed   int                 `xml:"ExternalBusClockSpeed,omitempty"`   // The speed (in MHz) of the external bus interface (also known as the front side bus).
}

type PullResponse

type PullResponse struct {
	XMLName      xml.Name          `xml:"PullResponse"`
	PackageItems []PackageResponse `xml:"Items>CIM_Processor"`
}

type RequestedState

type RequestedState int

RequestedState is an enumeration of the possible values for the RequestedState property.

const (
	RequestedStateUnknown RequestedState = iota
	RequestedStateEnabled
	RequestedStateDisabled
	RequestedStateShutDown
	RequestedStateNoChange
	RequestedStateOffline
	RequestedStateTest
	RequestedStateDeferred
	RequestedStateQuiesce
	RequestedStateReboot
	RequestedStateReset
	RequestedStateNotApplicable
)

func (RequestedState) String added in v2.2.4

func (e RequestedState) String() string

String returns a human-readable string representation of the RequestedState enumeration.

type Response

type Response struct {
	*client.Message
	XMLName xml.Name       `xml:"Envelope"`
	Header  message.Header `xml:"Header"`
	Body    Body           `xml:"Body"`
}

func (*Response) JSON

func (r *Response) JSON() string

JSON marshals the type into JSON format.

func (*Response) YAML

func (r *Response) YAML() string

YAML marshals the type into YAML format.

type UpgradeMethod

type UpgradeMethod int

UpgradeMethod is an enumeration of the possible values for the UpgradeMethod property.

const (
	UpgradeMethodOther UpgradeMethod = iota
	UpgradeMethodUnknown
	UpgradeMethodDaughterBoard
	UpgradeMethodZIFSocket
	UpgradeMethodReplacementPiggyBack
	UpgradeMethodNone
	UpgradeMethodLIFSocket
	UpgradeMethodSlot1
	UpgradeMethodSlot2
	UpgradeMethod370PinSocket
	UpgradeMethodSlotA
	UpgradeMethodSlotM
	UpgradeMethodSocket423
	UpgradeMethodSocketASocket462
	UpgradeMethodSocket478
	UpgradeMethodSocket754
	UpgradeMethodSocket940
	UpgradeMethodSocket939
	UpgradeMethodSocketmPGA604
	UpgradeMethodSocketLGA771
	UpgradeMethodSocketLGA775
	UpgradeMethodSocketS1
	UpgradeMethodSocketAM2
	UpgradeMethodSocketF1207
	UpgradeMethodSocketLGA1366
	UpgradeMethodSocketG34
	UpgradeMethodSocketAM3
	UpgradeMethodSocketC32
	UpgradeMethodSocketLGA1156
	UpgradeMethodSocketLGA1567
	UpgradeMethodSocketPGA988A
	UpgradeMethodSocketBGA1288
	UpgradeMethodrPGA988B
	UpgradeMethodBGA1023
	UpgradeMethodBGA1224
	UpgradeMethodLGA1155
	UpgradeMethodLGA1356
	UpgradeMethodLGA2011
	UpgradeMethodSocketFS1
	UpgradeMethodSocketFS2
	UpgradeMethodSocketFM1
	UpgradeMethodSocketFM2
	UpgradeMethodSocketLGA20113
	UpgradeMethodSocketLGA13563
	UpgradeMethodSocketLGA1150
	UpgradeMethodSocketBGA1168
	UpgradeMethodSocketBGA1234
	UpgradeMethodSocketBGA1364
	UpgradeMethodSocketAM4
	UpgradeMethodSocketLGA1151
	UpgradeMethodSocketBGA1356
	UpgradeMethodSocketBGA1440
	UpgradeMethodSocketBGA1515
	UpgradeMethodSocketLGA36471
	UpgradeMethodSocketSP3
	UpgradeMethodSocketSP3r2
	UpgradeMethodSocketLGA2066
	UpgradeMethodSocketBGA1392
	UpgradeMethodSocketBGA1510
	UpgradeMethodSocketBGA1528
	UpgradeMethodSocketLGA4189
	UpgradeMethodSocketLGA1200
	UpgradeMethodSocketLGA4677
	UpgradeMethodSocketLGA1700
	UpgradeMethodSocketBGA1744
	UpgradeMethodSocketBGA1781
	UpgradeMethodSocketBGA1211
	UpgradeMethodSocketBGA2422
	UpgradeMethodSocketLGA5773
	UpgradeMethodSocketBGA5773
	UpgradeMethodSocketAM5
	UpgradeMethodSocketSP5
	UpgradeMethodSocketSP6
	UpgradeMethodSocketBGA883
	UpgradeMethodSocketBGA1190
	UpgradeMethodSocketBGA4129
	UpgradeMethodSocketLGA4710
	UpgradeMethodSocketLGA7529
	UpgradeMethodSocketBGA1964
	UpgradeMethodSocketBGA1792
	UpgradeMethodSocketBGA2049
	UpgradeMethodSocketBGA2551
	UpgradeMethodSocketLGA1851
	UpgradeMethodSocketBGA2114
	UpgradeMethodSocketBGA2833
)

func (UpgradeMethod) String added in v2.2.4

func (e UpgradeMethod) String() string

String returns a human-readable string representation of the UpgradeMethod enumeration.

Jump to

Keyboard shortcuts

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