Documentation
¶
Index ¶
Constants ¶
View Source
const MetaMainteTimeLayout = "2 Jan 2006 15:04:05 MST"
MetaMainteTimeLayout ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Code ec2.EventCode `json:"Code"` NotBefore MetaMainteTime `json:"NotBefore"` NotAfter MetaMainteTime `json:"NotAfter"` Description string `json:"Description"` State string `json:"State"` }
Event ...
type Mainte ¶
type Mainte struct {
Client *ec2metadata.Client
}
Mainte ...
type MetaMainteTime ¶
MetaMainteTime ...
func (MetaMainteTime) MarshalJSON ¶
func (ct MetaMainteTime) MarshalJSON() ([]byte, error)
MarshalJSON ...
func (*MetaMainteTime) UnmarshalJSON ¶
func (ct *MetaMainteTime) UnmarshalJSON(b []byte) error
UnmarshalJSON ...
type SpotEvent ¶ added in v0.2.1
type SpotEvent struct { Action SpotEventAction `json:"action"` Time time.Time `json:"time"` }
SpotEvent ...
type SpotEventAction ¶ added in v0.2.1
type SpotEventAction string
SpotEventAction ...
const ( SpotEventActionHibernate SpotEventAction = "hibernate" SpotEventActionStop SpotEventAction = "stop" SpotEventActionTerminate SpotEventAction = "terminate" )
SpotEventAction ...
Click to show internal directories.
Click to hide internal directories.