[#100] session: Introduce ObjectPatch
verb
All checks were successful
DCO action / DCO (pull_request) Successful in 39s
Tests and linters / Tests (1.19) (pull_request) Successful in 51s
Tests and linters / Tests (1.20) (pull_request) Successful in 52s
Tests and linters / Lint (pull_request) Successful in 1m3s
Tests and linters / Tests with -race (pull_request) Successful in 1m7s
All checks were successful
DCO action / DCO (pull_request) Successful in 39s
Tests and linters / Tests (1.19) (pull_request) Successful in 51s
Tests and linters / Tests (1.20) (pull_request) Successful in 52s
Tests and linters / Lint (pull_request) Successful in 1m3s
Tests and linters / Tests with -race (pull_request) Successful in 1m7s
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
1473fa588f
commit
ebaf78c8fa
3 changed files with 5 additions and 0 deletions
|
@ -641,6 +641,8 @@ func ObjectSessionVerbToGRPCField(v ObjectSessionVerb) session.ObjectSessionCont
|
|||
return session.ObjectSessionContext_RANGE
|
||||
case ObjectVerbRangeHash:
|
||||
return session.ObjectSessionContext_RANGEHASH
|
||||
case ObjectVerbPatch:
|
||||
return session.ObjectSessionContext_PATCH
|
||||
default:
|
||||
return session.ObjectSessionContext_VERB_UNSPECIFIED
|
||||
}
|
||||
|
@ -662,6 +664,8 @@ func ObjectSessionVerbFromGRPCField(v session.ObjectSessionContext_Verb) ObjectS
|
|||
return ObjectVerbRange
|
||||
case session.ObjectSessionContext_RANGEHASH:
|
||||
return ObjectVerbRangeHash
|
||||
case session.ObjectSessionContext_PATCH:
|
||||
return ObjectVerbPatch
|
||||
default:
|
||||
return ObjectVerbUnknown
|
||||
}
|
||||
|
|
BIN
session/grpc/types.pb.go
generated
BIN
session/grpc/types.pb.go
generated
Binary file not shown.
|
@ -175,6 +175,7 @@ const (
|
|||
ObjectVerbDelete
|
||||
ObjectVerbRange
|
||||
ObjectVerbRangeHash
|
||||
ObjectVerbPatch
|
||||
)
|
||||
|
||||
func (c *CreateRequestBody) GetOwnerID() *refs.OwnerID {
|
||||
|
|
Loading…
Reference in a new issue