utils

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ContentMD5  = "Content-MD5"
	ContentType = "Content-Type"
	Date        = "Date"
	PREFIX      = "x-odps-"
)

Variables

View Source
var GMT, _ = time.LoadLocation("GMT")

Functions

func BuildCanonicalString

func BuildCanonicalString(method string, resource string, params map[string]string, headers map[string]string) (result string)

BuildCanonicalString 构建规范字符串

func GetApiTimestamp

func GetApiTimestamp() (result string)

GetApiTimestamp 获取格式为 'Fri, 13 Dec 2024 02:57:00 GMT' 的时间戳

func GetSignature

func GetSignature(strToSign string, accessKeyId string, accessKeySecret string) (result string)

GetSignature 获取签名

Types

This section is empty.

Jump to

Keyboard shortcuts

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