Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StsGetCredentialPolicy ¶
type StsGetCredentialPolicy struct { Version string Statement []StsGetCredentialPolicyStatement }
type StsGetCredentialResponse ¶
type StsGetCredentialResponse struct { ErrCode int32 `json:"errcode"` ErrMsg string `json:"errmsg"` TmpSecretID string `json:"TmpSecretId"` TmpSecretKey string `json:"TmpSecretKey"` SessionToken string `json:"Token"` Expiration int64 `json:"expiration"` }
func StsGetCredential ¶
func StsGetCredential(accessKeyId string, accessKeySecret string, ossRamRoleArn string, bucket string, region string) (*StsGetCredentialResponse, error)
获取临时密钥 参考 sdk源码 https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/services/sts/client.go 参考 小程序 https://help.aliyun.com/document_detail/92883.html?spm=a2c4g.31923.0.0 参考 创建子用户,创建角色,角色添加权限 https://help.aliyun.com/document_detail/100624.html
Click to show internal directories.
Click to hide internal directories.