forked from mtusi2026/mtusi2026lab5
Реализация на 5
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user