local

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: Apache-2.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 LocalCosClient

type LocalCosClient interface {
	BucketExists(bucketName string, loc string) error
	CreateBucket(bucketName string, loc string) error
	UploadFile(bucketName, objectName, filePath, contentType string) (minio.UploadInfo, error)
	DownloadFile(bucketName, objectName, filePath string) error
	DeleteFile(bucketName, objectName string) error
	DeleteFiles(bucketName string, objectInfos []minio.ObjectInfo) error
}

func NewLocalCosClient

func NewLocalCosClient(c MinIOConfig) LocalCosClient

type MinIOConfig

type MinIOConfig struct {
	EndPoint        string //对象存储服务的URL
	AccessKeyID     string //Access key是唯一标识你的账户的用户ID。
	SecretAccessKey string //Secret key是你账户的密码。
	UseSSL          bool   //true代表使用HTTPS
}

Jump to

Keyboard shortcuts

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