managementpresence

package
v2.1.6 Latest Latest
Warning

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

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

Documentation

Overview

Package managementpresence facilitiates communication with Intel® AMT devices to configure Management Presence Remote Service Access Points (or an MPS) to be accessed by the Intel® AMT subsystem from remote.

Index

Constants

View Source
const (
	AMT_ManagementPresenceRemoteSAP string = "AMT_ManagementPresenceRemoteSAP"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

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

OUTPUTS Response Types

type InfoFormat

type InfoFormat int

An enumerated integer that describes the format and interpretation of the AccessInfo property. 206'Parameterized URL'- a URL containing ${parameterName} strings. Those strings are intended to be replaced in their entirety by the value of the named parameter. The interpretation of such parameters is not defined by this subclass. As an example use: If a parameter named 'CompanyURL' has a value of 'www.DMTF.org' and the value of AccessInfo was 'http:\${CompanyURL}', then the resultant URL is intended to be 'http:\www.dmtf.org'.

The supported values are 3 (IPv4 address), 4 (IPv6 address) ,201 (FQDN).

ValueMap={1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 100, 101, 102, 103, 104, 200, 201, 202, 203, 204, 205, 206, .., 32768..65535}

Values={Other, Host Name, IPv4 Address, IPv6 Address, IPX Address, DECnet Address, SNA Address, Autonomous System Number, MPLS Label, IPv4 Subnet Address, IPv6 Subnet Address, IPv4 Address Range, IPv6 Address Range, Dial String, Ethernet Address, Token Ring Address, ATM Address, Frame Relay Address, URL, FQDN, User FQDN, DER ASN1 DN, DER ASN1 GN, Key ID, Parameterized URL, DMTF Reserved, Vendor Reserved}

const (
	InfoFormatOther                  InfoFormat = 1
	InfoFormatHostName               InfoFormat = 2
	InfoFormatIPv4Address            InfoFormat = 3
	InfoFormatIPv6Address            InfoFormat = 4
	InfoFormatIPXAddress             InfoFormat = 5
	InfoFormatDECnetAddress          InfoFormat = 6
	InfoFormatSNAAddress             InfoFormat = 7
	InfoFormatAutonomousSystemNumber InfoFormat = 8
	InfoFormatMPLSLabel              InfoFormat = 9
	InfoFormatIPv4SubnetAddress      InfoFormat = 10
	InfoFormatIPv6SubnetAddress      InfoFormat = 11
	InfoFormatIPv4AddressRange       InfoFormat = 12
	InfoFormatIPv6AddressRange       InfoFormat = 13
	InfoFormatDialString             InfoFormat = 100
	InfoFormatEthernetAddress        InfoFormat = 101
	InfoFormatTokenRingAddress       InfoFormat = 102
	InfoFormatATMAddress             InfoFormat = 103
	InfoFormatFrameRelayAddress      InfoFormat = 104
	InfoFormatURL                    InfoFormat = 200
	InfoFormatFQDN                   InfoFormat = 201
	InfoFormatUserFQDN               InfoFormat = 202
	InfoFormatDERASN1DN              InfoFormat = 203
	InfoFormatDERASN1GN              InfoFormat = 204
	InfoFormatKeyID                  InfoFormat = 205
	InfoFormatParameterizedURL       InfoFormat = 206
)

type ManagementRemoteResponse

type ManagementRemoteResponse struct {
	XMLName                 xml.Name   `xml:"AMT_ManagementPresenceRemoteSAP"`
	AccessInfo              string     `xml:"AccessInfo,omitempty"`              // Access or addressing information or a combination of this information for a remote connection. This information can be a host name, network address, or similar information.
	CN                      string     `xml:"CN,omitempty"`                      // A common name used when AccessInfo is an IP address.
	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.
	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.
	InfoFormat              InfoFormat `xml:"InfoFormat,omitempty"`              // An enumerated integer that describes the format and interpretation of the AccessInfo property.
	Name                    string     `xml:"Name,omitempty"`                    // The Name property uniquely identifies the ServiceAccessPoint and provides an indication of the functionality that is managed. This functionality is described in more detail in the Description property of the object.
	Port                    int        `xml:"Port,omitempty"`                    // The port to be used to establish a tunnel with the MPS.
	SystemCreationClassName string     `xml:"SystemCreationClassName,omitempty"` // The CreationClassName of the scoping System.
	SystemName              string     `xml:"SystemName,omitempty"`              // The Name of the scoping System.
}

OUTPUTS Response Types

type PullResponse

type PullResponse struct {
	XMLName               xml.Name                   `xml:"PullResponse"`
	ManagementRemoteItems []ManagementRemoteResponse `xml:"Items>AMT_ManagementPresenceRemoteSAP"`
}

OUTPUTS Response Types

type RemoteSAP

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

func NewManagementPresenceRemoteSAPWithClient

func NewManagementPresenceRemoteSAPWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) RemoteSAP

NewManagementPresenceRemoteSAPWithClient instantiates a new RemoteSAP

func (RemoteSAP) Delete

func (remoteSAP RemoteSAP) Delete(handle string) (response Response, err error)

Delete removes a the specified instance

func (RemoteSAP) Enumerate

func (remoteSAP RemoteSAP) Enumerate() (response Response, err error)

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

func (RemoteSAP) Get

func (remoteSAP RemoteSAP) Get() (response Response, err error)

Get retrieves the representation of the instance

func (RemoteSAP) Pull

func (remoteSAP RemoteSAP) 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 Response

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

OUTPUTS 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