asglifecycle

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ASGLifecycleMonitorKind = "ASG_LIFECYCLE_MONITOR"

ASGLifecycleMonitorKind is a const to define this monitor kind

Variables

This section is empty.

Functions

This section is empty.

Types

type ASGLifecycleMonitor

type ASGLifecycleMonitor struct {
	IMDS             *ec2metadata.Service
	InterruptionChan chan<- monitor.InterruptionEvent
	CancelChan       chan<- monitor.InterruptionEvent
	NodeName         string
}

ASGLifecycleMonitor is a struct definition which facilitates monitoring of ASG target lifecycle state from IMDS

func NewASGLifecycleMonitor

func NewASGLifecycleMonitor(imds *ec2metadata.Service, interruptionChan chan<- monitor.InterruptionEvent, cancelChan chan<- monitor.InterruptionEvent, nodeName string) ASGLifecycleMonitor

NewASGLifecycleMonitor creates an instance of a ASG lifecycle IMDS monitor

func (ASGLifecycleMonitor) Kind

func (m ASGLifecycleMonitor) Kind() string

Kind denotes the kind of monitor

func (ASGLifecycleMonitor) Monitor

func (m ASGLifecycleMonitor) Monitor() error

Monitor continuously monitors metadata for ASG target lifecycle state and sends interruption events to the passed in channel

Jump to

Keyboard shortcuts

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