aws

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func GetInstanceID(nodeName string, logger *logrus.Entry) (string, error)

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.

func TerminateNodes

func TerminateNodes(nodesToTerminate []string, logger *logrus.Entry) error

TerminateNodes terminates a slice of nodes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL