aliyun

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Hangzhou    = Region("cn-hangzhou")
	Qingdao     = Region("cn-qingdao")
	Beijing     = Region("cn-beijing")
	Hongkong    = Region("cn-hongkong")
	Shenzhen    = Region("cn-shenzhen")
	Shanghai    = Region("cn-shanghai")
	Zhangjiakou = Region("cn-zhangjiakou")
	Huhehaote   = Region("cn-huhehaote")
	ChengDu     = Region("cn-chengdu")
	HeYuan      = Region("cn-heyuan")
	WuLanChaBu  = Region("cn-wulanchabu")
	GuangZhou   = Region("cn-guangzhou")

	APSouthEast1 = Region("ap-southeast-1")
	APNorthEast1 = Region("ap-northeast-1")
	APSouthEast2 = Region("ap-southeast-2")
	APSouthEast3 = Region("ap-southeast-3")
	APSouthEast5 = Region("ap-southeast-5")

	APSouth1 = Region("ap-south-1")

	USWest1 = Region("us-west-1")
	USEast1 = Region("us-east-1")

	MEEast1 = Region("me-east-1")

	EUCentral1 = Region("eu-central-1")
	EUWest1    = Region("eu-west-1")

	ShenZhenFinance     = Region("cn-shenzhen-finance-1")
	ShanghaiFinance     = Region("cn-shanghai-finance-1")
	ShanghaiFinance1Pub = Region("cn-shanghai-finance-1-pub")
	CnNorth2Gov1        = Region("cn-north-2-gov-1")
)

Constants of region definition

View Source
const (
	ApiVersion20160815 = ApiVersion("2016-08-15")
)
View Source
const COLON_SEPARATED = ":"
View Source
const DefaultClientRetryCountSmall = 5

Variables

This section is empty.

Functions

func BoolPointer added in v0.2.0

func BoolPointer(b bool) *bool

func Error added in v0.2.0

func Error(msg string, args ...interface{}) error

func Int32Pointer added in v0.2.0

func Int32Pointer(i int32) *int32

func Int64Pointer added in v0.2.0

func Int64Pointer(i int64) *int64

func IsExpectedErrors added in v0.2.0

func IsExpectedErrors(err error, expectCodes []string) bool

func ParseResourceId added in v0.2.0

func ParseResourceId(id string, length int) (parts []string, err error)

func Provider

func Provider() *schema.Provider

func StringPointer added in v0.2.0

func StringPointer(s string) *string

func WrapComplexError added in v0.2.0

func WrapComplexError(cause, err error, filepath string, fileline int) error

func WrapError added in v0.2.0

func WrapError(cause error) error

Types

type ApiVersion

type ApiVersion string

type Client

type Client struct {
	// contains filtered or unexported fields
}

type ComplexError added in v0.2.0

type ComplexError struct {
	Cause error
	Err   error
	Path  string
	Line  int
}

func (ComplexError) Error added in v0.2.0

func (e ComplexError) Error() string

type Config

type Config struct {
	AccessKey string
	SecretKey string
	Region    Region
	RegionId  string
	AccountID string
}

func (*Config) Client

func (c *Config) Client() Client

type Region

type Region string

Jump to

Keyboard shortcuts

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