file_store

package
v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAliyunFileClient added in v1.4.11

func GetAliyunFileClient() *oss.Client

func GetHuaweiFileClient added in v1.4.11

func GetHuaweiFileClient() *obs.ObsClient

func GetTencentFileClient added in v1.4.11

func GetTencentFileClient() *cos.Client

Types

type AliyunFileClient added in v1.4.11

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

func NewAliyunFile added in v1.4.11

func NewAliyunFile(client *oss.Client, accessId, accessSecret, bucket, endpoint string) *AliyunFileClient

func (*AliyunFileClient) Check added in v1.4.11

func (m *AliyunFileClient) Check() bool

func (*AliyunFileClient) Close added in v1.4.11

func (m *AliyunFileClient) Close()

func (*AliyunFileClient) GetClient added in v1.4.11

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

GetClient 暴露原生client

func (*AliyunFileClient) String added in v1.4.11

func (m *AliyunFileClient) String() string

func (*AliyunFileClient) Upload added in v1.4.11

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

type HuaweiFileClient added in v1.4.11

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

func NewHuaweiFile added in v1.4.11

func NewHuaweiFile(client *obs.ObsClient, accessKey, secretKey, bucket, endpoint string) *HuaweiFileClient

func (*HuaweiFileClient) Check added in v1.4.11

func (rc *HuaweiFileClient) Check() bool

func (*HuaweiFileClient) Close added in v1.4.11

func (rc *HuaweiFileClient) Close()

func (*HuaweiFileClient) GetClient added in v1.4.11

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

GetClient 暴露原生client

func (*HuaweiFileClient) String added in v1.4.11

func (rc *HuaweiFileClient) String() string

func (*HuaweiFileClient) Upload added in v1.4.11

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

type TencentFileClient added in v1.4.11

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

func NewTencentFile added in v1.4.11

func NewTencentFile(client *cos.Client, accessKey, secretKey, cosUrl, ciUrl string) *TencentFileClient

func (*TencentFileClient) Check added in v1.4.11

func (rc *TencentFileClient) Check() bool

func (*TencentFileClient) Close added in v1.4.11

func (rc *TencentFileClient) Close()

func (*TencentFileClient) GetClient added in v1.4.11

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

GetClient 暴露原生client

func (*TencentFileClient) String added in v1.4.11

func (rc *TencentFileClient) String() string

func (*TencentFileClient) Upload added in v1.4.11

func (rc *TencentFileClient) 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