utils

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(storage oss.StorageInterface, from, to string) (err error)

func DeleteObjects

func DeleteObjects(storage oss.StorageInterface, paths []string) (err error)

func Upload

func Upload(storage oss.StorageInterface, path string, reader io.Reader) (err error)

Types

type CopyInterface

type CopyInterface interface {
	Copy(from, to string) (err error)
}

type DeleteObjectsInterface

type DeleteObjectsInterface interface {
	DeleteObjects(paths []string) (err error)
}

type GetBucketInterface

type GetBucketInterface interface {
	GetBucket() string
}

type S3Client

type S3Client struct {
	*s3.Client
}

func NewClient

func NewClient(client *s3.Client) S3Client

func (S3Client) GetBucket

func (this S3Client) GetBucket() string

Jump to

Keyboard shortcuts

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