Commit graph

474 commits

Author SHA1 Message Date
Leonard Lyubich
7a55865f74 v2/object: Implement uni-structures for ObjectService
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:42:59 +03:00
Alex Vanin
d4336d8d5b Simplify marshal with nested structure helper
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:57 +03:00
Alex Vanin
b47ec9e056 Add stable marshal for accounting package
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:54 +03:00
Alex Vanin
0df4e4bf0d Add nested structure stable marshal helper
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:51 +03:00
Alex Vanin
08d3debc3a Fix SetBalance setter
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:49 +03:00
Alex Vanin
c214d4d763 Add stable marshal for service package
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:46 +03:00
Alex Vanin
c96598713e Fix missed x-header set in converters
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:43 +03:00
Leonard Lyubich
b197e382ca v2/object: Implement uni-structures for Object
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:42:41 +03:00
Leonard Lyubich
7b93298263 v2/container: Implement remaining uni-structures
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:42:38 +03:00
Alex Vanin
d7c4dc333c Fix some lint warnings
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:35 +03:00
Alex Vanin
ddbeaa93b3 Add stable marshal of acl table
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:32 +03:00
Alex Vanin
6e42ba8d22 Add stable marshal of acl record
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:30 +03:00
Alex Vanin
64b456996e Sync acl enums with proto definition
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:28 +03:00
Alex Vanin
5880875bd9 Add stable marshal of target info in acl package
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:25 +03:00
Alex Vanin
5623ce0124 Add stable marshal of header filter in acl package
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:23 +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
Leonard Lyubich
57dcf01f6b v2/service: Fill SessionToken uni-structure
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:42:16 +03:00
Leonard Lyubich
ae2e951b77 v2/container: Implement Container uni-structure
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:42:14 +03:00
Leonard Lyubich
9f4d24b592 v2/container/grpc: Implement needed setters
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:42:11 +03:00
Leonard Lyubich
ddd3ba1bf2 v2/netmap: Define uni PlacementPolicy type
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:42:09 +03:00
Alex Vanin
1ae7f9b491 Fix lint warnings in storage group package
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:05 +03:00
Alex Vanin
304103c6fa Add stable marshal for storage group package
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:42:00 +03:00
Alex Vanin
b3cb483894 Adopt neofs-api structure changes
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:41:58 +03:00
Alex Vanin
8a94a6344a Recompile proto files with latest neofs-api
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:41:55 +03:00
Alex Vanin
2c33e22db5 Add stable marshal for refs package
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:41:52 +03:00
Alex Vanin
f8e6908e50 Update NestedStructurePrefix helper function
Return prefix and it's length for optimizations in
stable marshallers.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:41:49 +03:00
Alex Vanin
65e5457a21 Fix pointer name in container id methods
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:41:46 +03:00
Leonard Lyubich
e599468420 v2/service: Rename header setters
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:41:44 +03:00
Leonard Lyubich
e84c8aee2c v2/accounting: Implement uni BalanceResponse
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:41:41 +03:00
Leonard Lyubich
9df86935f5 v2/accounting: Implement Decimal uni-structure
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:41:39 +03:00
Leonard Lyubich
890d8291e7 v2/service: Implement response uni-structures
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:41:36 +03:00
Leonard Lyubich
1d5773b6ff v2/service: Replace request header converters
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:41:34 +03:00
Leonard Lyubich
18737e128c v2/service: Fill BearerToken uni-structure
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:41:31 +03:00
Leonard Lyubich
c55a9fa9bd v2/service: Gather converters in one file
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:41:27 +03:00
Leonard Lyubich
01581443a3 v2/acl: Implement gRPC converters
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:41:25 +03:00
Leonard Lyubich
77962e1d39 v2/acl: Implement uni-types
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:41:22 +03:00
Leonard Lyubich
8ebca8eff3 v2/storagegroup: Implement gRPC converters
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:41:19 +03:00
Leonard Lyubich
4b7f532e52 v2/storagegroup: Implement uni-structure
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:41:15 +03:00
Leonard Lyubich
a3f0c5537c v2/refs: Implement gRPC converters
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:41:12 +03:00
Leonard Lyubich
1b262fc072 v2/refs: Implement remaining uni-structures
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:41:09 +03:00
Alex Vanin
a68252c956 Add stable marshal helpers for repeated fields
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:41:07 +03:00
Alex Vanin
a7a8fc33bb Add stable marshaler for enums
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:41:04 +03:00
Alex Vanin
f8482381fd Add stable marshaller helper for ints
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:41:01 +03:00
Alex Vanin
89bd8f3915 Add stable marshaller helper for bool
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:40:59 +03:00
Alex Vanin
311b76b75b Add proto marshal helper for string
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:40:56 +03:00
Alex Vanin
41f9c50424 Add proto marshal helper for bytes
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:40:53 +03:00
Alex Vanin
51e1c3bbcb Remove empty v2/convert.go 2020-09-18 10:40:51 +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
Leonard Lyubich
6191903326 Implement new request signing mechanism
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:40:45 +03:00
Alex Vanin
59858805a8 Update field names in setters and tests
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:40:40 +03:00