auth

package
v0.3.9-5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SigningKeyCache = map[string][]byte{}

Functions

func Sign

func Sign(request requests.IRequest, signer Signer) (err error)

对request进行签名

Types

type Credential

type Credential interface {
}

type Signer

type Signer interface {
	GetName() string                                 // 签名算法名称
	GetAccessKeyId() (accessKeyId string, err error) // 签名access key
	GetSecretKey() (secretKey string, err error)     // access secret
	Sign(stringToSign, secretSuffix string) string   // 生成签名结果
}

func NewSignerWithCredential

func NewSignerWithCredential(credential Credential) (signer Signer, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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