Documentation ¶
Index ¶
Constants ¶
View Source
const ( AliCloudAccessKeyId = "alicloud_access_key_id" AliCloudAccessKeySecret = "alicloud_access_key_secret" AliCloudAccessKeyStsToken = "alicloud_access_key_sts_token" InstanceDefaultTimeout = 900 DefaultWaitForInterval = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { //ecs CreateInstance(*ecs.CreateInstanceRequest) (*ecs.CreateInstanceResponse, error) RunInstances(*ecs.RunInstancesRequest) (*ecs.RunInstancesResponse, error) DescribeInstances(*ecs.DescribeInstancesRequest) (*ecs.DescribeInstancesResponse, error) StartInstance(*ecs.StartInstanceRequest) (*ecs.StartInstanceResponse, error) StopInstance(*ecs.StopInstanceRequest) (*ecs.StopInstanceResponse, error) DeleteInstance(*ecs.DeleteInstanceRequest) (*ecs.DeleteInstanceResponse, error) DescribeImages(*ecs.DescribeImagesRequest) (*ecs.DescribeImagesResponse, error) DescribeSecurityGroups(*ecs.DescribeSecurityGroupsRequest) (*ecs.DescribeSecurityGroupsResponse, error) DescribeRegions(*ecs.DescribeRegionsRequest) (*ecs.DescribeRegionsResponse, error) DescribeZones(*ecs.DescribeZonesRequest) (*ecs.DescribeZonesResponse, error) DescribeDisks(*ecs.DescribeDisksRequest) (*ecs.DescribeDisksResponse, error) //waitForInstance WaitForInstance(instanceId, instanceStatus, regionId string, timeout int) error //vpc DescribeVpcs(*vpc.DescribeVpcsRequest) (*vpc.DescribeVpcsResponse, error) DescribeVSwitches(*vpc.DescribeVSwitchesRequest) (*vpc.DescribeVSwitchesResponse, error) }
Client is a wrapper object for actual AliCloud SDK clients to allow for easier testing.
func NewClientFromKeys ¶
init client from ak directly
Click to show internal directories.
Click to hide internal directories.