ssm

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: 13 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) GetDecryptedParameters

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

GetDecryptedParameters mocks the GetDecryptedParameters 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) PutComplianceItems

func (m *Mock) PutComplianceItems(
	log log.T,
	executionTime *time.Time,
	executionType string,
	executionId string,
	instanceId string,
	complianceType string,
	itemContentHash string,
	items []*ssm.ComplianceItemEntry) (response *ssm.PutComplianceItemsOutput, err error)

PutComplianceItem mocks the PutComplianceItem 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) UpdateEmptyInstanceInformation

func (m *Mock) UpdateEmptyInstanceInformation(agentName string) (response *ssm.UpdateInstanceInformationOutput, err error)

UpdateEmptyInstanceInformation mocks the UpdateEmptyInstanceInformation 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)
	PutComplianceItems(
		log log.T,
		executionTime *time.Time,
		executionType string,
		executionId string,
		instanceId string,
		complianceType string,
		itemContentHash string,
		items []*ssm.ComplianceItemEntry) (response *ssm.PutComplianceItemsOutput, 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)
	UpdateEmptyInstanceInformation(agentName string) (response *ssm.UpdateInstanceInformationOutput, err error)
	GetParameters(log log.T, paramNames []string) (response *ssm.GetParametersOutput, err error)
	GetDecryptedParameters(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