Documentation
¶
Index ¶
Constants ¶
View Source
const LocalMetadataUrl = "http://169.254.169.254/latest/meta-data/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalMetadata ¶
type LocalMetadata struct { AmiId string `ec2:"ami-id"` AmiLaunchIndex string `ec2:"ami-launch-index"` AmiManifestPath string `ec2:"ami-manifest-path"` Hostname string `ec2:"hostname"` InstanceAction string `ec2:"instance-action"` InstanceId string `ec2:"instance-id"` InstanceLifeCycle string `ec2:"instance-life-cycle"` InstanceType string `ec2:"instance-type"` LocalHostname string `ec2:"local-hostname"` LocalIpv4 string `ec2:"local-ipv4"` Mac string `ec2:"mac"` Profile string `ec2:"profile"` PublicHostname string `ec2:"public-hostname"` PublicIpv4 string `ec2:"public-ipv4"` ReservationId string `ec2:"reservation-id"` SecurityGroups string `ec2:"security-groups"` }
func GetLocalMetadata ¶
func GetLocalMetadata(ctx context.Context) (LocalMetadata, error)
type LocalMetadataNetworkInterface ¶
type LocalMetadataNetworkInterface struct { DeviceNumber string `ec2:"device-number"` InterfaceId string `ec2:"interface-id"` LocalHostname string `ec2:"local-hostname"` LocalIpv4s string `ec2:"local-ipv4s"` Mac string `ec2:"mac"` OwnerId string `ec2:"owner-id"` PublicHostname string `ec2:"public-hostname"` PublicIpv4s string `ec2:"public-ipv4s"` SecurityGroupIds string `ec2:"security-group-ids"` SecurityGroups string `ec2:"security-groups"` SubnetId string `ec2:"subnet-id"` SubnetIpv4CidrBlock string `ec2:"subnet-ipv4-cidr-block"` VpcId string `ec2:"vpc-id"` VpcIpv4CidrBlock string `ec2:"vpc-ipv4-cidr-block"` }
Click to show internal directories.
Click to hide internal directories.