aliapi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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 StsGetCredentialPolicyStatement

type StsGetCredentialPolicyStatement struct {
	Action   []string
	Effect   string
	Resource []string
}

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

Jump to

Keyboard shortcuts

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