Documentation ¶
Index ¶
- Constants
- Variables
- func CalculateAuthorization(metadata *RequestMetadata, keyId string, keySecret string) string
- func Date() string
- func GetEndpointUrl() string
- func GetPutObjectUrl(bucket, key string) string
- func ReplaceCallbackSha1(callback, fileSha1 string) string
- type Callback
- type Pair
- type Pairs
- type RequestMetadata
Constants ¶
View Source
const ( HeaderAuthorization = "Authorization" HeaderDate = "Date" HeaderContentLength = "Content-Length" HeaderContentType = "Content-Type" HeaderContentMd5 = "Content-MD5" HeaderOssCallback = "X-OSS-Callback" HeaderOssCallbackVar = "X-OSS-Callback-Var" HeaderOssSecurityToken = "X-OSS-Security-Token" )
View Source
const (
Region = "cn-shenzhen"
)
Variables ¶
View Source
var GMT *time.Location
Functions ¶
func CalculateAuthorization ¶
func CalculateAuthorization(metadata *RequestMetadata, keyId string, keySecret string) string
CalculateAuthorization calculates authorization for OSS request
func GetEndpointUrl ¶ added in v0.3.2
func GetEndpointUrl() string
func GetPutObjectUrl ¶ added in v0.3.2
func ReplaceCallbackSha1 ¶ added in v0.7.5
Types ¶
Click to show internal directories.
Click to hide internal directories.