Leonard Lyubich
c2ab4398d5
Update *.pb.go files and changelog for v1.27.0 release
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-06-03 16:58:38 +03:00
Leonard Lyubich
9eb567a53a
[ #283 ] v2/session: Support ContainerSessionContext message
...
Define `ContainerSessionContext` structure, implement getters / setters,
JSON and binary encoders, gRPC converters. Support new type of context in
SessionTokenBody message. Add test message generator and cover methods with
unit tests.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-26 12:24:58 +03:00
Leonard Lyubich
f2be7509d3
[ #283 ] v2/session/grpc: Implement setters on container session messages
...
Implement `SessionToken_Body.SetContainerSessionContext` method. Implement
field setters on `ContainerSessionContext`.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-26 12:24:58 +03:00
Leonard Lyubich
8d60b2cdd5
[ #283 ] v2/session/grpc: Fix docs of ObjectSessionContext methods
...
Fix docs of `SetVerb` and `SetAddress` methods of `ObjectSessionContext`.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-26 12:24:58 +03:00
Leonard Lyubich
af2a9d0851
[ #283 ] v2/grpc: Compile source files with container session context
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-05-26 12:24:58 +03:00
Evgenii Stratonikov
9ddfcdfbba
[ #277 ] go.mod: remove pkg/errors
...
Use stdlib `errors` instead.
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-05-19 11:14:56 +03:00
Leonard Lyubich
1031f3122e
[ #263 ] v2: Support new rpc library
...
Implement `message.Message` interface on all structures and use new methods
for conversion instead of functions. make `Unmarshal` and JSON methods to
use encoding functions from `message` library. Remove all per-service
clients and implement `rpc` library of the functions which execute NeoFS API
RPC through new RPC client. Remove no longer used gRPC per-service clients.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-03-17 14:03:49 +03:00
Alex Vanin
471c7e0df9
v2: Regenerate protobuf files
...
Protobuf definition has updated import path for C#
library and new well-known object K-V header.
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-03-15 13:27:28 +03:00
Leonard Lyubich
d0d2f8d5db
[ #259 ] netmap: Define NetworkInfo RPC and all related messages
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-02-19 16:25:53 +03:00
Leonard Lyubich
f8018f9c3d
[ #241 ] v2/session: Define keys of the well-known X-headers
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2021-01-11 18:43:42 +03:00
Leonard Lyubich
2f3e5742d3
[ #226 ] v2/grpc: Re-compile protobuf definitions
...
Add compiled tombstone message. Extend Object.DeleteResponse.Body with
tombstone address field.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-12-10 18:26:23 +03:00
Alex Vanin
d441193952
[ #209 ] v2/object: Recompile GRPC files and add SplitID setter
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-11-26 11:56:30 +03:00
Leonard Lyubich
6456fcf8fa
[ #168 ] session: Implement binary/JSON encoders/decoders on ResponseVerify
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-13 18:07:26 +03:00
Leonard Lyubich
edf6ec05b3
[ #168 ] session: Implement binary/JSON encoders/decoders on ResponseMeta
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-13 18:07:26 +03:00
Leonard Lyubich
986bc1b0ea
[ #168 ] session: Implement binary/JSON encoders/decoders on RequestVerify
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-13 18:07:26 +03:00
Leonard Lyubich
8f8e977a3e
[ #168 ] session: Implement binary/JSON encoders/decoders on RequestMeta
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-13 18:07:26 +03:00
Leonard Lyubich
7e3e9e1cba
[ #168 ] session: Implement binary/JSON encoders/decoders on XHeader
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-13 18:07:26 +03:00
Leonard Lyubich
85d4713348
[ #168 ] session: Implement binary/JSON encoders/decoders on SessionToken
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-13 18:07:26 +03:00
Leonard Lyubich
4e163617d1
[ #168 ] session: Implement binary/JSON encoders/decoders on TokenBody
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-13 18:07:26 +03:00
Leonard Lyubich
20bf21e5e4
[ #168 ] session: Implement binary/JSON encoders/decoders on TokenLifetime
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-13 18:07:26 +03:00
Leonard Lyubich
86351a8f90
[ #168 ] session: Implement binary/JSON encoders/decoders on SessionContext
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-13 18:07:26 +03:00
Alex Vanin
ef31dec43a
[ #191 ] Recompile latest neofs-api repository
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-11-11 10:35:34 +03:00
Leonard Lyubich
dc9fcd5d98
[ #182 ] Rename methods to match updated field names
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-10-28 14:11:49 +03:00
Leonard Lyubich
5be034ab80
[ #182 ] Regenerate proto-compiled files
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-10-28 14:11:49 +03:00
Alex Vanin
8351c78f58
[ #172 ] Use protobuf v2 API for go
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-10-20 13:45:14 +03:00
Alex Vanin
80b7033606
[ #172 ] Update neofs-api with rich docs and JSON attributes
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-10-20 13:45:14 +03:00
Alex Vanin
182a3af9b8
[ #139 ] v2/acl: Rename TargetInfo to Target
...
Corresponds with proto definition.
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:45:11 +03:00
Alex Vanin
7a6c5eac1e
[ #134 ] v2/acl: Update unified structures
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:45:11 +03:00
Alex Vanin
86d56086e3
Rename unified client constructors
...
Client constructor `New` will be used as `package.New()`
in external packages. This definition is not very clear
since it can create new structure or new client or whatever.
`package.NewClient()` is quite unambiguous.
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:45:08 +03:00
Leonard Lyubich
55a6509e8f
v2: Define API service interfaces
...
Define interfaces that reflect service (Accounting, Container, Session)
declarations in the API.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:44:39 +03:00
Alex Vanin
ae1c1a351c
Fix unified client tests
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:44:33 +03:00
Alex Vanin
07f25bd012
Merge session and service packages into session package
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:44:28 +03:00
Alex Vanin
556be90818
Recompile proto files with neofs-api jindo-rc-1
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:44:06 +03:00
Leonard Lyubich
e046e3fd04
v2/session: Cover universal client with unit test
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:43:49 +03:00
Leonard Lyubich
c62cd5c5a9
v2/session: Add universal client
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:43:47 +03:00
Leonard Lyubich
8f48c9c2f7
v2/session: Implement thin NeoFS gRPC client
...
Define thin wrapper over the generated gRPC Accounting service client to
fix some of its options.
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:43:44 +03:00
Alex Vanin
c94cb44b58
Update neofs-api to latest jindo version
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:43:07 +03:00
Alex Vanin
1592151621
Add stable marshal for session package
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:43:01 +03:00
Leonard Lyubich
e5faf622df
v2/session: Implement session uni-structures
...
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:42:19 +03:00
Alex Vanin
60e9c3d0d3
Update structure with grpc subdir
...
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:40:48 +03:00
Alex Vanin
8aca8c5787
Update proto files from latest jindo
2020-09-18 10:40:36 +03:00
Alex Vanin
12e7b5f16b
Remove proto files from the repo
2020-09-18 10:40:28 +03:00
Alex Vanin
1f143e54bd
Move api-v2 files into v2 subdir
...
This subdir contains generated proto files
and small wrappers.
2020-09-18 10:40:17 +03:00