bce-sdk-go

module
v0.0.0-...-66d4310 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: Apache-2.0

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

Path Synopsis
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.

Jump to

Keyboard shortcuts

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