Documentation ¶
Index ¶
- func AutoScalingGroupReady(autoscalingGroupName string, desiredCapacity int, logger *logrus.Entry) (*autoscaling.Group, error)
- func DetachNodes(decrement bool, nodesToDetach []string, autoscalingGroupName string, ...) error
- func GetAutoscalingGroups(clusterID string) ([]*autoscaling.Group, error)
- func GetInstanceID(nodeName string, logger *logrus.Entry) (string, error)
- func GetNodeHostnames(autoscalingGroupNodes []*autoscaling.Instance) ([]string, error)
- func TerminateNodes(nodesToTerminate []string, logger *logrus.Entry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoScalingGroupReady ¶
func AutoScalingGroupReady(autoscalingGroupName string, desiredCapacity int, logger *logrus.Entry) (*autoscaling.Group, error)
AutoScalingGroupReady gets an AutoscalingGroup object and checks that autoscaling group is in ready state.
func DetachNodes ¶
func DetachNodes(decrement bool, nodesToDetach []string, autoscalingGroupName string, logger *logrus.Entry) error
DetachNodes detaches nodes from an autoscaling group.
func GetAutoscalingGroups ¶
func GetAutoscalingGroups(clusterID string) ([]*autoscaling.Group, error)
GetAutoscalingGroups gets all the autoscaling groups that their names contain the cluster ID passed.
func GetInstanceID ¶
GetInstanceID returns the instance ID of a node.
func GetNodeHostnames ¶
func GetNodeHostnames(autoscalingGroupNodes []*autoscaling.Instance) ([]string, error)
GetNodeHostnames returns the hostnames of the autoscaling group nodes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.