aliyun

package
v0.0.0-...-9b96405 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HMAC_Sha1

func HMAC_Sha1(key []byte, msg []byte) []byte

Types

type AccessKey

type AccessKey struct {
	AccessKeyID     string
	AccessKeySecret string
	Client          fetcher.Client
}

type Params

type Params map[string]string

func NewParams

func NewParams(AccessKey *AccessKey) Params

func (Params) Sign

func (p Params) Sign(HTTPMethod string, key string) string

func (Params) SignedQuery

func (p Params) SignedQuery(HTTPMethod string, key string) url.Values

func (Params) ToSignParams

func (p Params) ToSignParams() SignParams

func (Params) With

func (p Params) With(name string, value string) Params

func (Params) WithAccessKeyId

func (p Params) WithAccessKeyId(value string) Params

func (Params) WithAction

func (p Params) WithAction(value string) Params

func (Params) WithBool

func (p Params) WithBool(name string, value bool) Params

func (Params) WithInt

func (p Params) WithInt(name string, value int) Params

func (Params) WithNonce

func (p Params) WithNonce() Params

func (Params) WithTimestamp

func (p Params) WithTimestamp(ts int64) Params

func (Params) WithVersion

func (p Params) WithVersion(value string) Params

type SignParam

type SignParam struct {
	Name  string
	Value string
}

type SignParams

type SignParams []*SignParam

func (SignParams) CanonicalizedQueryString

func (sp SignParams) CanonicalizedQueryString() string

func (SignParams) Len

func (sp SignParams) Len() int

Len is the number of elements in the collection.

func (SignParams) Less

func (sp SignParams) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (SignParams) Swap

func (sp SignParams) Swap(i, j int)

Swap swaps the elements with indexes i and j.

func (SignParams) ToSign

func (sp SignParams) ToSign(HTTPMethod string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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