cfn

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCloudFormationAPI

type MockCloudFormationAPI struct {
	cloudformationiface.CloudFormationAPI

	// PageSize is the page size for returned data.
	PageSize int

	// MockDescribeStackEvents can be used to mock the call to DescribeStackEvents API.
	MockDescribeStackEvents func(*cloudformation.DescribeStackEventsInput) (*cloudformation.DescribeStackEventsOutput, error)

	// MockDescribeStacks can be used to mock the call to DescribeStacks API.
	MockDescribeStacks func(*cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error)

	// MockDescribeChangeSet can be used to mock the call to DescribeChangeSet API.
	MockDescribeChangeSet func(*cloudformation.DescribeChangeSetInput) (*cloudformation.DescribeChangeSetOutput, error)

	// MockDeleteStack can be used to mock the call to DeleteStack API.
	MockDeleteStack func(*cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)
	// contains filtered or unexported fields
}

MockCloudFormationAPI is the mock for AWS CloudFormation API.

func NewMockCloudFormationAPI

func NewMockCloudFormationAPI() *MockCloudFormationAPI

NewMockCloudFormationAPI creates new mock of CloudFormation API.

func (*MockCloudFormationAPI) AddChangeSets

func (c *MockCloudFormationAPI) AddChangeSets(changeSets []*cloudformation.DescribeChangeSetOutput)

AddChangeSets adds new change sets to default mock implementation.

func (*MockCloudFormationAPI) AddStackEvents

func (c *MockCloudFormationAPI) AddStackEvents(stackEvents []*cloudformation.StackEvent)

AddStackEvents adds new stack events to mock implementation.

func (*MockCloudFormationAPI) AddStacks

func (c *MockCloudFormationAPI) AddStacks(stacks []*cloudformation.Stack)

AddStacks adds new stack to mock implementation.

func (*MockCloudFormationAPI) DeleteStack

DeleteStack invokes mocked method if it is not nil, otherwise the mocked implementation is invoked.

func (*MockCloudFormationAPI) DescribeChangeSet

DescribeChangeSet invokes mocked method if it is not nil, otherwise the mocked implementation is invoked.

func (*MockCloudFormationAPI) DescribeStackEvents

DescribeStackEvents invokes the mock method if it is set, otherwise it will return stack events from default mock implementation.

func (*MockCloudFormationAPI) DescribeStacks

DescribeStacks invokes the mocked method if is is set, otherwise it will return stack from default implementation.

func (*MockCloudFormationAPI) RemoveStackEvents

func (c *MockCloudFormationAPI) RemoveStackEvents(stackEvents []*cloudformation.StackEvent)

RemoveStackEvents removes the stack events from mock implementation.

Jump to

Keyboard shortcuts

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