Documentation ¶
Index ¶
- func CanonicalHost(host string) string
- func CanonicalQueryString(service, action, credentialScope, secretId, amzDatetime string, ...) string
- func CanonicalRequest(queryString, canonicalhost string) string
- func CredentialScope(amzDate, service, region string) string
- func Dates() (amzDate, amzDatetime string)
- func Host(service, region string) string
- func Request(requestUrl, requestParamString, signature string) ([]byte, error)
- func Signature(signatureString string, signatureKey []byte) string
- func SignatureKey(secretKey, region, service, amzDate string) []byte
- func SignatureString(credentialScope, canonicalRequest, amzDatetime string) string
- func URLEncode(signstr string) string
- type EC2DescribeInstances
- type EbsInstanceBlockDevice
- type ElasticGpuAssociation
- type GroupIdentifier
- type IamInstanceProfile
- type Instance
- type InstanceBlockDeviceMapping
- type InstanceIpv6Address
- type InstanceNetworkInterface
- type InstanceNetworkInterfaceAssociation
- type InstanceNetworkInterfaceAttachment
- type InstancePrivateIpAddress
- type InstanceState
- type Monitoring
- type Placement
- type ProductCode
- type Reservation
- type StateReason
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalHost ¶
func CanonicalQueryString ¶
func CanonicalRequest ¶
func CredentialScope ¶
func SignatureKey ¶
func SignatureString ¶
Types ¶
type EC2DescribeInstances ¶
type EC2DescribeInstances struct { DescribeInstances xml.Name `xml:"DescribeInstancesResponse"` RequestID string `xml:"requestId"` NextToken string `xml:"nextToken"` ReservationSet []Reservation `xml:"reservationSet>item"` }
type EbsInstanceBlockDevice ¶
type ElasticGpuAssociation ¶
type GroupIdentifier ¶
type IamInstanceProfile ¶
type Instance ¶
type Instance struct { AmiLaunchIndex int64 `xml:"amiLaunchIndex"` Architecture string `xml:"architecture"` BlockDeviceMapping []InstanceBlockDeviceMapping `xml:"blockDeviceMapping>item"` ClientToken string `xml:"clientToken"` DnsName string `xml:"dnsName"` EbsOptimized bool `xml:"ebsOptimized"` ElasticGpuAssociationSet []ElasticGpuAssociation `xml:"elasticGpuAssociationSet>item"` EnaSupport bool `xml:"enaSupport"` GroupSet []GroupIdentifier `xml:"groupSet>item"` Hypervisor string `xml:"hypervisor"` IamInstanceProfile IamInstanceProfile `xml:"iamInstanceProfile"` ImageID string `xml:"imageID"` InstanceID string `xml:"instanceId"` InstanceLifecycle string `xml:"instanceLifecycle"` InstanceState InstanceState `xml:"InstanceState"` InstanceType string `xml:"instanceType"` IpAddress string `xml:"ipAddress"` KernelID string `xml:"kernelId"` KeyName string `xml:"keyName"` LaunchTime string `xml:"launchTime"` Monitoring Monitoring `xml:"monitoring"` NetworkInterfaceSet []InstanceNetworkInterface `xml:"networkInterfaceSet>item"` Placement Placement `xml:"placement"` Platform string `xml:"platform"` PrivateDnsName string `xml:"privateDnsName"` PrivateIpAddress string `xml:"privateIpAddress"` ProductCodes []ProductCode `xml:"productCodes>item"` RamdiskID string `xml:"ramdiskId"` Reason string `xml:"reason"` RootDeviceName string `xml:"rootDeviceName"` RootDeviceType string `xml:"rootDeviceType"` SourceDestCheck bool `xml:"sourceDestCheck"` SpotInstanceRequestID string `xml:"spotInstanceRequestId"` SriovNetSupport string `xml:"sriovNetSupport"` StateReason StateReason `xml:"stateReason"` SubnetID string `xml:"subnetId"` TagSet []Tag `xml:"tagSet>item"` VirtualizationType string `xml:"virtualizationType"` VpcID string `xml:"vpcId"` }
type InstanceBlockDeviceMapping ¶
type InstanceBlockDeviceMapping struct { DeviceName string `xml:"deviceName"` Ebs EbsInstanceBlockDevice `xml:"ebs"` }
type InstanceIpv6Address ¶
type InstanceIpv6Address struct {
Ipv6Address string `xml:"ipv6Address"`
}
type InstanceNetworkInterface ¶
type InstanceNetworkInterface struct { Association InstanceNetworkInterfaceAssociation `xml:"association"` Attachment InstanceNetworkInterfaceAttachment `xml:"attachment"` Description string `xml:"description"` GroupSet []GroupIdentifier `xml:"groupSet>item"` Ipv6AddressesSet []InstanceIpv6Address `xml:"ipv6AddressesSet>item"` MacAddress string `xml:"macAddress"` NetworkInterfaceID string `xml:"networkInterfaceId"` OwnerID string `xml:"ownerId"` PrivateDnsName string `xml:"privateDnsName"` PrivateIpAddress string `xml:"privateIpAddress"` PrivateIpAddressesSet []InstancePrivateIpAddress `xml:"privateIpAddressesSet>item"` SourceDestCheck bool `xml:"sourceDestCheck"` Status string `xml:"status"` SubnetID string `xml:"subnetId"` VpcID string `xml:"vpcId"` }
type InstanceNetworkInterfaceAttachment ¶
type InstanceNetworkInterfaceAttachment struct {
// contains filtered or unexported fields
}
type InstancePrivateIpAddress ¶
type InstancePrivateIpAddress struct { Association InstanceNetworkInterfaceAssociation `xml:"association"` Primary bool `xml:"primary"` PrivateDnsName string `xml:"privateDnsName"` PrivateIpAddress string `xml:"privateIpAddress"` }
type InstanceState ¶
type Monitoring ¶
type Monitoring struct {
State string `xml:"state"`
}
type ProductCode ¶
type Reservation ¶
type StateReason ¶
Click to show internal directories.
Click to hide internal directories.