Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoScalingAPI ¶ added in v0.1.3
type AutoScalingAPI interface { CreateOrUpdateTags(context.Context, *autoscaling.CreateOrUpdateTagsInput, ...func(*autoscaling.Options)) (*autoscaling.CreateOrUpdateTagsOutput, error) DeleteTags(context.Context, *autoscaling.DeleteTagsInput, ...func(*autoscaling.Options)) (*autoscaling.DeleteTagsOutput, error) DescribeAutoScalingGroups(context.Context, *autoscaling.DescribeAutoScalingGroupsInput, ...func(*autoscaling.Options)) (*autoscaling.DescribeAutoScalingGroupsOutput, error) DetachInstances(context.Context, *autoscaling.DetachInstancesInput, ...func(*autoscaling.Options)) (*autoscaling.DetachInstancesOutput, error) UpdateAutoScalingGroup(context.Context, *autoscaling.UpdateAutoScalingGroupInput, ...func(*autoscaling.Options)) (*autoscaling.UpdateAutoScalingGroupOutput, error) }
type AutoScalingGroup ¶
type AutoScalingGroup struct { OriginalDesiredCapacity *int32 OriginalMaxSize *int32 StateSavedAt *time.Time autoscalingtypes.AutoScalingGroup // contains filtered or unexported fields }
func NewAutoScalingGroup ¶
func NewAutoScalingGroup(name string, asSvc AutoScalingAPI, ec2Svc EC2API) (*AutoScalingGroup, error)
func (*AutoScalingGroup) ReduceCapacity ¶
func (*AutoScalingGroup) ReplaceInstances ¶
type Cluster ¶ added in v0.1.3
type Cluster interface { Name() string WaitUntilContainerInstancesRegistered(context.Context, int, *time.Time) error }
func NewCluster ¶ added in v0.1.3
type Drainer ¶
type EC2API ¶ added in v0.1.3
type EC2API interface { DescribeInstances(context.Context, *ec2.DescribeInstancesInput, ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error) DescribeSpotFleetInstances(context.Context, *ec2.DescribeSpotFleetInstancesInput, ...func(*ec2.Options)) (*ec2.DescribeSpotFleetInstancesOutput, error) DescribeSpotFleetRequests(context.Context, *ec2.DescribeSpotFleetRequestsInput, ...func(*ec2.Options)) (*ec2.DescribeSpotFleetRequestsOutput, error) ModifySpotFleetRequest(context.Context, *ec2.ModifySpotFleetRequestInput, ...func(*ec2.Options)) (*ec2.ModifySpotFleetRequestOutput, error) TerminateInstances(context.Context, *ec2.TerminateInstancesInput, ...func(*ec2.Options)) (*ec2.TerminateInstancesOutput, error) }
type ECSAPI ¶ added in v0.1.3
type ECSAPI interface { DescribeContainerInstances(context.Context, *ecs.DescribeContainerInstancesInput, ...func(*ecs.Options)) (*ecs.DescribeContainerInstancesOutput, error) DescribeServices(context.Context, *ecs.DescribeServicesInput, ...func(*ecs.Options)) (*ecs.DescribeServicesOutput, error) DescribeTasks(context.Context, *ecs.DescribeTasksInput, ...func(*ecs.Options)) (*ecs.DescribeTasksOutput, error) ListContainerInstances(context.Context, *ecs.ListContainerInstancesInput, ...func(*ecs.Options)) (*ecs.ListContainerInstancesOutput, error) ListTasks(context.Context, *ecs.ListTasksInput, ...func(*ecs.Options)) (*ecs.ListTasksOutput, error) StopTask(context.Context, *ecs.StopTaskInput, ...func(*ecs.Options)) (*ecs.StopTaskOutput, error) UpdateContainerInstancesState(context.Context, *ecs.UpdateContainerInstancesStateInput, ...func(*ecs.Options)) (*ecs.UpdateContainerInstancesStateOutput, error) }
type SQSAPI ¶ added in v0.1.3
type SQSAPI interface { DeleteMessageBatch(context.Context, *sqs.DeleteMessageBatchInput, ...func(*sqs.Options)) (*sqs.DeleteMessageBatchOutput, error) ReceiveMessage(context.Context, *sqs.ReceiveMessageInput, ...func(*sqs.Options)) (*sqs.ReceiveMessageOutput, error) }
type SQSQueuePoller ¶
type SQSQueuePoller struct {
// contains filtered or unexported fields
}
func NewSQSQueuePoller ¶
func NewSQSQueuePoller(queueURL string, sqsSvc SQSAPI) *SQSQueuePoller
func (*SQSQueuePoller) Poll ¶
func (p *SQSQueuePoller) Poll(ctx context.Context, callback func([]sqstypes.Message) ([]sqstypes.DeleteMessageBatchRequestEntry, error))
type SpotFleetRequest ¶
type SpotFleetRequest struct { SpotFleetRequestConfigData *ec2types.SpotFleetRequestConfigData ec2types.SpotFleetRequestConfig // contains filtered or unexported fields }
func NewSpotFleetRequest ¶
func NewSpotFleetRequest(id string, ec2Svc EC2API) (*SpotFleetRequest, error)
func (*SpotFleetRequest) ReduceCapacity ¶
func (*SpotFleetRequest) TerminateAllInstances ¶
func (sfr *SpotFleetRequest) TerminateAllInstances(ctx context.Context, drainer Drainer) error
Click to show internal directories.
Click to hide internal directories.