scheduledevent

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ScheduledEventMonitorKind is a const to define this monitor kind
	ScheduledEventMonitorKind = "SCHEDULED_EVENT_MONITOR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ScheduledEventMonitor

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

ScheduledEventMonitor is a struct definition that knows how to process scheduled events from IMDS

func NewScheduledEventMonitor

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

NewScheduledEventMonitor creates an instance of a scheduled event monitor

func (ScheduledEventMonitor) Kind

func (m ScheduledEventMonitor) Kind() string

Kind denotes the kind of monitor

func (ScheduledEventMonitor) Monitor

func (m ScheduledEventMonitor) Monitor() error

Monitor continuously monitors metadata for scheduled events 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