forked from TrueCloudLab/frostfs-node
[#1307] go.mod: Bump frostfs-sdk-go/frostfs-api-go/v2 versions
* Also, resolve dependencies and conflicts for object service by creating stub for `Patch` method. Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
ec1509de4e
commit
a4a1c3f18b
15 changed files with 345 additions and 11 deletions
|
@ -31,11 +31,18 @@ type PutObjectStream interface {
|
|||
CloseAndRecv(context.Context) (*object.PutResponse, error)
|
||||
}
|
||||
|
||||
// PatchObjectstream is an interface of FrostFS API v2 compatible patch streamer.
|
||||
type PatchObjectstream interface {
|
||||
Send(context.Context, *object.PatchRequest) error
|
||||
CloseAndRecv(context.Context) (*object.PatchResponse, error)
|
||||
}
|
||||
|
||||
// ServiceServer is an interface of utility
|
||||
// serving v2 Object service.
|
||||
type ServiceServer interface {
|
||||
Get(*object.GetRequest, GetObjectStream) error
|
||||
Put() (PutObjectStream, error)
|
||||
Patch() (PatchObjectstream, error)
|
||||
Head(context.Context, *object.HeadRequest) (*object.HeadResponse, error)
|
||||
Search(*object.SearchRequest, SearchStream) error
|
||||
Delete(context.Context, *object.DeleteRequest) (*object.DeleteResponse, error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue