file

package
v2.36.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudStorage

type CloudStorage interface {
	Upload(ctx context.Context, bucketName string, byte []byte, objectName string) error
	Download(ctx context.Context, bucketName, objectName, destination string) error
}

func NewCloudStorage

func NewCloudStorage(conf *CloudStorageConf) (CloudStorage, error)

type CloudStorageConf

type CloudStorageConf struct {
	StorageEndpoint        string
	AccessKeyID            string
	SecretAccessKey        string
	UseSSL                 bool
	UploadContextTimeout   time.Duration
	DownloadContextTimeout time.Duration
}

Jump to

Keyboard shortcuts

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