qcloudapi-sdk-go

module
v0.0.0-...-7ebef60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2020 License: Apache-2.0

README

qcloudapi-sdk-go

Go Report Card Build Status codecov GoDoc License

This is an unofficial Go SDK for QCloud Services. You are welcome for contribution.

Usage

package main

import (
	"log"

	"github.com/xawei/qcloudapi-sdk-go/clb"
	"github.com/xawei/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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL