Documentation
¶
Index ¶
Constants ¶
View Source
const MetaMainteTimeLayout = "2 Jan 2006 15:04:05 MST"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Code ec2.EventCode `json:"Code"` InstanceId string `json:"-"` NotBefore MetaMainteTime `json:"NotBefore"` NotAfter MetaMainteTime `json:"NotAfter"` Description string `json:"Description"` State string `json:"State"` }
type Mainte ¶
type Mainte struct {
Client *ec2metadata.EC2Metadata
}
func (*Mainte) GetInstanceId ¶
Get Instance ID from http://169.254.169.254/latest/meta-data/instance-id
type MetaMainteTime ¶
func (MetaMainteTime) MarshalJSON ¶
func (ct MetaMainteTime) MarshalJSON() ([]byte, error)
func (*MetaMainteTime) UnmarshalJSON ¶
func (ct *MetaMainteTime) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.