utils

package
v0.0.0-...-194cf1f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL