Documentation
¶
Index ¶
- func GetRegions(accessKey string, secretKey string, client *http.Client) (regionMap map[string]string, err error)
- func GetS3Object(accessKey string, secretKey string, bucketObjectUrl string, ...) (body []byte, err error)
- func MultiInstancesURL(regionEndpoint string, action string, instanceIds ...string) (ourl string, err error)
- type AwsRequest
- type DBSnapshot
- type DescribeDBSnapshotsResponse
- type Group
- type Instance
- type Instances
- type InstantStatuses
- type RegionInfo
- type Regions
- type Reservation
- type StartInstance
- func StartInstances(accessKey string, secretKey string, regionEndpoint string, client *http.Client, ...) (instances StartInstance, err error, rurl string)
- func StopInstances(accessKey string, secretKey string, regionEndpoint string, client *http.Client, ...) (instances StartInstance, err error, rurl string)
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRegions ¶
func GetS3Object ¶
Types ¶
type AwsRequest ¶
type AwsRequest struct {
RequestId string `xml:"requestId"`
}
type DBSnapshot ¶
type DBSnapshot struct { Port int OptionGroupName string Engine string Status string SnapshotType string LicenseModel string EngineVersion string DBInstanceIdentifier string DBSnapshotIdentifier string SnapshotCreateTime time.Time AvailabilityZone string InstanceCreateTime time.Time PercentProgress int AllocatedStorage int MasterUsername string }
type DescribeDBSnapshotsResponse ¶
type DescribeDBSnapshotsResponse struct { RequestId string `xml:"ResponseMetadata>RequestId"` DBSnapshots []DBSnapshot `xml:"DescribeDBSnapshotsResult>DBSnapshots>DBSnapshot"` }
func GetRDSSnapshots ¶
type Instance ¶
type Instance struct { InstanceId string `xml:"instanceId",json:"Id"` Architecture string `xml:"architecture"` InstanceType string `xml:"instanceType"` PrivateDnsName string `xml:"privateDnsName"` Tags []Tag `xml:"tagSet>item"` IpAddress string `xml:"ipAddress"` InstanceState string `xml:"instanceState>name"` CurrentInstanceState string `xml:"currentState>name"` PreviousInstanceState string `xml:"previousState>name"` InstanceStateCode string `xml:"instanceState>code"` ProfileName string // custom field Region string // custom field }
type Instances ¶
type Instances struct { AwsRequest Reservations []Reservation `xml:"reservationSet>item"` }
type InstantStatuses ¶
type InstantStatuses struct { AwsRequest Instances []Instance `xml:"instanceStatusSet>item"` }
type RegionInfo ¶
type Regions ¶
type Regions struct { AwsRequest RegionInfo []RegionInfo `xml:"regionInfo>item"` }
type Reservation ¶
type StartInstance ¶
type StartInstance struct { AwsRequest Instances []Instance `xml:"instancesSet>item"` }
func StartInstances ¶
Click to show internal directories.
Click to hide internal directories.