# README
qcloudapi-sdk-go
This is an unofficial Go SDK for QCloud Services. You are welcome for contribution.
Usage
package main
import (
"log"
"github.com/howardshaw/qcloudapi-sdk-go/clb"
"github.com/howardshaw/qcloudapi-sdk-go/common"
)
func main() {
credential := common.Credential{
SecretId: "YOUR_SECRET_ID",
SecretKey: "YOUR_SECRET_KEY",
}
opts := common.Opts{
Region: "gz",
}
client, err := clb.NewClient(credential, opts)
if err != nil {
log.Fatal(err)
}
args := clb.DescribeLoadBalancersArgs{}
lbs, err := client.DescribeLoadBalancers(&args)
if err != nil {
log.Fatal(lbs)
}
log.Println(lbs.LoadBalancerSet)
}
License
This library is distributed under the Apache License found in the LICENSE file.
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author