Documentation ¶
Overview ¶
Package bios facilitiates communication with Intel® AMT devices to get information about the device bios element
Index ¶
Constants ¶
const ( CIMBIOSElement string = "CIM_BIOSElement" ValueNotFound string = "Value not found in map" )
Variables ¶
var SoftwareElementStateToString = map[SoftwareElementState]string{ SoftwareElementStateDeployable: "Deployable", SoftwareElementStateInstallable: "Installable", SoftwareElementStateExecutable: "Executable", SoftwareElementStateRunning: "Running", }
SoftwareElementStateToString is a mapping of the SoftwareElementState value to a string.
Functions ¶
This section is empty.
Types ¶
type BiosElement ¶
type BiosElement struct { XMLName xml.Name `xml:"CIM_BIOSElement"` TargetOperatingSystem TargetOperatingSystem `xml:"TargetOperatingSystem"` // The TargetOperatingSystem property specifies the element's operating system environment. SoftwareElementID string `xml:"SoftwareElementID"` // This is an identifier for the SoftwareElement and is designed to be used in conjunction with other keys to create a unique representation of the element. SoftwareElementState SoftwareElementState `xml:"SoftwareElementState"` // The SoftwareElementState is defined in this model to identify various states of a SoftwareElement's life cycle. Name string `xml:"Name"` // The name used to identify this SoftwareElement. OperationalStatus []OperationalStatus `xml:"OperationalStatus"` // Indicates the current statuses of the element. ElementName string `xml:"ElementName"` // 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. Version string `xml:"Version"` // The version of the BIOS software image. Manufacturer string `xml:"Manufacturer"` // The manufacturer of the BIOS software image. PrimaryBIOS bool `xml:"PrimaryBIOS"` // If true, this is the primary BIOS of the ComputerSystem. ReleaseDate Time `xml:"ReleaseDate"` // Date that this BIOS was released. }
Response Types.
type Body ¶
type Body struct { XMLName xml.Name `xml:"Body"` GetResponse BiosElement EnumerateResponse common.EnumerateResponse PullResponse PullResponse }
Response Types.
type Element ¶
type Element struct {
// contains filtered or unexported fields
}
func NewBIOSElementWithClient ¶
func NewBIOSElementWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Element
NewBIOSElementWithClient instantiates a new Element.
func (Element) Enumerate ¶
Enumerate returns an enumeration context which is used in a subsequent Pull call.
type OperationalStatus ¶
type OperationalStatus int
OperationalStatus indicates 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 (o OperationalStatus) String() string
String returns the string representation of the OperationalStatus value.
type PullResponse ¶
type PullResponse struct { XMLName xml.Name `xml:"PullResponse"` BiosElementItems []BiosElement `xml:"Items>CIM_BIOSElement"` }
Response Types.
type Response ¶
type Response struct { *client.Message XMLName xml.Name `xml:"Envelope"` Header message.Header `xml:"Header"` Body Body `xml:"Body"` }
Response Types.
type SoftwareElementState ¶
type SoftwareElementState int
SoftwareElementState is defined in this model to identify various states of a SoftwareElement's life cycle.
const ( SoftwareElementStateDeployable SoftwareElementState = iota SoftwareElementStateInstallable SoftwareElementStateExecutable SoftwareElementStateRunning )
func (SoftwareElementState) String ¶ added in v2.2.4
func (s SoftwareElementState) String() string
String returns the string representation of the SoftwareElementState value.
type TargetOperatingSystem ¶
type TargetOperatingSystem int
TargetOperatingSystem is the element's operating system environment.
const ( Unknown TargetOperatingSystem = iota Other MACOS ATTUNIX DGUX DECNT Tru64UNIX OpenVMS HPUX AIX MVS OS400 OS2 JavaVM MSDOS WIN3x WIN95 WIN98 WINNT WINCE NCR3000 NetWare OSF DCOS ReliantUNIX SCOUnixWare SCOOpenServer Sequent IRIX Solaris SunOS U6000 ASERIES HPNonStopOS HPNonStopOSS BS2000 LINUX Lynx XENIX VM InteractiveUNIX BSDUNIX FreeBSD NetBSD GNUHurd OS9 MACHKernel Inferno QNX EPOC IxWorks VxWorks MiNT BeOS HPMPE NextStep PalmPilot Rhapsody Windows2000 Dedicated OS390 VSE TPF WindowsMe CalderaOpenUNIX OpenBSD NotApplicable WindowsXP ZOS MicrosoftWindowsServer2003 MicrosoftWindowsServer200364Bit WindowsXP64Bit WindowsXPEmbedded WindowsVista WindowsVista64Bit WindowsEmbeddedForPointOfService MicrosoftWindowsServer2008 MicrosoftWindowsServer200864Bit FreeBSD64Bit RedHatEnterpriseLinux RedHatEnterpriseLinux64Bit Solaris64Bit SUSE SUSE64Bit SLES SLES64Bit NovellOES NovellLinuxDesktop SunJavaDesktopSystem Mandriva Mandriva64Bit TurboLinux TurboLinux64Bit Ubuntu Ubuntu64Bit Debian Debian64Bit Linux24x Linux24x64Bit Linux26x Linux26x64Bit Linux64Bit Other64Bit MicrosoftWindowsServer2008R2 VMwareESXi MicrosoftWindows7 CentOS32bit CentOS64bit OracleEnterpriseLinux32bit OracleEnterpriseLinux64bit EComStation32BitX MicrosoftWindowsServer2011 MicrosoftWindowsServer201164Bit MicrosoftWindowsServer8 )
func (TargetOperatingSystem) String ¶ added in v2.2.4
func (t TargetOperatingSystem) String() string
String returns the string representation of the TargetOperatingSystem value.