Documentation ¶
Index ¶
Constants ¶
View Source
const ( XMLHeader = `<?xml version="1.0" encoding="utf-8"?>` Envelope = `` /* 291-byte string literal not displayed */ EnumerationContext = `AC070000-0000-0000-0000-000000000000` OperationTimeout = `PT60S` Get = "http://schemas.xmlsoap.org/ws/2004/09/transfer/Get" Enumerate = "http://schemas.xmlsoap.org/ws/2004/09/enumeration/Enumerate" Pull = "http://schemas.xmlsoap.org/ws/2004/09/enumeration/Pull" Delete = "http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete" Put = "http://schemas.xmlsoap.org/ws/2004/09/transfer/Put" Create = "http://schemas.xmlsoap.org/ws/2004/09/transfer/Create" EnumerateBody = "<Enumerate xmlns=\"http://schemas.xmlsoap.org/ws/2004/09/enumeration\" />" SetBootConfigRole = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootService/SetBootConfigRole" ServerCertificateIssuer = `serverCertificateIssuer` ClientCertificate = `clientCertificate` DigestRealm = "Digest:Realm" AdminPassEncryptionType = 2 AdminPassword = `bebb3497d69b544c732651365cc3462d` MCNonce = `ZxxE0cFy590zDBIR39q6QU6iuII=` SigningAlgorithm = 2 DigitalSignature = `` /* 344-byte string literal not displayed */ SetCertificates = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_IEEE8021xSettings/SetCertificates" AddNextCertInChain = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HostBasedSetupService/AddNextCertInChain" AdminSetup = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HostBasedSetupService/AdminSetup" UpgradeClientToAdmin = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HostBasedSetupService/UpgradeClientToAdmin" Setup = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HostBasedSetupService/Setup" SendOptInCode = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_OptInService/SendOptInCode" StartOptIn = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_OptInService/StartOptIn" CancelOptIn = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_OptInService/CancelOptIn" TrustedRootCert = "" /* 1452-byte string literal not displayed */ CIMResourceURIBase = "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/" AMTResourceURIBase = "http://intel.com/wbem/wscim/1/amt-schema/1/" IPSResourceURIBase = "http://intel.com/wbem/wscim/1/ips-schema/1/" CurrentMessageEnumerate = "Enumerate" CurrentMessagePull = "Pull" CurrentMessageGet = "Get" CurrentMessagePut = "Put" CurrentMessageDelete = "Delete" CurrentMessageError = "Error" )
Variables ¶
View Source
var ExpectedResponse = func(messageID int, resourceURIBase, method, action, extraHeader, body string) string { return fmt.Sprintf(`%s%s%s</a:Action><a:To>/wsman</a:To><w:ResourceURI>%s%s</w:ResourceURI><a:MessageID>%d</a:MessageID><a:ReplyTo><a:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address></a:ReplyTo><w:OperationTimeout>%s</w:OperationTimeout>%s</Header><Body>%s</Body></Envelope>`, XMLHeader, Envelope, action, resourceURIBase, method, messageID, OperationTimeout, extraHeader, body) }
View Source
var PullBody = fmt.Sprintf(`<Pull xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration"><EnumerationContext>%s</EnumerationContext><MaxElements>999</MaxElements><MaxCharacters>99999</MaxCharacters></Pull>`, EnumerationContext)
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
MockClient is a mock implementation of the wsman.Client interface for testing.
func (*MockClient) CloseConnection ¶ added in v2.4.0
func (c *MockClient) CloseConnection() error
func (*MockClient) Connect ¶ added in v2.4.0
func (c *MockClient) Connect() error
func (*MockClient) Receive ¶ added in v2.4.0
func (c *MockClient) Receive() ([]byte, error)
func (*MockClient) Send ¶ added in v2.4.0
func (c *MockClient) Send(data []byte) error
Click to show internal directories.
Click to hide internal directories.