runcommand

package
v0.0.0-...-0117b6e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 29 Imported by: 2

Documentation

Overview

Package runcommand implements runcommand core processing module

Package runcommand implements runcommand core processing module

Package runcommand implements runcommand core processing module

Package runcommand implements runcommand core processing module

Package runcommand implements runcommand core processing module

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatPayload

func FormatPayload(log log.T, pluginID string, agentInfo contracts.AgentInfo, outputs map[string]*contracts.PluginResult) messageContracts.SendReplyPayload

FormatPayload builds SendReply Payload from the internal plugins map

Types

type ExecuterCreator

type ExecuterCreator func(ctx context.T) executer.Executer

type RunCommandService

type RunCommandService struct {
	// contains filtered or unexported fields
}

RunCommandService is an object that can process MDS messages.

func NewOfflineService

func NewOfflineService(context context.T) (*RunCommandService, error)

NewOfflineService initialize a new offline command document processor

func NewService

func NewService(ctx context.T,
	serviceName string,
	service mdsService.Service,
	processor *processor.EngineProcessor) *RunCommandService

NewService performs common initialization for Mds and Offline processors

func (*RunCommandService) ModuleExecute

func (s *RunCommandService) ModuleExecute() (err error)

ModuleExecute starts the scheduling of the message processor plugin

func (*RunCommandService) ModuleName

func (s *RunCommandService) ModuleName() string

ModuleName returns the module name

func (*RunCommandService) ModuleStop

func (s *RunCommandService) ModuleStop() (err error)

type SendDocumentLevelResponse

type SendDocumentLevelResponse func(messageID string, resultStatus contracts.ResultStatus, documentTraceOutput string)

SendDocumentLevelResponse is used to send status response before plugin begins

type SendResponse

type SendResponse func(messageID string, res contracts.DocumentResult)

type TopicPrefix

type TopicPrefix string

TopicPrefix is the prefix of the Topic field in an MDS message.

const (
	// SendCommandTopicPrefix is the topic prefix for a send command MDS message.
	SendCommandTopicPrefix TopicPrefix = "aws.ssm.sendCommand."

	// CancelCommandTopicPrefix is the topic prefix for a cancel command MDS message.
	CancelCommandTopicPrefix TopicPrefix = "aws.ssm.cancelCommand."

	// SendCommandTopicPrefixOffline is the topic prefix for a send command MDS message received from the offline service.
	SendCommandTopicPrefixOffline TopicPrefix = "aws.ssm.sendCommand.offline."

	// CancelCommandTopicPrefixOffline is the topic prefix for a cancel command MDS message received from the offline service.
	CancelCommandTopicPrefixOffline TopicPrefix = "aws.ssm.cancelCommand.offline."

	// CloudWatchLogGroupNamePrefix CloudWatch output's log group name prefix
	CloudWatchLogGroupNamePrefix = "/aws/ssm/"
)

Directories

Path Synopsis
Package model contains message struct for MDS/SSM messages.
Package model contains message struct for MDS/SSM messages.
Package service is a wrapper for the SSM Message Delivery Service and Offline Command Service
Package service is a wrapper for the SSM Message Delivery Service and Offline Command Service

Jump to

Keyboard shortcuts

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