signers

package
v0.0.0-...-66ec9f1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sha256WithRsa

func Sha256WithRsa(source, secret string) string

func ShaHmac1

func ShaHmac1(source, secret string) string

Types

type AccessKeySigner

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

func NewAccessKeySigner

func NewAccessKeySigner(credential *credentials.AccessKeyCredential) *AccessKeySigner

func (*AccessKeySigner) GetAccessKeyId

func (signer *AccessKeySigner) GetAccessKeyId() (accessKeyId string, err error)

func (*AccessKeySigner) GetExtraParam

func (signer *AccessKeySigner) GetExtraParam() map[string]string

func (*AccessKeySigner) GetName

func (*AccessKeySigner) GetName() string

func (*AccessKeySigner) GetType

func (*AccessKeySigner) GetType() string

func (*AccessKeySigner) GetVersion

func (*AccessKeySigner) GetVersion() string

func (*AccessKeySigner) Sign

func (signer *AccessKeySigner) Sign(stringToSign, secretSuffix string) string

type BearerTokenSigner

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

func NewBearerTokenSigner

func NewBearerTokenSigner(credential *credentials.BearerTokenCredential) *BearerTokenSigner

func (*BearerTokenSigner) GetAccessKeyId

func (signer *BearerTokenSigner) GetAccessKeyId() (accessKeyId string, err error)

func (*BearerTokenSigner) GetExtraParam

func (signer *BearerTokenSigner) GetExtraParam() map[string]string

func (*BearerTokenSigner) GetName

func (*BearerTokenSigner) GetName() string

func (*BearerTokenSigner) GetType

func (*BearerTokenSigner) GetType() string

func (*BearerTokenSigner) GetVersion

func (*BearerTokenSigner) GetVersion() string

func (*BearerTokenSigner) Sign

func (signer *BearerTokenSigner) Sign(stringToSign, secretSuffix string) string

type EcsRamRoleSigner

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

func NewEcsRamRoleSigner

func NewEcsRamRoleSigner(credential *credentials.EcsRamRoleCredential, commonApi func(*requests.CommonRequest, interface{}) (response *responses.CommonResponse, err error)) (signer *EcsRamRoleSigner)

func (*EcsRamRoleSigner) GetAccessKeyId

func (signer *EcsRamRoleSigner) GetAccessKeyId() (accessKeyId string, err error)

func (*EcsRamRoleSigner) GetExtraParam

func (signer *EcsRamRoleSigner) GetExtraParam() map[string]string

func (*EcsRamRoleSigner) GetName

func (*EcsRamRoleSigner) GetName() string

func (*EcsRamRoleSigner) GetSessionCredential

func (signer *EcsRamRoleSigner) GetSessionCredential() *SessionCredential

func (*EcsRamRoleSigner) GetType

func (*EcsRamRoleSigner) GetType() string

func (*EcsRamRoleSigner) GetVersion

func (*EcsRamRoleSigner) GetVersion() string

func (*EcsRamRoleSigner) Sign

func (signer *EcsRamRoleSigner) Sign(stringToSign, secretSuffix string) string

type RamRoleArnSigner

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

func NewRamRoleArnSigner

func NewRamRoleArnSigner(credential *credentials.RamRoleArnCredential, commonApi func(request *requests.CommonRequest, signer interface{}) (response *responses.CommonResponse, err error)) (signer *RamRoleArnSigner, err error)

func (*RamRoleArnSigner) GetAccessKeyId

func (signer *RamRoleArnSigner) GetAccessKeyId() (accessKeyId string, err error)

func (*RamRoleArnSigner) GetExtraParam

func (signer *RamRoleArnSigner) GetExtraParam() map[string]string

func (*RamRoleArnSigner) GetName

func (*RamRoleArnSigner) GetName() string

func (*RamRoleArnSigner) GetSessionCredential

func (signer *RamRoleArnSigner) GetSessionCredential() *SessionCredential

func (*RamRoleArnSigner) GetType

func (*RamRoleArnSigner) GetType() string

func (*RamRoleArnSigner) GetVersion

func (*RamRoleArnSigner) GetVersion() string

func (*RamRoleArnSigner) Sign

func (signer *RamRoleArnSigner) Sign(stringToSign, secretSuffix string) string

type SessionCredential

type SessionCredential struct {
	AccessKeyId     string
	AccessKeySecret string
	StsToken        string
}

type SignerKeyPair

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

func NewSignerKeyPair

func NewSignerKeyPair(credential *credentials.RsaKeyPairCredential, commonApi func(*requests.CommonRequest, interface{}) (response *responses.CommonResponse, err error)) (signer *SignerKeyPair, err error)

func (*SignerKeyPair) GetAccessKeyId

func (signer *SignerKeyPair) GetAccessKeyId() (accessKeyId string, err error)

func (*SignerKeyPair) GetExtraParam

func (signer *SignerKeyPair) GetExtraParam() map[string]string

func (*SignerKeyPair) GetName

func (*SignerKeyPair) GetName() string

func (*SignerKeyPair) GetType

func (*SignerKeyPair) GetType() string

func (*SignerKeyPair) GetVersion

func (*SignerKeyPair) GetVersion() string

func (*SignerKeyPair) Sign

func (signer *SignerKeyPair) Sign(stringToSign, secretSuffix string) string

type SignerV2

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

func NewSignerV2

func NewSignerV2(credential *credentials.RsaKeyPairCredential) *SignerV2

func (*SignerV2) GetAccessKeyId

func (signer *SignerV2) GetAccessKeyId() (accessKeyId string, err error)

func (*SignerV2) GetExtraParam

func (signer *SignerV2) GetExtraParam() map[string]string

func (*SignerV2) GetName

func (*SignerV2) GetName() string

func (*SignerV2) GetType

func (*SignerV2) GetType() string

func (*SignerV2) GetVersion

func (*SignerV2) GetVersion() string

func (*SignerV2) Sign

func (signer *SignerV2) Sign(stringToSign, secretSuffix string) string

type StsTokenSigner

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

func NewStsTokenSigner

func NewStsTokenSigner(credential *credentials.StsTokenCredential) *StsTokenSigner

func (*StsTokenSigner) GetAccessKeyId

func (signer *StsTokenSigner) GetAccessKeyId() (accessKeyId string, err error)

func (*StsTokenSigner) GetExtraParam

func (signer *StsTokenSigner) GetExtraParam() map[string]string

func (*StsTokenSigner) GetName

func (*StsTokenSigner) GetName() string

func (*StsTokenSigner) GetType

func (*StsTokenSigner) GetType() string

func (*StsTokenSigner) GetVersion

func (*StsTokenSigner) GetVersion() string

func (*StsTokenSigner) Sign

func (signer *StsTokenSigner) Sign(stringToSign, secretSuffix string) string

Jump to

Keyboard shortcuts

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