signer

package
v2.2.15+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QingStorSigner

type QingStorSigner struct {
	AccessKeyID     string
	SecretAccessKey string
}

QingStorSigner is the http request signer for QingStor service.

func (*QingStorSigner) BuildQuerySignature

func (qss *QingStorSigner) BuildQuerySignature(request *http.Request, expires int) (string, error)

BuildQuerySignature calculates the signature string for query.

func (*QingStorSigner) BuildQueryStringToSign

func (qss *QingStorSigner) BuildQueryStringToSign(request *http.Request, expires int) (string, error)

BuildQueryStringToSign build the string to sign for query.

func (*QingStorSigner) BuildSignature

func (qss *QingStorSigner) BuildSignature(request *http.Request) (string, error)

BuildSignature calculates the signature string.

func (*QingStorSigner) BuildStringToSign

func (qss *QingStorSigner) BuildStringToSign(request *http.Request) (string, error)

BuildStringToSign build the string to sign.

func (*QingStorSigner) WriteQuerySignature

func (qss *QingStorSigner) WriteQuerySignature(request *http.Request, expires int) error

WriteQuerySignature calculates signature and write it to http request url.

func (*QingStorSigner) WriteSignature

func (qss *QingStorSigner) WriteSignature(request *http.Request) error

WriteSignature calculates signature and write it to http request header.

Jump to

Keyboard shortcuts

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