Refactoring DeleteObject/DeleteObjects methods

- 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>
This commit is contained in:
Evgeniy Kulikov 2020-08-22 05:42:27 +03:00
parent 960aa02bd3
commit 8eff7d4dd3

View file

@ -69,7 +69,7 @@ type (
ListObjects(ctx context.Context, p *ListObjectsParams) (*ListObjectsInfo, error)
DeleteObject(ctx context.Context, bucket, object string) error
DeleteObjects(ctx context.Context, bucket string, objects []string) ([]error, error)
DeleteObjects(ctx context.Context, bucket string, objects []string) []error
}
)