Documentation ¶
Index ¶
- type MockCloudFormationAPI
- func (c *MockCloudFormationAPI) AddChangeSets(changeSets []*cloudformation.DescribeChangeSetOutput)
- func (c *MockCloudFormationAPI) AddStackEvents(stackEvents []*cloudformation.StackEvent)
- func (c *MockCloudFormationAPI) AddStacks(stacks []*cloudformation.Stack)
- func (c *MockCloudFormationAPI) DeleteStack(in *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)
- func (c *MockCloudFormationAPI) DescribeChangeSet(in *cloudformation.DescribeChangeSetInput) (*cloudformation.DescribeChangeSetOutput, error)
- func (c *MockCloudFormationAPI) DescribeStackEvents(in *cloudformation.DescribeStackEventsInput) (*cloudformation.DescribeStackEventsOutput, error)
- func (c *MockCloudFormationAPI) DescribeStacks(in *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error)
- func (c *MockCloudFormationAPI) RemoveStackEvents(stackEvents []*cloudformation.StackEvent)
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 ¶
func (c *MockCloudFormationAPI) DeleteStack(in *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)
DeleteStack invokes mocked method if it is not nil, otherwise the mocked implementation is invoked.
func (*MockCloudFormationAPI) DescribeChangeSet ¶
func (c *MockCloudFormationAPI) DescribeChangeSet(in *cloudformation.DescribeChangeSetInput) (*cloudformation.DescribeChangeSetOutput, error)
DescribeChangeSet invokes mocked method if it is not nil, otherwise the mocked implementation is invoked.
func (*MockCloudFormationAPI) DescribeStackEvents ¶
func (c *MockCloudFormationAPI) DescribeStackEvents(in *cloudformation.DescribeStackEventsInput) (*cloudformation.DescribeStackEventsOutput, error)
DescribeStackEvents invokes the mock method if it is set, otherwise it will return stack events from default mock implementation.
func (*MockCloudFormationAPI) DescribeStacks ¶
func (c *MockCloudFormationAPI) DescribeStacks(in *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error)
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.