tencentcos

package
v0.0.0-...-1e20926 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var URI = "web.file.myqcloud.com"

URI 文件云服务器域名

Functions

This section is empty.

Types

type COS

type COS struct {
	AppID     string
	SecretID  string
	SecretKey string
	Bucket    string
}

COS ... 参考链接:https://www.qcloud.com/doc/api/264/3627

func (*COS) DeleteObject

func (cos *COS) DeleteObject(object string) (statusCode int, err error)

DeleteObject 删除文件

func (*COS) PutObject

func (cos *COS) PutObject(object string, data []byte) (statusCode int, err error)

PutObject 创建文件

Jump to

Keyboard shortcuts

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