Documentation
¶
Index ¶
Constants ¶
View Source
const ( // SpotInstanceActionPath is the context path to spot/instance-action within IMDS SpotInstanceActionPath = "/latest/meta-data/spot/instance-action" // ScheduledEventPath is the context path to events/maintenance/scheduled within IMDS ScheduledEventPath = "/latest/meta-data/events/maintenance/scheduled" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstanceAction ¶
type InstanceAction struct {
Version string `json:"version"`
Id string `json:"id"`
DetailType string `json:"detail-type"`
Source string `json:"source"`
Account string `json:"account"`
Time string `json:"time"`
Region string `json:"region"`
Resources []string `json:"resources"`
Detail InstanceActionDetail `json:"detail"`
}
InstanceAction metadata structure for json parsing
type InstanceActionDetail ¶
type InstanceActionDetail struct {
InstanceId string `json:"instance-id"`
InstanceAction string `json:"instance-action"`
}
InstanceActionDetail metadata structure for json parsing
type ScheduledEventDetail ¶ added in v1.2.0
type ScheduledEventDetail struct {
NotBefore string `json:"NotBefore"`
Code string `json:"Code"`
Description string `json:"Description"`
EventID string `json:"EventId"`
NotAfter string `json:"NotAfter"`
State string `json:"State"`
}
ScheduledEventDetail metadata structure for json parsing
Click to show internal directories.
Click to hide internal directories.