file_store

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAliyunOssClient

func GetAliyunOssClient() *oss.Client

func GetTencentCosClient

func GetTencentCosClient() *cos.Client

Types

type AliyunOssClient

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

func NewAliyunOss

func NewAliyunOss(client *oss.Client, endpoint, accessId, accessSecret, bucket string) *AliyunOssClient

func (*AliyunOssClient) Check

func (m *AliyunOssClient) Check() bool

func (*AliyunOssClient) Close

func (m *AliyunOssClient) Close()

func (*AliyunOssClient) GetClient

func (m *AliyunOssClient) GetClient() interface{}

GetClient 暴露原生client

func (*AliyunOssClient) String

func (m *AliyunOssClient) String() string

func (*AliyunOssClient) Upload added in v1.4.0

func (m *AliyunOssClient) Upload(ctx context.Context, name, fileLocation string) (string, error)

type TencentCosClient

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

func NewTencentCos

func NewTencentCos(client *cos.Client, base *cos.BaseURL, transport *cos.AuthorizationTransport) *TencentCosClient

func (*TencentCosClient) Check

func (rc *TencentCosClient) Check() bool

func (*TencentCosClient) Close

func (rc *TencentCosClient) Close()

func (*TencentCosClient) GetClient

func (rc *TencentCosClient) GetClient() interface{}

GetClient 暴露原生client

func (*TencentCosClient) String

func (rc *TencentCosClient) String() string

func (*TencentCosClient) Upload added in v1.4.0

func (rc *TencentCosClient) Upload(ctx context.Context, name, fileLocation string) (string, error)

Jump to

Keyboard shortcuts

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