Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SendCommandTopic represents the topic added in the agent message payload for the document replies // for documents executed with topic aws.ssm.sendCommand SendCommandTopic CommandTopic = "aws.ssm.sendCommand" // CancelCommandTopic represents the topic added in the agent message payload for the document replies // for documents executed with topic aws.ssm.cancelCommand CancelCommandTopic CommandTopic = "aws.ssm.cancelCommand" // SessionCompleteTopic represents session agent complete topic SessionCompleteTopic = CommandTopic(mgsContracts.TaskCompleteMessage) // ControlChannelAgentReplyPayloadSizeLimit represents 120000 bytes is the maximum agent reply payload // in a message that can be sent through control channel. ControlChannelAgentReplyPayloadSizeLimit = 120000 )
Variables ¶
This section is empty.
Functions ¶
func GenerateAgentJobReplyPayload ¶
func GenerateAgentJobReplyPayload(log log.T, agentMessageUUID uuid.UUID, messageID string, replyPayload messageContracts.SendReplyPayload, topic CommandTopic) (*mgsContracts.AgentMessage, error)
GenerateAgentJobReplyPayload generates AgentJobReply agent message
Types ¶
type CommandTopic ¶
type CommandTopic string
func GetTopicFromDocResult ¶
func GetTopicFromDocResult(resultType contracts.ResultType, documentType contracts.DocumentType) CommandTopic
GetTopicFromDocResult returns topic based on doc result
Click to show internal directories.
Click to hide internal directories.