Documentation ¶
Overview ¶
Package parser contains utilities for parsing and encoding MDS/SSM messages.
Index ¶
- func ParseMessageWithParams(log log.T, payload string) (parsedMessage messageContracts.SendCommandPayload, err error)
- func PrepareReplyPayloadToUpdateDocumentStatus(agentInfo contracts.AgentInfo, documentStatus contracts.ResultStatus, ...) (payload messageContracts.SendReplyPayload)
- func ReplacePluginParameters(payload *messageContracts.SendCommandPayload, params map[string]interface{}, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseMessageWithParams ¶
func ParseMessageWithParams(log log.T, payload string) (parsedMessage messageContracts.SendCommandPayload, err error)
ParseMessageWithParams parses an MDS message and replaces the parameters where needed.
func PrepareReplyPayloadToUpdateDocumentStatus ¶
func PrepareReplyPayloadToUpdateDocumentStatus(agentInfo contracts.AgentInfo, documentStatus contracts.ResultStatus, documentTraceOutput string) (payload messageContracts.SendReplyPayload)
PrepareReplyPayloadToUpdateDocumentStatus creates the payload object for SendReply based on document status change.
func ReplacePluginParameters ¶
func ReplacePluginParameters( payload *messageContracts.SendCommandPayload, params map[string]interface{}, logger log.T) error
ReplacePluginParameters replaces parameters with their values, within the plugin Properties.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.