concrete

package
v2.17.0 Latest Latest
Warning

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

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

Documentation

Overview

Package concrete facilitates communication with Intel® AMT devices and is a generic association used to establish dependency relationships between ManagedElements.

It is defined as a concrete subclass of the abstract CIM_Dependency class, to be used in place of many specific subclasses of Dependency that add no semantics, that is subclasses that do not clarify the type of dependency, update cardinalities, or add or remove qualifiers. Note that when you define additional semantics for Dependency, this class must not be subclassed. Specific semantics continue to be defined as subclasses of the abstract CIM_Dependency. ConcreteDependency is limited in its use as a concrete form of a general dependency.

It was deemed more prudent to create this concrete subclass than to change Dependency from an abstract to a concrete class. Dependency already had multiple abstract subclasses in the CIM Schema, and wider industry usage and impact could not be anticipated.

Index

Constants

View Source
const CIMConcreteDependency string = "CIM_ConcreteDependency"

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
}

Response Types.

type ConcreteDependency

type ConcreteDependency struct {
	Antecedent models.AssociationReference `xml:"Antecedent"` // Antecedent represents the independent object in this association.
	Dependent  models.AssociationReference `xml:"Dependent"`  // Dependent represents the object that is dependent on the Antecedent.
}

Response Types.

type Dependency

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

func NewDependencyWithClient

func NewDependencyWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Dependency

NewDependency returns a new instance of the NewDependency struct. should be NewDependency() because concrete is scoped already as package name.

func (Dependency) Enumerate

func (dependency Dependency) Enumerate() (response Response, err error)

Enumerate the instances of this class.

func (Dependency) Pull

func (dependency Dependency) Pull(enumerationContext string) (response Response, err error)

Pull instances of this class, following an Enumerate operation.

type PullResponse

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

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.

Jump to

Keyboard shortcuts

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