module
Version:
v0.0.0-...-66d4310
Opens a new window with list of versions in this module.
Published: Oct 31, 2017
License: Apache-2.0
Opens a new window with license information.
README
¶
bce-sdk-go
A golang sdk for baidu cloud.
Base code copy from https://github.com/guoyao/baidubce-sdk-go
Example
var credentials, _ = bce.NewCredentialsFromFile("../aksk-test.json")
//var bceConfig = bce.NewConfig(credentials)
var bceConfig = &bce.Config{
Credentials: credentials,
Checksum: true,
Timeout: 5 * time.Second,
Region: os.Getenv("BOS_REGION"),
}
var bccConfig = NewConfig(bceConfig)
eipClient = NewEIPClient(bccConfig)
eipClient.SetDebug(true)
eips, _ := eipClient.GetEips(nil)
for _, eip := range eips {
fmt.Printf("%+v \n", eip)
}
Contributors
Reference
Directories
¶
|
|
Package bce defined a set of core data structure and functions for Baidu Cloud API.
|
Package bce defined a set of core data structure and functions for Baidu Cloud API. |
|
|
Package bos defined a set of core data structure and functions for Baidu Cloud BOS API.
|
Package bos defined a set of core data structure and functions for Baidu Cloud BOS API. |
|
|
|
|
|
|
Package util implements a set of util functions.
|
Package util implements a set of util functions. |
Click to show internal directories.
Click to hide internal directories.