aliauth

package
v0.0.0-...-4f62784 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 19 Imported by: 6

Documentation

Index

Constants

View Source
const StrMissRequired = "miss required parameter: "

Variables

This section is empty.

Functions

func ContainerSignAndDoRequest

func ContainerSignAndDoRequest(region string, method string, path string, query map[string]interface{}, args interface{}, response map[string]interface{}) error

func DNSSignAndDoRequest

func DNSSignAndDoRequest(action string, params map[string]interface{}, response map[string]interface{}) error

func ECSSignAndDoRequest

func ECSSignAndDoRequest(action string, params map[string]interface{}, response map[string]interface{}) error

func LoadBalancerSignAndDoRequest

func LoadBalancerSignAndDoRequest(action string, params map[string]interface{}, response map[string]interface{}) error

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

type Configuration struct {
	AliAccessKeyID     string
	AliAccessKeySecret string
}

Configuration struct for representing Ali-cloud credentials

var Config Configuration

Config from alicloudconfig.json

Jump to

Keyboard shortcuts

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