s3

package
v0.0.0-...-b6b237c Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3

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

func CreateS3Client

func CreateS3Client(endpoint string, region string, accessKey string, secretAccessKey string, secure bool, insecureSkipVerify bool, bucketName string, storageDir string) (*S3, error)

func (*S3) FileExists

func (s3 *S3) FileExists(filepath string) bool

func (*S3) GetFile

func (s3 *S3) GetFile(filepath string) (*[]byte, error)

func (*S3) ListDirectory

func (s3 *S3) ListDirectory(directory string) ([]string, error)

func (*S3) RemoveDirectory

func (s3 *S3) RemoveDirectory(directory string) error

func (*S3) RemoveFile

func (s3 *S3) RemoveFile(filepath string) error

func (*S3) Upload

func (s3 *S3) Upload(path string, filename string, size int64) (int64, int64, error)

Jump to

Keyboard shortcuts

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