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" ENUMERATE_BODY = "<Enumerate xmlns=\"http://schemas.xmlsoap.org/ws/2004/09/enumeration\" />" ServerCertificateIssuer = `serverCertificateIssuer` ClientCertificate = `clientCertificate` DigestRealm = "Digest:Realm" AdminPassEncryptionType = 2 AdminPassword = `bebb3497d69b544c732651365cc3462d` MCNonce = `ZxxE0cFy590zDBIR39q6QU6iuII=` SigningAlgorithm = 2 DigitalSignature = `` /* 344-byte string literal not displayed */ SET_CERTIFICATES = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_IEEE8021xSettings/SetCertificates" ADD_NEXT_CERT_IN_CHAIN = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HostBasedSetupService/AddNextCertInChain" ADMIN_SETUP = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_HostBasedSetupService/AdminSetup" UPGRADE_CLIENT_TO_ADMIN = "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" SEND_OPT_IN_CODE = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_OptInService/SendOptInCode" START_OPT_IN = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_OptInService/StartOptIn" CANCEL_OPT_IN = "http://intel.com/wbem/wscim/1/ips-schema/1/IPS_OptInService/CancelOptIn" TrustedRootCert = "" /* 1452-byte string literal not displayed */ )
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 PULL_BODY = 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.
Click to show internal directories.
Click to hide internal directories.