Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sign ¶
func Sign(request requests.AcsRequest, signer Signer, regionId string, credentialsProvider credentials.CredentialsProvider) (err error)
func ToCredentialsProvider ¶ added in v1.62.809
func ToCredentialsProvider(credential Credential) (provider credentials.CredentialsProvider, err error)
Types ¶
type Credential ¶
type Credential interface { }
type Signer ¶
type Signer interface { GetName() string GetType() string // GetVersion() string // Deprecated: Use credentials provider instead of GetAccessKeyId() (string, error) // Deprecated: Use credentials provider instead of GetExtraParam() map[string]string // Deprecated: Use credentials provider instead of Sign(stringToSign, secretSuffix string) string }
func NewSignerWithCredential ¶
func NewSignerWithCredential(credential Credential, commonApi func(request *requests.CommonRequest, signer interface{}) (response *responses.CommonResponse, err error)) (signer Signer, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.