session: Introduce ObjectPatch verb #100

Merged
fyrchik merged 1 commit from aarifullin/frostfs-api-go:feat/patch/session into master 2024-08-06 12:35:02 +00:00
3 changed files with 5 additions and 0 deletions

View file

@ -641,6 +641,8 @@ func ObjectSessionVerbToGRPCField(v ObjectSessionVerb) session.ObjectSessionCont
return session.ObjectSessionContext_RANGE return session.ObjectSessionContext_RANGE
case ObjectVerbRangeHash: case ObjectVerbRangeHash:
return session.ObjectSessionContext_RANGEHASH return session.ObjectSessionContext_RANGEHASH
case ObjectVerbPatch:
return session.ObjectSessionContext_PATCH
default: default:
return session.ObjectSessionContext_VERB_UNSPECIFIED return session.ObjectSessionContext_VERB_UNSPECIFIED
} }
@ -662,6 +664,8 @@ func ObjectSessionVerbFromGRPCField(v session.ObjectSessionContext_Verb) ObjectS
return ObjectVerbRange return ObjectVerbRange
case session.ObjectSessionContext_RANGEHASH: case session.ObjectSessionContext_RANGEHASH:
return ObjectVerbRangeHash return ObjectVerbRangeHash
case session.ObjectSessionContext_PATCH:
return ObjectVerbPatch
default: default:
return ObjectVerbUnknown return ObjectVerbUnknown
} }

BIN
session/grpc/types.pb.go generated

Binary file not shown.

View file

@ -175,6 +175,7 @@ const (
ObjectVerbDelete ObjectVerbDelete
ObjectVerbRange ObjectVerbRange
ObjectVerbRangeHash ObjectVerbRangeHash
ObjectVerbPatch

Please, follow the naming scheme of other constants -- ObjectVerbPatch.

Please, follow the naming scheme of other constants -- `ObjectVerbPatch`.

Oh, right. Fixed!

Oh, right. Fixed!
) )
func (c *CreateRequestBody) GetOwnerID() *refs.OwnerID { func (c *CreateRequestBody) GetOwnerID() *refs.OwnerID {