tencentcloud

package
v0.0.0-...-be1e383 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientNotExist     = errors.New("specific client not exist")
	ErrNotSpecifyEndPoint = errors.New("not specify endpoint in metadata")
)

Functions

func NewTencentCloudOSS

func NewTencentCloudOSS() file.File

Types

type OssMetadata

type OssMetadata struct {
	Endpoint        string `json:"endpoint"`        // bucket url https://console.cloud.tencent.com/cos/bucket
	AccessKeyID     string `json:"accessKeyID"`     // SecretID https://console.cloud.tencent.com/cam/capi
	AccessKeySecret string `json:"accessKeySecret"` // SecretKey
	Timeout         int    `json:"timeout"`         // timeout in milliseconds
	// contains filtered or unexported fields
}

type TencentCloudOSS

type TencentCloudOSS struct {
	// contains filtered or unexported fields
}

func (*TencentCloudOSS) Del

func (*TencentCloudOSS) Get

func (*TencentCloudOSS) Init

func (t *TencentCloudOSS) Init(ctx context.Context, metadata *file.FileConfig) error

Init does metadata parsing and connection creation

func (*TencentCloudOSS) List

func (*TencentCloudOSS) Put

func (*TencentCloudOSS) Stat

Jump to

Keyboard shortcuts

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