You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate Go v2 S3 examples from deprecated feature/s3/manager to feature/s3/transfermanager
The feature/s3/manager package was deprecated in February 2026 and replaced
by feature/s3/transfermanager. This commit migrates all Go SDK v2 examples
to use the new package.
Key changes:
- Replace manager.NewUploader/NewDownloader with transfermanager.New (unified client)
- Replace uploader.Upload with tmClient.UploadObject (new UploadObjectInput type)
- Replace downloader.Download with tmClient.DownloadObject (new DownloadObjectInput type)
- Replace manager.NewWriteAtBuffer with tmtypes.NewWriteAtBuffer
- Configure PartSize via Options.PartSizeBytes on the client
- Use transfermanager/types.ChecksumAlgorithmSha256 for checksum config
- Update go.mod dependencies from feature/s3/manager to feature/s3/transfermanager
Files modified:
- gov2/s3/actions/bucket_basics.go (UploadLargeObject, DownloadLargeObject)
- gov2/s3/go.mod
- gov2/workflows/s3_object_lock/actions/s3_actions.go (S3Actions struct, UploadObject)
- gov2/workflows/s3_object_lock/actions/s3_actions_test.go
- gov2/workflows/s3_object_lock/workflows/s3_object_lock.go
- gov2/workflows/s3_object_lock/go.mod
0 commit comments