Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServices ¶
func NewServices(profile string) (EC2Service, ECSService, ASGService)
Types ¶
type ASGService ¶
type ClusterInstance ¶
type CustomAWSWaiterConfig ¶
type DescribeAutoScalingGroupsOutput ¶
type DescribeAutoScalingGroupsOutput struct {
DesiredCapacity int64
}
type EC2Service ¶
type EC2Service interface {
TerinateInstance(instance ClusterInstance) error
GetImageID(instance ClusterInstance) (string, error)
DescribeImages(id string) (MachineImage, error)
}
type ECSService ¶
type ECSService interface {
ListContainerInstances(cluster string) ([]ClusterInstance, error)
DrainContainerInstances(instance ClusterInstance) error
DeregisterContainerInstance(instance ClusterInstance) error
UpdateECSServiceByForce(cluster string) error
WaitUntilContainerInstanceDrained(instance ClusterInstance, config CustomAWSWaiterConfig) error
WaitUntilNewInstanceRegistered(cluster string, desire int, config CustomAWSWaiterConfig) error
}
Click to show internal directories.
Click to hide internal directories.