refresh

package
v0.0.0-...-3f1c2bf Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Refresher

type Refresher struct {
	AWSClient   aws.Client
	TargetGroup *autoscaling.Group
	RefreshID   *string
	Info        *autoscaling.InstanceRefresh
}

func New

func New(region string) Refresher

New creates new Refresher

func (*Refresher) DescribeRefreshStatus

func (r *Refresher) DescribeRefreshStatus() error

DescribeRefreshStatus retrieves status information of instance refresh

func (*Refresher) PrintResult

func (r *Refresher) PrintResult() error

PrintResult prints result of refresh work

func (*Refresher) SetTarget

func (r *Refresher) SetTarget(group *autoscaling.Group)

SetTarget sets target autoscaling group

func (*Refresher) StartRefresh

func (r *Refresher) StartRefresh(instanceWarmup, minHealthyPercentage int64) error

StartRefresh starts instance refresh

func (*Refresher) StatusCheck

func (r *Refresher) StatusCheck(pollingInterval, timeout time.Duration) error

StatusCheck starts status check

Jump to

Keyboard shortcuts

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