wasabi

package
v1.8.95 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3

type S3 interface {
	PutFile(localPath, remotePath string) error
	GetFile(remotePath, localPath string) error
	DelFile(remotePath string) error
	GetBucketName() string
	GetRegion() string
	GetEndpoint() string
	GetAccessKey() string
	GetSecretKey() string
}

type StorageHandler

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

StorageHandler 结构体,用于操作 Wasabi S3 存储

func NewWasabiHandler

func NewWasabiHandler(bucketName, region, endpoint, accessKey, secretKey string) *StorageHandler

NewWasabiHandler 创建一个新的 StorageHandler 实例,并初始化配置信息

Jump to

Keyboard shortcuts

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