Vasiliy Tolstov
856aac4aa9
Some checks failed
/ autoupdate (push) Failing after 1m12s
Reviewed-on: #319 Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org> Co-committed-by: Vasiliy Tolstov <v.tolstov@unistack.org>
31 lines
1.2 KiB
Go
31 lines
1.2 KiB
Go
package structfs
|
|
|
|
type EC2Metadata struct {
|
|
Latest struct {
|
|
Metadata struct {
|
|
AMIID int `json:"ami-id"`
|
|
AMILaunchIndex int `json:"ami-launch-index"`
|
|
AMIManifestPath string `json:"ami-manifest-path"`
|
|
AncestorAMIIDs []int `json:"ancestor-ami-ids"`
|
|
BlockDeviceMapping []string `json:"block-device-mapping"`
|
|
InstanceID int `json:"instance-id"`
|
|
InstanceType string `json:"instance-type"`
|
|
LocalHostname string `json:"local-hostname"`
|
|
LocalIPv4 string `json:"local-ipv4"`
|
|
KernelID int `json:"kernel-id"`
|
|
Placement string `json:"placement"`
|
|
AvailabilityZone string `json:"availability-zone"`
|
|
ProductCodes string `json:"product-codes"`
|
|
PublicHostname string `json:"public-hostname"`
|
|
PublicIPv4 string `json:"public-ipv4"`
|
|
PublicKeys []struct {
|
|
Key []string `json:"-"`
|
|
} `json:"public-keys"`
|
|
RamdiskID int `json:"ramdisk-id"`
|
|
ReservationID int `json:"reservation-id"`
|
|
SecurityGroups []string `json:"security-groups"`
|
|
} `json:"meta-data"`
|
|
Userdata string `json:"user-data"`
|
|
} `json:"latest"`
|
|
}
|