Documentation ¶
Index ¶
- Constants
- func ContainerSignAndDoRequest(region string, method string, path string, query map[string]interface{}, ...) error
- func DNSSignAndDoRequest(action string, params map[string]interface{}, response map[string]interface{}) error
- func ECSSignAndDoRequest(action string, params map[string]interface{}, response map[string]interface{}) error
- func LoadBalancerSignAndDoRequest(action string, params map[string]interface{}, response map[string]interface{}) error
- func LoadConfig()
- func PutStructIntoMap(i interface{}) map[string]interface{}
- type Configuration
Constants ¶
View Source
const StrMissRequired = "miss required parameter: "
Variables ¶
This section is empty.
Functions ¶
func DNSSignAndDoRequest ¶
func ECSSignAndDoRequest ¶
func LoadConfig ¶
func LoadConfig()
LoadConfig represents Load Ali-cloud config from alicloudconfig.json or environment variables
func PutStructIntoMap ¶
func PutStructIntoMap(i interface{}) map[string]interface{}
PutStructIntoMap puts key and value of struct into map[string]interface{} if value is string and not empty -> put if value is bool -> put NOTE: the default value of origin Ali API 's parameter must be false, if not ,do not use this function if value is int and not 0 -> put NOTE: the optional values of origin Ali API 's parameter must dose not include 0, if not ,do not use this function
Types ¶
type Configuration ¶
Configuration struct for representing Ali-cloud credentials
var Config Configuration
Config from alicloudconfig.json
Click to show internal directories.
Click to hide internal directories.