ssm

package
v0.0.0-...-84afe80 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	mock.Mock
}

Mock stands for a mocked SSM service.

func NewMockDefault

func NewMockDefault() *Mock

NewMockDefault returns an instance of Mock with default expectations set.

func (*Mock) CancelCommand

func (m *Mock) CancelCommand(log log.T, commandID string, instanceIDs []string) (response *ssm.CancelCommandOutput, err error)

CancelCommand mocks the CancelCommand function.

func (*Mock) CreateDocument

func (m *Mock) CreateDocument(log log.T, docName string, docContent string) (response *ssm.CreateDocumentOutput, err error)

CreateDocument mocks the CreateDocument function.

func (*Mock) DeleteDocument

func (m *Mock) DeleteDocument(log log.T, instanceID string) (response *ssm.DeleteDocumentOutput, err error)

DeleteDocument mocks the DeleteDocument function.

func (*Mock) DescribeAssociation

func (m *Mock) DescribeAssociation(log log.T, instanceID string, docName string) (response *ssm.DescribeAssociationOutput, err error)

DescribeAssociation mocks the DescribeAssociation function.

func (*Mock) GetDocument

func (m *Mock) GetDocument(log log.T, docName string, docVersion string) (response *ssm.GetDocumentOutput, err error)

GetDocument mocks the GetDocument function.

func (*Mock) GetParameters

func (m *Mock) GetParameters(log log.T, paramNames []string) (response *ssm.GetParametersOutput, err error)

GetParameters mocks the GetParameters function.

func (*Mock) ListAssociations

func (m *Mock) ListAssociations(log log.T, instanceID string) (response *ssm.ListAssociationsOutput, err error)

ListAssociations mocks the ListAssociations function.

func (*Mock) ListCommandInvocations

func (m *Mock) ListCommandInvocations(log log.T, instanceID string, commandID string) (response *ssm.ListCommandInvocationsOutput, err error)

ListCommandInvocations mocks the ListCommandInvocations function.

func (*Mock) ListCommands

func (m *Mock) ListCommands(log log.T, instanceID string) (response *ssm.ListCommandsOutput, err error)

ListCommands mocks the ListCommands function.

func (*Mock) ListInstanceAssociations

func (m *Mock) ListInstanceAssociations(log log.T, instanceID string, nextToken *string) (response *ssm.ListInstanceAssociationsOutput, err error)

ListInstanceAssociations mocks the ListInstanceAssociations function.

func (*Mock) SendCommand

func (m *Mock) SendCommand(log log.T,
	documentName string,
	instanceIDs []string,
	parameters map[string][]*string,
	timeoutSeconds *int64,
	outputS3BucketName *string,
	outputS3KeyPrefix *string) (response *ssm.SendCommandOutput, err error)

SendCommand mocks the SendCommand function.

func (*Mock) UpdateAssociationStatus

func (m *Mock) UpdateAssociationStatus(
	log log.T,
	instanceID string,
	name string,
	associationStatus *ssm.AssociationStatus) (response *ssm.UpdateAssociationStatusOutput, err error)

UpdateAssociationStatus mocks the UpdateAssociationStatus function.

func (*Mock) UpdateInstanceAssociationStatus

func (m *Mock) UpdateInstanceAssociationStatus(
	log log.T,
	associationID string,
	instanceID string,
	executionResult *ssm.InstanceAssociationExecutionResult) (response *ssm.UpdateInstanceAssociationStatusOutput, err error)

UpdateInstanceAssociationStatus mocks the UpdateAssociationStatus function.

func (*Mock) UpdateInstanceInformation

func (m *Mock) UpdateInstanceInformation(log log.T, agentVersion, agentStatus, agentName string) (response *ssm.UpdateInstanceInformationOutput, err error)

UpdateInstanceInformation mocks the UpdateInstanceInformation function.

type Service

type Service interface {
	ListAssociations(log log.T, instanceID string) (response *ssm.ListAssociationsOutput, err error)
	ListInstanceAssociations(log log.T, instanceID string, nextToken *string) (response *ssm.ListInstanceAssociationsOutput, err error)
	UpdateAssociationStatus(
		log log.T,
		instanceID string,
		name string,
		associationStatus *ssm.AssociationStatus) (response *ssm.UpdateAssociationStatusOutput, err error)
	UpdateInstanceAssociationStatus(
		log log.T,
		associationID string,
		instanceID string,
		executionResult *ssm.InstanceAssociationExecutionResult) (response *ssm.UpdateInstanceAssociationStatusOutput, err error)
	SendCommand(log log.T,
		documentName string,
		instanceIDs []string,
		parameters map[string][]*string,
		timeoutSeconds *int64,
		outputS3BucketName *string,
		outputS3KeyPrefix *string) (response *ssm.SendCommandOutput, err error)
	ListCommands(log log.T, instanceID string) (response *ssm.ListCommandsOutput, err error)
	ListCommandInvocations(log log.T, instanceID string, commandID string) (response *ssm.ListCommandInvocationsOutput, err error)
	CancelCommand(log log.T, commandID string, instanceIDs []string) (response *ssm.CancelCommandOutput, err error)
	CreateDocument(log log.T, docName string, docContent string) (response *ssm.CreateDocumentOutput, err error)
	GetDocument(log log.T, docName string, docVersion string) (response *ssm.GetDocumentOutput, err error)
	DeleteDocument(log log.T, instanceID string) (response *ssm.DeleteDocumentOutput, err error)
	DescribeAssociation(log log.T, instanceID string, docName string) (response *ssm.DescribeAssociationOutput, err error)
	UpdateInstanceInformation(log log.T, agentVersion, agentStatus, agentName string) (response *ssm.UpdateInstanceInformationOutput, err error)
	GetParameters(log log.T, paramNames []string) (response *ssm.GetParametersOutput, err error)
}

Service is an interface to the SSM service.

func NewService

func NewService() Service

NewService creates a new SSM service instance.

Directories

Path Synopsis
Package anonauth is an interface to the anonymous methods of the SSM service.
Package anonauth is an interface to the anonymous methods of the SSM service.
Package rsaauth is an interface to the RSA signed methods of the SSM service.
Package rsaauth is an interface to the RSA signed methods of the SSM service.
Package util contains helper function common for ssm service
Package util contains helper function common for ssm service

Jump to

Keyboard shortcuts

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