Documentation ¶
Index ¶
- type AutoScalingGroup
- type AutoScalingGroups
- type AwsClient
- func (c *AwsClient) DetachNodeFromASG(asg *AutoScalingGroup, instance *Instance) (*autoscaling.Activity, error)
- func (c *AwsClient) GetAutoScalingGroups() (*AutoScalingGroups, error)
- func (c *AwsClient) GetLatestEKSAmi(eksMajor string, eksMinor string) (string, error)
- func (c *AwsClient) IdentifyNewInstance(asg *AutoScalingGroup) (*Instance, error)
- func (c *AwsClient) ReplaceNodeInASG(asg *AutoScalingGroup, instance *Instance) (*Instance, error)
- func (c *AwsClient) TerminateInstance(instanceId string) error
- func (c *AwsClient) WaitForASGScaleUp(asg *AutoScalingGroup, activity *autoscaling.Activity) (*Instance, error)
- type Instance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoScalingGroup ¶
type AutoScalingGroups ¶
type AutoScalingGroups struct {
Groups []*AutoScalingGroup
}
type AwsClient ¶
type AwsClient struct { Session *session.Session Config *aws.Config EC2 ec2iface.EC2API AutoScaling autoscalingiface.AutoScalingAPI SSM ssmiface.SSMAPI }
func NewAwsClient ¶
func (*AwsClient) DetachNodeFromASG ¶
func (c *AwsClient) DetachNodeFromASG(asg *AutoScalingGroup, instance *Instance) (*autoscaling.Activity, error)
func (*AwsClient) GetAutoScalingGroups ¶
func (c *AwsClient) GetAutoScalingGroups() (*AutoScalingGroups, error)
func (*AwsClient) GetLatestEKSAmi ¶
func (*AwsClient) IdentifyNewInstance ¶
func (c *AwsClient) IdentifyNewInstance(asg *AutoScalingGroup) (*Instance, error)
func (*AwsClient) ReplaceNodeInASG ¶
func (c *AwsClient) ReplaceNodeInASG(asg *AutoScalingGroup, instance *Instance) (*Instance, error)
func (*AwsClient) TerminateInstance ¶
func (*AwsClient) WaitForASGScaleUp ¶
func (c *AwsClient) WaitForASGScaleUp(asg *AutoScalingGroup, activity *autoscaling.Activity) (*Instance, error)
Click to show internal directories.
Click to hide internal directories.