Documentation ¶
Index ¶
- func HMAC_Sha1(key []byte, msg []byte) []byte
- type AccessKey
- type Params
- func (p Params) Sign(HTTPMethod string, key string) string
- func (p Params) SignedQuery(HTTPMethod string, key string) url.Values
- func (p Params) ToSignParams() SignParams
- func (p Params) With(name string, value string) Params
- func (p Params) WithAccessKeyId(value string) Params
- func (p Params) WithAction(value string) Params
- func (p Params) WithBool(name string, value bool) Params
- func (p Params) WithInt(name string, value int) Params
- func (p Params) WithNonce() Params
- func (p Params) WithTimestamp(ts int64) Params
- func (p Params) WithVersion(value string) Params
- type SignParam
- type SignParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Params ¶
func (Params) ToSignParams ¶
func (p Params) ToSignParams() SignParams
func (Params) WithAccessKeyId ¶
func (Params) WithAction ¶
func (Params) WithTimestamp ¶
func (Params) WithVersion ¶
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
Click to show internal directories.
Click to hide internal directories.