Commit graph

946 commits

Author SHA1 Message Date
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
Alex Vanin
8aca8c5787 Update proto files from latest jindo 2020-09-18 10:40:36 +03:00
Alex Vanin
ca917e42d0 Fix marshaller test 2020-09-18 10:40:33 +03:00
Alex Vanin
7d0a189721 Remove docs from neofs-api
These docs should be about sdk
2020-09-18 10:40:30 +03:00
Alex Vanin
12e7b5f16b Remove proto files from the repo 2020-09-18 10:40:28 +03:00
Alex Vanin
ff866195c4 Add version constsant to v2 2020-09-18 10:40:25 +03:00
Alex Vanin
f87e5fe831 Use v2 subdir in prepare script 2020-09-18 10:40:21 +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
Leonard Lyubich
0ee1c3653d Implement field setters on all protobuf messages
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:40:17 +03:00
Leonard Lyubich
2ccfe34a20 service/signature: Rename interface methods
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-09-18 10:40:17 +03:00
Alex Vanin
746419e85f Implement signature interface in request headers
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:40:14 +03:00
Alex Vanin
4a6ea486f7 Implement signature interface for container put request
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:40:10 +03:00
Alex Vanin
0ae952fcc6 Add stable marshal of meta & verify headers
It uses unstable implementation for now.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:40:07 +03:00
Alex Vanin
c37fca9e0d Add stable marshal for container structure
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:40:04 +03:00
Alex Vanin
18df156e61 Add stable marshal for owner id
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:40:02 +03:00
Alex Vanin
696e263e4d Add stable marshal for placement rule
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-18 10:39:58 +03:00
Leonard Lyubich
297212886d service: Add updated Sign/Verify mechanism 2020-09-18 10:39:58 +03:00
Alex Vanin
ea7c6a22da Ignore vendor dir in prepare structure script 2020-09-18 10:39:54 +03:00
Alex Vanin
fabdd78d63 Add pre-release jindo branch 2020-09-18 10:39:50 +03:00
Alex Vanin
0a5d0ff1a2 Remove v1 code 2020-09-18 10:39:45 +03:00
Alex Vanin
ed7879a89e Add script to prepare multiversion structure 2020-09-18 10:39:37 +03:00
Leonard Lyubich
ad0213d256 Merge tag 'v1.3.0' into develop
Release v1.3.0
2020-07-23 17:59:32 +03:00
Leonard Lyubich
64c941ae06 Merge branch 'release/1.3.0' 2020-07-23 17:59:24 +03:00
Leonard Lyubich
e5ded9cd0f Update changelog and readme for v1.3.0 2020-07-23 17:59:06 +03:00
Leonard Lyubich
78fdc7a787
Merge pull request #101 from nspcc-dev/refactor-acl-package
acl: refactor the package
2020-07-23 17:05:53 +03:00
Leonard Lyubich
befb34a9ff acl: refactor the package
This commit:

  * replaces the wrappers of the messages to eacl sub-package;

  * renames Target to Group in eacl package;

  * defines Group constants;

  * replaces EACLTable message marshaler (unmarshaler) with custom MarshalTable
    (UnmarshalTable) of the Table.
2020-07-23 14:51:21 +03:00
Alex Vanin
630ac612ea
Merge pull request #100 from nspcc-dev/neo3/address
Use NEO3 based address generation
2020-07-21 18:52:20 +03:00
alexvanin
1958ff8c37 Use NEO3 based address generation
With neo-go v0.90.0 there are new event subscription component
and new verification script routines based on NEO3. These features
allow to avoid using low-level neo-vm code in NeoFS and corresponding
projects.

This commit removes unused function:
- FetchPublicKeys (used in neofs indexer),
- VerificationScript (used in KeysToAddress),
- Address (used in KeysToAddress),
- ReversedScriptHashToAddress (used in neofs indexer),
- IsAddress (used in neofs indexer),
- ReverseBytes (used in neofs indexer),
- DecodeScriptHash (used in neofs indexer).

KeysToAddress changed into KeyToAddress because NeoFS won't work with
multisignature owners for now and it is not supported in neo-go library.
2020-07-20 16:43:31 +03:00
Alex Vanin
8cb9ac0528
Merge pull request #97 from nspcc-dev/ImplementingProtoClone
Implementing proto.Clone
2020-07-17 18:19:54 +03:00