credential

package
v2.16.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package credential facilitates communication with Intel® AMT devices in order to define a context (e.g., a System or Service) of a Credential.

One example is a shared secret/ password which is defined within the context of an application (or Service).

Generally, there is one scoping element for a Credential, however the multiplicities of the association allow a Credential to be scoped by more than one element.

If this association is not instantiated for a Credential, that Credential is assumed to be scoped to the Namespace.

This association may also be used to indicate that a Credential is valid in some other environment.

For instance associating the Credential to a RemoteServiceAccessPoint would indicate that the Credential is used to access the remote service.

Index

Constants

View Source
const CIMCredentialContext string = "CIM_CredentialContext"

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 Context

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

func NewContextWithClient

func NewContextWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) Context

NewContext returns a new instance of the NewContext struct.

func (Context) Enumerate

func (context Context) Enumerate() (response Response, err error)

Enumerate the instances of this class.

func (Context) Pull

func (context Context) Pull(enumerationContext string) (response Response, err error)

Pull instances of this class, following an Enumerate operation.

type CredentialContext

type CredentialContext struct {
	ElementInContext        models.AssociationReference `xml:"ElementInContext"`        // A Credential whose context is defined.
	ElementProvidingContext models.AssociationReference `xml:"ElementProvidingContext"` // The ManagedElement that provides context or scope for the Credential.
}

Response Types.

type Items added in v2.5.3

type Items struct {
	CredentialContext      []CredentialContext `xml:"CIM_CredentialContext"`
	CredentialContextTLS   []CredentialContext `xml:"AMT_TLSCredentialContext"`
	CredentialContext8021x []CredentialContext `xml:"IPS_8021xCredentialContext"`
}

Response Types.

type PullResponse

type PullResponse struct {
	XMLName       xml.Name `xml:"PullResponse"`
	Items         Items    `xml:"Items"`
	EndOfSequence xml.Name `xml:"EndOfSequence"`
}

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