Documentation ¶
Overview ¶
Package card facilitates communication with Intel® AMT devices to represent a type of physical container that can be plugged into another Card or HostingBoard, or is itself a HostingBoard/Motherboard in a Chassis
The CIM_Card class includes any package capable of carrying signals and providing a mounting point for PhysicalComponents, such as Chips, or other PhysicalPackages, such as other Cards.
Index ¶
Constants ¶
const ( CIMCard string = "CIM_Card" 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 }
Response Types.
type OperationalStatus ¶
type OperationalStatus int
OperationalStatus is the current statuses of the element.
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 NewCardWithClient ¶
func NewCardWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Package
NewCard returns a new instance of the Card struct.
func (Package) Enumerate ¶
Enumerate returns an enumeration context which is used in a subsequent Pull call.
type PackageResponse ¶
type PackageResponse struct { XMLName xml.Name `xml:"CIM_Card"` CanBeFRUed bool `xml:"CanBeFRUed"` // Boolean that indicates whether this PhysicalElement can be FRUed (TRUE) or not (FALSE). CreationClassName string `xml:"CreationClassName"` // CreationClassName indicates the name of the class or the subclass used in the creation of an instance. ElementName string `xml:"ElementName"` Manufacturer string `xml:"Manufacturer"` // The name of the organization responsible for producing the PhysicalElement. Model string `xml:"Model"` // The name by which the PhysicalElement is generally known. OperationalStatus []OperationalStatus `xml:"OperationalStatus"` // Indicates the current statuses of the element PackageType PackageType `xml:"PackageType"` // Enumeration defining the type of the PhysicalPackage. Note that this enumeration expands on the list in the Entity MIB (the attribute, entPhysicalClass). The numeric values are consistent with CIM's enum numbering guidelines, but are slightly different than the MIB's values. SerialNumber string `xml:"SerialNumber"` // A manufacturer-allocated number used to identify the Physical Element. Tag string `xml:"Tag"` // An arbitrary string that uniquely identifies the Physical Element and serves as the key of the Element. Version string `xml:"Version"` // A string that indicates the version of the PhysicalElement. }
Response Types.
type PackageType ¶
type PackageType int
PackageType is the type of the PhysicalPackage.
const ( PackageTypeUnknown PackageType = iota PackageTypeOther PackageTypeRack PackageTypeChassisFrame PackageTypeCrossConnectBackplane PackageTypeContainerFrameSlot PackageTypePowerSupply PackageTypeFan PackageTypeSensor PackageTypeModuleCard PackageTypePortConnector PackageTypeBattery PackageTypeProcessor PackageTypeMemory PackageTypePowerSourceGenerator PackageTypeStorageMediaPackage PackageTypeBlade PackageTypeBladeExpansion )
func (PackageType) String ¶ added in v2.2.4
func (e PackageType) String() string
String returns a human-readable string representation of the PackageType enumeration.
type PullResponse ¶
type PullResponse struct { XMLName xml.Name `xml:"PullResponse"` CardItems []PackageResponse `xml:"Items>CIM_Card"` }
Response Types.