示例#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
}
示例#2
0
文件: utils.go 项目: aiden0z/spore
func AliyunClient() *ecs.Client {
	return ecs.NewClient(AliyunAppKey, AliyunAppSecrety)
}