service

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package service facilitates communication with Intel® AMT devices to convey the semantics of a Service that is available for the use of a ManagedElement.

An example of an available Service is that a Processor and an enclosure (a PhysicalElement) can use AlertOnLAN Services to signal an incomplete or erroneous boot.

In reality, AlertOnLAN is simply a HostedService on a computer system that is generally available for use and is not a dependency of the processor or enclosure.

To describe that the use of this service might be restricted or have limited availability or applicability, the CIM_ServiceAvailableToElement association would be instantiated between the Service and specific CIM_Processors and CIM_Chassis.

Index

Constants

View Source
const CIM_ServiceAvailableToElement string = "CIM_ServiceAvailableToElement"

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailableToElement

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

func NewServiceAvailableToElementWithClient

func NewServiceAvailableToElementWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) AvailableToElement

NewServiceAvailableToElement returns a new instance of the ServiceAvailableToElement struct.

func (AvailableToElement) Enumerate

func (availableToElement AvailableToElement) Enumerate() (response Response, err error)

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

func (AvailableToElement) Pull

func (availableToElement AvailableToElement) 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 Body

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

Response Types

type CIM_AssociatedPowerManagementService

type CIM_AssociatedPowerManagementService struct {
	AvailableRequestedPowerStates int             `xml:"AvailableRequestedPowerStates,omitempty"` // AvailableRequestedPowerStates indicates the possible values for the PowerState parameter of the method RequestPowerStateChange, used to initiate a power state change.The values listed shall be a subset of the values contained in the RequestedPowerStatesSupported property of the CIM_PowerManagementCapabilities where the values selected are a function of the current power state of the system. This property shall be non-null if an implementation supports the advertisement of the set of possible values as a function of the current state. This property shall be null if an implementation does not support the advertisement of the set of possible values as a function of the current state.
	PowerState                    int             `xml:"PowerState,omitempty"`                    // The current power state of the associated Managed System Element.
	ServiceProvided               ServiceProvided // The Service that is available.
	UserOfService                 UserOfService   // The ManagedElement that can use the Service.
}

Response Types

type PullResponse

type PullResponse struct {
	XMLName                          xml.Name                               `xml:"PullResponse"`
	AssociatedPowerManagementService []CIM_AssociatedPowerManagementService `xml:"Items>CIM_AssociatedPowerManagementService"`
}

Response Types

type ReferenceParameters

type ReferenceParameters struct {
	XMLName      xml.Name `xml:"ReferenceParameters,omitempty"`
	ResourceURI  string   `xml:"ResourceURI,omitempty"`
	SelelctorSet message.SelectorSet
}

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

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 ServiceProvided

type ServiceProvided struct {
	XMLName             xml.Name `xml:"ServiceProvided,omitempty"`
	Address             string   `xml:"Address"`
	ReferenceParameters ReferenceParameters
}

Response Types

type UserOfService

type UserOfService struct {
	XMLName             xml.Name `xml:"UserOfService,omitempty"`
	Address             string   `xml:"Address"`
	ReferenceParameters ReferenceParameters
}

Response Types

Jump to

Keyboard shortcuts

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