Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring API handlers #30

Merged
merged 13 commits into from
Aug 23, 2020
Merged

Refactoring API handlers #30

merged 13 commits into from
Aug 23, 2020

Conversation

im-kulikov
Copy link
Contributor

  • Implement ListObjectsV2 (closes Implement ListObjectsV2 #29)
  • Implement HeadBucket (closes Implement HeadBucket #28)
  • Implement DeleteMultipleObjects (closes Implement DeleteMultipleObjects method #26)
  • Add owner field for ListObjects method
  • Change returned error for GetBucketInfo method
  • Refactoring DeleteObject/DeleteObjects methods
  • Refactoring DeleteObject/DeleteObjects methods
  • Change NotFound error for objectFindID
  • Add Owner field into layer.ObjectInfo
  • Refactoring getAPIErrorResponse method
  • Add custom http headers constants
  • Refactoring WriteErrorResponse method
  • Change MimeTypes constants visibility

Evgeniy Kulikov added 13 commits August 22, 2020 05:32
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
- should receive error instead custom type
- change visibility of WriteResponse method

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
should receive base error type instead of custom errors

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
method should return gRPC status error

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
- methods should return api.DeleteErrors
- DeleteObjects should return only slice of errors
- don't add nil errors

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
- methods should return api.DeleteErrors
- DeleteObjects should return only slice of errors
- don't add nil errors

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
method should returns gRPC status errors

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
closes #26

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
closes #28

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
ListObjectsV1 and ListObjectsV2 now simplified and return different results

closes #29

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
@im-kulikov im-kulikov added the enhancement Improving existing functionality label Aug 22, 2020
@im-kulikov im-kulikov added this to the Pre-public Release milestone Aug 22, 2020
@im-kulikov im-kulikov requested a review from pkorotkov August 22, 2020 02:54
@im-kulikov im-kulikov self-assigned this Aug 22, 2020
@im-kulikov im-kulikov merged commit 488290b into master Aug 23, 2020
@im-kulikov im-kulikov deleted the api-handlers branch August 23, 2020 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement ListObjectsV2 Implement HeadBucket Implement DeleteMultipleObjects method
2 participants