[#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
|
@ -48,6 +48,14 @@ func (x *Common) Put() (PutObjectStream, error) {
|
|||
return x.nextHandler.Put()
|
||||
}
|
||||
|
||||
func (x *Common) Patch() (PatchObjectstream, error) {
|
||||
if x.state.IsMaintenance() {
|
||||
return nil, new(apistatus.NodeUnderMaintenance)
|
||||
}
|
||||
|
||||
return x.nextHandler.Patch()
|
||||
}
|
||||
|
||||
func (x *Common) Head(ctx context.Context, req *objectV2.HeadRequest) (*objectV2.HeadResponse, error) {
|
||||
if x.state.IsMaintenance() {
|
||||
return nil, new(apistatus.NodeUnderMaintenance)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue