tencent_cos

package
v0.0.0-...-750a8a5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

@Description TODO @Author jiangyang @Created 2021/2/5 2:27 下午

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BucketUrl string `json:"bucket_url" yaml:"bucket_url" mapstructure:"bucket_url"`
	SecretId  string `json:"secret_id" yaml:"secret_id" mapstructure:"secret_id"`
	SecretKey string `json:"secret_key" yaml:"secret_key" mapstructure:"secret_key"`
}

type TencentCos

type TencentCos struct {
	*cos.Client
}

func NewClient

func NewClient(cfg Config) *TencentCos

func (*TencentCos) DeleteLifecycle

func (t *TencentCos) DeleteLifecycle()

删除生命周期 (临时)

func (*TencentCos) Get

func (t *TencentCos) Get(prefix string) error

func (*TencentCos) InsertLifecycle

func (t *TencentCos) InsertLifecycle()

写入生命周期 (临时)

Jump to

Keyboard shortcuts

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