Example #1
0
func (d *Driver) getClient() *ecs.Client {
	if d.client == nil {
		client := ecs.NewClient(d.AccessKey, d.SecretKey)
		client.SetDebug(false)
		d.client = client
	}
	return d.client
}
Example #2
0
func AliyunClient() *ecs.Client {
	return ecs.NewClient(AliyunAppKey, AliyunAppSecrety)
}