Documentation ¶
Index ¶
- func Sha256WithRsa(source, secret string) stringdeprecated
- func ShaHmac1(source, secret string) stringdeprecated
- type AccessKeySigner
- func (signer *AccessKeySigner) GetAccessKeyId() (accessKeyId string, err error)
- func (signer *AccessKeySigner) GetExtraParam() map[string]string
- func (*AccessKeySigner) GetName() string
- func (*AccessKeySigner) GetType() string
- func (*AccessKeySigner) GetVersion() string
- func (signer *AccessKeySigner) Sign(stringToSign, secretSuffix string) string
- type BearerTokenSigner
- func (signer *BearerTokenSigner) GetAccessKeyId() (accessKeyId string, err error)
- func (signer *BearerTokenSigner) GetExtraParam() map[string]string
- func (*BearerTokenSigner) GetName() string
- func (*BearerTokenSigner) GetType() string
- func (*BearerTokenSigner) GetVersion() string
- func (signer *BearerTokenSigner) Sign(stringToSign, secretSuffix string) string
- type EcsRamRoleSigner
- func (signer *EcsRamRoleSigner) GetAccessKeyId() (accessKeyId string, err error)
- func (signer *EcsRamRoleSigner) GetExtraParam() map[string]string
- func (*EcsRamRoleSigner) GetName() string
- func (signer *EcsRamRoleSigner) GetSessionCredential() *SessionCredential
- func (*EcsRamRoleSigner) GetType() string
- func (*EcsRamRoleSigner) GetVersion() string
- func (signer *EcsRamRoleSigner) Sign(stringToSign, secretSuffix string) string
- type RamRoleArnSigner
- func (signer *RamRoleArnSigner) GetAccessKeyId() (accessKeyId string, err error)
- func (signer *RamRoleArnSigner) GetExtraParam() map[string]string
- func (*RamRoleArnSigner) GetName() string
- func (signer *RamRoleArnSigner) GetSessionCredential() *SessionCredential
- func (*RamRoleArnSigner) GetType() string
- func (*RamRoleArnSigner) GetVersion() string
- func (signer *RamRoleArnSigner) Sign(stringToSign, secretSuffix string) string
- type SessionCredential
- type SignerKeyPairdeprecated
- func (signer *SignerKeyPair) GetAccessKeyId() (accessKeyId string, err error)
- func (signer *SignerKeyPair) GetExtraParam() map[string]string
- func (*SignerKeyPair) GetName() string
- func (*SignerKeyPair) GetType() string
- func (*SignerKeyPair) GetVersion() string
- func (signer *SignerKeyPair) Sign(stringToSign, secretSuffix string) string
- type SignerV2
- func (signer *SignerV2) GetAccessKeyId() (accessKeyId string, err error)
- func (signer *SignerV2) GetExtraParam() map[string]string
- func (*SignerV2) GetName() string
- func (*SignerV2) GetType() string
- func (*SignerV2) GetVersion() string
- func (signer *SignerV2) Sign(stringToSign, secretSuffix string) string
- type StsTokenSigner
- func (signer *StsTokenSigner) GetAccessKeyId() (accessKeyId string, err error)
- func (signer *StsTokenSigner) GetExtraParam() map[string]string
- func (*StsTokenSigner) GetName() string
- func (*StsTokenSigner) GetType() string
- func (*StsTokenSigner) GetVersion() string
- func (signer *StsTokenSigner) Sign(stringToSign, secretSuffix string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sha256WithRsa
deprecated
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 SignerKeyPair
deprecated
type SignerKeyPair struct {
// contains filtered or unexported fields
}
Deprecated: RSA key pair is deprecated
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 (*SignerV2) GetExtraParam ¶
func (*SignerV2) GetVersion ¶
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
Click to show internal directories.
Click to hide internal directories.