Documentation ¶
Overview ¶
Package mps facilitiates communication with Intel® AMT devices to configure the username and password used to access an MPS.
Index ¶
- Constants
- type Body
- type MPSUsernamePasswordRequest
- type MPSUsernamePasswordResponse
- type PullResponse
- type Response
- type UsernamePassword
- func (usernamePassword UsernamePassword) Enumerate() (response Response, err error)
- func (usernamePassword UsernamePassword) Get() (response Response, err error)
- func (usernamePassword UsernamePassword) Pull(enumerationContext string) (response Response, err error)
- func (usernamePassword UsernamePassword) Put(mpsUsernamePassword MPSUsernamePasswordRequest) (response Response, err error)
Constants ¶
View Source
const (
AMTMPSUsernamePassword string = "AMT_MPSUsernamePassword"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body struct { XMLName xml.Name `xml:"Body"` GetResponse MPSUsernamePasswordResponse EnumerateResponse common.EnumerateResponse PullResponse PullResponse }
OUTPUTS Response Types.
type MPSUsernamePasswordRequest ¶
type MPSUsernamePasswordRequest struct { XMLName xml.Name `xml:"h:AMT_MPSUsernamePassword"` H string `xml:"xmlns:h,attr"` InstanceID string `xml:"h:InstanceID,omitempty"` // Within the scope of the instantiating Namespace, InstanceID opaquely and uniquely identifies an instance of this class. In order to ensure uniqueness within the NameSpace, the value of InstanceID SHOULD be constructed using the following 'preferred' algorithm: <OrgID>:<LocalID> Where <OrgID> and <LocalID> are separated by a colon ':', and where <OrgID> MUST include a copyrighted, trademarked or otherwise unique name that is owned by the business entity creating/defining the InstanceID, or is a registered ID that is assigned to the business entity by a recognized global authority. (This is similar to the <Schema Name>_<Class Name> structure of Schema class names.) In addition, to ensure uniqueness, <OrgID> MUST NOT contain a colon (':'). When using this algorithm, the first colon to appear in InstanceID MUST appear between <OrgID> and <LocalID>. <LocalID> is chosen by the organizational entity and SHOULD not be re-used to identify different underlying (real-world) elements. If the above 'preferred' algorithm is not used, the defining entity MUST assure that the resultant InstanceID is not re-used across any InstanceIDs produced by this or other providers for this instance's NameSpace. For DMTF defined instances, the 'preferred' algorithm MUST be used with the <OrgID> set to 'CIM'. RemoteID string `xml:"RemoteID,omitempty"` // RemoteID string `xml:"h:RemoteID,omitempty"` // RemoteID is the name by which the principal is known at the remote secret key authentication service. Secret string `xml:"h:Secret,omitempty"` // The secret known by the principal. This property is write-only. Algorithm string `xml:"h:Algorithm,omitempty"` // No AMT SDK Documentation Protocol string `xml:"h:Protocol,omitempty"` // No AMT SDK Documentation }
INPUTS Request Types.
type MPSUsernamePasswordResponse ¶
type MPSUsernamePasswordResponse struct { XMLName xml.Name `xml:"AMT_MPSUsernamePassword"` InstanceID string `xml:"InstanceID,omitempty"` // Within the scope of the instantiating Namespace, InstanceID opaquely and uniquely identifies an instance of this class. In order to ensure uniqueness within the NameSpace, the value of InstanceID SHOULD be constructed using the following 'preferred' algorithm: <OrgID>:<LocalID> Where <OrgID> and <LocalID> are separated by a colon ':', and where <OrgID> MUST include a copyrighted, trademarked or otherwise unique name that is owned by the business entity creating/defining the InstanceID, or is a registered ID that is assigned to the business entity by a recognized global authority. (This is similar to the <Schema Name>_<Class Name> structure of Schema class names.) In addition, to ensure uniqueness, <OrgID> MUST NOT contain a colon (':'). When using this algorithm, the first colon to appear in InstanceID MUST appear between <OrgID> and <LocalID>. <LocalID> is chosen by the organizational entity and SHOULD not be re-used to identify different underlying (real-world) elements. If the above 'preferred' algorithm is not used, the defining entity MUST assure that the resultant InstanceID is not re-used across any InstanceIDs produced by this or other providers for this instance's NameSpace. For DMTF defined instances, the 'preferred' algorithm MUST be used with the <OrgID> set to 'CIM'. RemoteID string `xml:"RemoteID,omitempty"` // RemoteID string `xml:"RemoteID,omitempty"` // RemoteID is the name by which the principal is known at the remote secret key authentication service. Secret string `xml:"Secret,omitempty"` // The secret known by the principal. This property is write-only. Algorithm string `xml:"Algorithm,omitempty"` // No AMT SDK Documentation Protocol string `xml:"Protocol,omitempty"` // No AMT SDK Documentation }
OUTPUTS Response Types.
type PullResponse ¶
type PullResponse struct { XMLName xml.Name `xml:"PullResponse"` MPSUsernamePasswordItems []MPSUsernamePasswordResponse `xml:"Items>AMT_MPSUsernamePassword"` }
OUTPUTS Response Types.
type Response ¶
type Response struct { *client.Message XMLName xml.Name `xml:"Envelope"` Header message.Header `xml:"Header"` Body Body `xml:"Body"` }
OUTPUTS Response Types.
type UsernamePassword ¶
type UsernamePassword struct {
// contains filtered or unexported fields
}
func NewMPSUsernamePasswordWithClient ¶
func NewMPSUsernamePasswordWithClient(wsmanMessageCreator *message.WSManMessageCreator, client client.WSMan) UsernamePassword
NewMPSUsernamePasswordWithClient instantiates a new UsernamePassword.
func (UsernamePassword) Enumerate ¶
func (usernamePassword UsernamePassword) Enumerate() (response Response, err error)
Enumerate returns an enumeration context which is used in a subsequent Pull call.
func (UsernamePassword) Get ¶
func (usernamePassword UsernamePassword) Get() (response Response, err error)
Get retrieves the representation of the instance.
func (UsernamePassword) Pull ¶
func (usernamePassword UsernamePassword) 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.
func (UsernamePassword) Put ¶
func (usernamePassword UsernamePassword) Put(mpsUsernamePassword MPSUsernamePasswordRequest) (response Response, err error)
Put will change properties of the selected instance.
Click to show internal directories.
Click to hide internal directories.