Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssumeRoleResp ¶
type AssumeRoleResp struct { RequestId string `json:"RequestId" xml:"RequestId"` Credentials Credentials `json:"Credentials" xml:"Credentials"` AssumedRoleUser AssumedRoleUser `json:"AssumedRoleUser" xml:"AssumedRoleUser"` }
type AssumedRoleUser ¶
type AssumedRoleUser struct { AssumedRoleId string `json:"AssumedRoleId" xml:"AssumedRoleId"` Arn string `json:"Arn" xml:"Arn"` }
AssumedRoleUser is a nested struct in sts response
type Credentials ¶
type Credentials struct { AccessKeySecret string `json:"AccessKeySecret" xml:"AccessKeySecret"` Expiration string `json:"Expiration" xml:"Expiration"` AccessKeyId string `json:"AccessKeyId" xml:"AccessKeyId"` SecurityToken string `json:"SecurityToken" xml:"SecurityToken"` }
Credentials is a nested struct in sts response
type Oss ¶
type Oss interface { Config() *Config AssumeRole() (*AssumeRoleResp, error) Upload(string, io.Reader, int64) (url, uri string, err error) InitiateMultipartUpload(key string) (uploadId string, err error) UploadPart(key, uploadId string, body io.Reader, partNumber int32, offset, partSize int64) (ETag string, err error) CompleteMultipartUpload(key, uploadId string, parts []Part) (url, uri string, err error) AbortMultipartUpload(key, uploadId string) error GetHost() string }
Click to show internal directories.
Click to hide internal directories.