Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstanceInfo ¶
type InstanceInfo struct { InstanceID string `header:"INSTANCE_ID"` PrivateIPAddress string `header:"PRIVATE_IP"` PublicIPAddress string `header:"PUBLIC_IP"` InstanceType string `header:"TYPE"` StateName string `header:"STATE"` Tags map[string]string `header:"TAGS"` }
InstanceInfo is attributes of aws ec2 instance
func NewInstanceInfo ¶
func NewInstanceInfo(instance *ec2.Instance) *InstanceInfo
NewInstanceInfo creates a new InstanceInfo
func (*InstanceInfo) Headers ¶
func (info *InstanceInfo) Headers() []string
Headers gets header string array
func (*InstanceInfo) Values ¶
func (info *InstanceInfo) Values(withColor bool) []string
Values gets value string array
Click to show internal directories.
Click to hide internal directories.