Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ScheduledEventKind is a const to define a scheduled event kind of interruption event
ScheduledEventKind = "SCHEDULED_EVENT"
)
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 event that is processed
func (ScheduledEventMonitor) Monitor ¶
func (m ScheduledEventMonitor) Monitor() error
Monitor continuously monitors metadata for scheduled events and sends interruption events to the passed in channel
Click to show internal directories.
Click to hide internal directories.