s3

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	Folders []string `json:"folders"`
	Files   []string `json:"files"`
}

type S3

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

func (*S3) Connect

func (s *S3) Connect(ctx context.Context, st config.S3Settings) error

func (*S3) DownloadFile added in v0.1.1

func (s *S3) DownloadFile(ctx context.Context, key, dir string) error

func (*S3) DownloadFolder added in v0.1.1

func (s *S3) DownloadFolder(ctx context.Context, prefix, dir string) error

func (*S3) List

func (s *S3) List(ctx context.Context, prefix string) (List, error)

func (*S3) UploadFiles

func (s *S3) UploadFiles(ctx context.Context, prefix string, files []string) error

func (*S3) UploadFolder

func (s *S3) UploadFolder(ctx context.Context, prefix string, dir string) error

Jump to

Keyboard shortcuts

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