uploader

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UPLOADER_MAX_PARTS_UPLOAD_KEY        = "UPLOADER_MAX_PARTS_UPLOAD"
	UPLOADER_MULTIPART_SIZE_KEY          = "UPLOADER_MULTIPART_SIZE"
	UPLOADER_MAX_MPU_RETRIES_KEY         = "UPLOADER_MAX_MPU_RETRIES"
	UPLOADER_MAX_PART_UPLOAD_RETRIES_KEY = "UPLOADER_MAX_PART_UPLOAD_RETRIES"
)

Variables

View Source
var (
	ErrSkippedOperation = errors.New("skipped operation")
)

Functions

This section is empty.

Types

type ProgressConfig

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

func NewProgressConfig

func NewProgressConfig(progress *mpb.Progress, descriptor string) ProgressConfig

func (*ProgressConfig) GetPrefix

func (p *ProgressConfig) GetPrefix() string

type Uploader

type Uploader interface {
	UploadObject(ctx context.Context, objectPath, bucket, key string, p ProgressConfig) error
}

func NewS3Uploader

func NewS3Uploader(client *s3.Client) Uploader

Jump to

Keyboard shortcuts

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