Documentation ¶
Index ¶
- func GenerateDescribeInstancesOutput(empty bool) *ec2.DescribeInstancesOutput
- func GenerateInvalidMessage(t *testing.T) *sqs.ReceiveMessageOutput
- func GenerateMessageHandlerArgs() (chan controller.Request, *MockAutoScalingClient, *MockSQSClient, ...)
- func GeneratePlainMessage() util.ASGMessage
- func GenerateSqsMessageHandle() string
- func GenerateTestMessage(t *testing.T) *sqs.ReceiveMessageOutput
- func GenerateValidASGMessage(t *testing.T) *sqs.ReceiveMessageOutput
- func GenerateValidSpotMessage(t *testing.T) *sqs.ReceiveMessageOutput
- type MockAutoScalingClient
- func (m *MockAutoScalingClient) CompleteLifecycleAction(input *autoscaling.CompleteLifecycleActionInput) (*autoscaling.CompleteLifecycleActionOutput, error)
- func (m *MockAutoScalingClient) RecordLifecycleActionHeartbeat(input *autoscaling.RecordLifecycleActionHeartbeatInput) (*autoscaling.RecordLifecycleActionHeartbeatOutput, error)
- type MockEC2Client
- type MockSQSClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDescribeInstancesOutput ¶
func GenerateDescribeInstancesOutput(empty bool) *ec2.DescribeInstancesOutput
func GenerateInvalidMessage ¶
func GenerateInvalidMessage(t *testing.T) *sqs.ReceiveMessageOutput
func GenerateMessageHandlerArgs ¶
func GenerateMessageHandlerArgs() (chan controller.Request, *MockAutoScalingClient, *MockSQSClient, *MockEC2Client)
func GeneratePlainMessage ¶
func GeneratePlainMessage() util.ASGMessage
func GenerateSqsMessageHandle ¶
func GenerateSqsMessageHandle() string
func GenerateTestMessage ¶
func GenerateTestMessage(t *testing.T) *sqs.ReceiveMessageOutput
func GenerateValidASGMessage ¶
func GenerateValidASGMessage(t *testing.T) *sqs.ReceiveMessageOutput
func GenerateValidSpotMessage ¶
func GenerateValidSpotMessage(t *testing.T) *sqs.ReceiveMessageOutput
Types ¶
type MockAutoScalingClient ¶
type MockAutoScalingClient struct { autoscalingiface.AutoScalingAPI WasCompleteLifecycleActionCalled bool WasHeartbeatCalled bool ReturnError bool }
func NewMockAutoScalingClient ¶
func NewMockAutoScalingClient(returnError bool) *MockAutoScalingClient
func (*MockAutoScalingClient) CompleteLifecycleAction ¶
func (m *MockAutoScalingClient) CompleteLifecycleAction(input *autoscaling.CompleteLifecycleActionInput) (*autoscaling.CompleteLifecycleActionOutput, error)
func (*MockAutoScalingClient) RecordLifecycleActionHeartbeat ¶
func (m *MockAutoScalingClient) RecordLifecycleActionHeartbeat(input *autoscaling.RecordLifecycleActionHeartbeatInput) (*autoscaling.RecordLifecycleActionHeartbeatOutput, error)
type MockEC2Client ¶
type MockEC2Client struct { ec2iface.EC2API WasDescribeInstancesCalled bool ReturnError bool ReturnValue *ec2.DescribeInstancesOutput }
func NewMockEC2Client ¶
func NewMockEC2Client(returnError bool) *MockEC2Client
func (*MockEC2Client) DescribeInstances ¶
func (m *MockEC2Client) DescribeInstances(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)
type MockSQSClient ¶
func NewMockSQSClient ¶
func NewMockSQSClient(returnError bool) *MockSQSClient
func (*MockSQSClient) DeleteMessage ¶
func (m *MockSQSClient) DeleteMessage(*sqs.DeleteMessageInput) (*sqs.DeleteMessageOutput, error)
Click to show internal directories.
Click to hide internal directories.