runcommand

package
v0.0.0-...-a9ed6da Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 29 Imported by: 0

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

build 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
}

Processor is an object that can process MDS messages.

func NewMDSService

func NewMDSService(context context.T) *RunCommandService

NewMdsProcessor initializes a new mds processor with the given parameters.

func NewOfflineService

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

NewOfflineProcessor initialize a new offline command document processor

func NewService

func NewService(ctx context.T, serviceName string, service mdsService.Service, commandWorkerLimit int, cancelWorkerLimit int, pollAssoc bool, supportedDocs []contracts.DocumentType) *RunCommandService

NewProcessor performs common initialization for Mds and Offline processors

func (*RunCommandService) ModuleExecute

func (s *RunCommandService) ModuleExecute(context context.T) (err error)

Execute starts the scheduling of the message processor plugin

func (*RunCommandService) ModuleName

func (s *RunCommandService) ModuleName() string

Name returns the module name

func (*RunCommandService) ModuleRequestStop

func (s *RunCommandService) ModuleRequestStop(stopType contracts.StopType) (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."

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

	CancelWorkersLimit = 3
)

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