Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.
/ cos-go-sdk-v5 Public archive

Tencent cloud object storage service client 5.0 xml version __腾讯cos-go-sdk-v5__

Notifications You must be signed in to change notification settings

nelsonken/cos-go-sdk-v5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cos-go-sdk-v5

腾讯云 对象储存(cos) API5.0 golang sdk


安装使用


安装

go get -u github.com/nelsonken/cos-go-sdk-v5/cos

使用

package main

import "github.com/nelsonken/cos-go-sdk-v5/cos"

client := cos.New(&cos.Option{})
client.Bucket(name).PutObject(...)

功能概述

bucket所有功能完备(生命周期,跨域除外);object的操作(完备):增、删、查、改、下载、复制;


bucket


  • 列出bucket列表
  • 创建bucket
  • 删除bucket
  • 设置bucket ACL
  • 列出bucket内容
  • bucket是否存在
  • 列出正在上传的obj
  • ACL设置
  • CORS 跨域
  • lifcycle设置

object


  • 普通上传
  • 多线程分片上传(整合分片上传)
  • 删除
  • 下载
  • 复制
  • 初始化分片上传
  • 上传分片
  • 列出正在上传分片
  • 完成分片上传
  • 放弃上传

About

Tencent cloud object storage service client 5.0 xml version __腾讯cos-go-sdk-v5__

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published