Реализация на 5

This commit is contained in:
Grbisba
2026-11-13 12:48:18 +03:00
parent ce035c8528
commit 2198368a44
60 changed files with 3253 additions and 181 deletions
+8
View File
@@ -67,3 +67,11 @@ func Missing(err error) bool {
var api smithy.APIError
return errors.As(err, &api) && (api.ErrorCode() == "NoSuchKey" || api.ErrorCode() == "NotFound" || api.ErrorCode() == "404")
}
func (s *Store) List(ctx context.Context, token string) (*s3.ListObjectsV2Output, error) {
q := &s3.ListObjectsV2Input{Bucket: &s.Bucket, MaxKeys: aws.Int32(100)}
if token != "" {
q.ContinuationToken = &token
}
return s.Client.ListObjectsV2(ctx, q)
}