s3

package
v0.0.0-...-847fb65 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: AGPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Module

type S3Module struct {
	S3Configs map[string]config.S3Config
}

func (*S3Module) Name

func (module *S3Module) Name() string

func (*S3Module) Setup

func (module *S3Module) Setup()

func (*S3Module) Start

func (module *S3Module) Start() error

func (*S3Module) Stop

func (module *S3Module) Stop() error

type S3Uploader

type S3Uploader struct {
	S3Config *config.S3Config
	// contains filtered or unexported fields
}

func NewS3Uploader

func NewS3Uploader(cfg *config.S3Config) (*S3Uploader, error)

func (*S3Uploader) AsyncUpload

func (uploader *S3Uploader) AsyncUpload(filePath, location, bucketName, objectName string) error

func (*S3Uploader) SyncDownload

func (uploader *S3Uploader) SyncDownload(filePath, location, bucketName, objectName string) (bool, error)

func (*S3Uploader) SyncUpload

func (uploader *S3Uploader) SyncUpload(filePath, location, bucketName, objectName string) (bool, error)

Jump to

Keyboard shortcuts

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