Documentation ¶
Index ¶
- Constants
- type SyncHandler
- func (h *SyncHandler) CalculateFileListDiff(ctx context.Context, archiveManifest bundle.ArchiveManifest) ([]string, error)
- func (h *SyncHandler) DeleteObjects(ctx context.Context, filesToDelete []string) error
- func (h *SyncHandler) DownloadSourceBundle(ctx context.Context, downloadTargetPath string) error
- func (h *SyncHandler) EmptyBucket(ctx context.Context) error
- func (h *SyncHandler) FetchObjectListFromTarget(ctx context.Context) ([]types.Object, error)
- func (h *SyncHandler) SyncBucket(ctx context.Context) error
- func (h *SyncHandler) UploadFileList(ctx context.Context, fileList []string) error
- func (h *SyncHandler) UploadFileListThreaded(ctx context.Context, fileList []string) error
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 (*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 (*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
Click to show internal directories.
Click to hide internal directories.