s3sync

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_KEYS = 1000
View Source
const MAX_ROUTINES = 5

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncHandler

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

func New

func New(cfg aws.Config, targetBucket string, sourceBucket string, sourceKey string) *SyncHandler

func (*SyncHandler) CalculateFileListDiff

func (h *SyncHandler) CalculateFileListDiff(ctx context.Context, archiveManifest bundle.ArchiveManifest) ([]string, error)

func (*SyncHandler) DeleteObjects

func (h *SyncHandler) DeleteObjects(ctx context.Context, filesToDelete []string) error

func (*SyncHandler) DownloadSourceBundle

func (h *SyncHandler) DownloadSourceBundle(ctx context.Context, downloadTargetPath string) error

func (*SyncHandler) EmptyBucket

func (h *SyncHandler) EmptyBucket(ctx context.Context) error

func (*SyncHandler) FetchObjectListFromTarget

func (h *SyncHandler) FetchObjectListFromTarget(ctx context.Context) ([]types.Object, error)

func (*SyncHandler) SyncBucket

func (h *SyncHandler) SyncBucket(ctx context.Context) error

func (*SyncHandler) UploadFileList

func (h *SyncHandler) UploadFileList(ctx context.Context, fileList []string) error

func (*SyncHandler) UploadFileListThreaded

func (h *SyncHandler) UploadFileListThreaded(ctx context.Context, fileList []string) error

Jump to

Keyboard shortcuts

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