Files
tasks/common/archiver/s3store/s3iface.go
Rodrigo ZhouandGitHub 0d25c7b273 Upgrade aws-sdk-go from v1 to v2 (#9903)
## What changed?
Upgrade dependency of `aws-sdk-go` from v1 to v2.

Changes mostly made by agent

## Why?
Remove dependency of `aws-sdk-go` v1 which is already deprecated.

## How did you test it?
- [x] built
- [ ] run locally and tested manually
- [x] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)

## Potential risks
2026-04-13 18:39:27 -07:00

17 lines
786 B
Go

package s3store
import (
"context"
"github.com/aws/aws-sdk-go-v2/service/s3"
)
// S3API is the subset of the S3 client API used by the s3store archiver.
type S3API interface {
HeadBucket(ctx context.Context, params *s3.HeadBucketInput, optFns ...func(*s3.Options)) (*s3.HeadBucketOutput, error)
HeadObject(ctx context.Context, params *s3.HeadObjectInput, optFns ...func(*s3.Options)) (*s3.HeadObjectOutput, error)
PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error)
GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
ListObjectsV2(ctx context.Context, params *s3.ListObjectsV2Input, optFns ...func(*s3.Options)) (*s3.ListObjectsV2Output, error)
}