Commit graph

585 commits

Author SHA1 Message Date
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
Leonard Lyubich
3dff202073 Merge tag 'v1.2.0' into develop
Release v1.2.0
2020-07-08 11:10:05 +03:00
Leonard Lyubich
3cc34a823f Merge branch 'release/1.2.0' 2020-07-08 11:09:56 +03:00
Leonard Lyubich
2bf5a0c30b Update changelog and readme for v1.2.0 2020-07-08 11:09:29 +03:00
Leonard Lyubich
123837af93
Merge pull request #99 from nspcc-dev/feature/upgrade-to-api-v1.2.0
Update to neofs-api v1.2.0
2020-07-08 10:56:22 +03:00
Leonard Lyubich
504804f806 Update to neofs-api v1.2.0 2020-07-08 10:50:58 +03:00
Leonard Lyubich
494a52c35a
Merge pull request #98 from nspcc-dev/eacl-addition
Add a rich functionality of management of NeoFS extended ACL
2020-07-08 10:04:05 +03:00
Pavel Korotkov
2fba8cb7b3 acl: make MatchType's constants public back 2020-07-08 01:10:07 +03:00
Pavel Korotkov
f826517207 acl: delete unused types 2020-07-08 01:09:54 +03:00
Pavel Korotkov
d0f56e5044 acl: reorganize files 2020-07-08 01:09:46 +03:00
Pavel Korotkov
0db55d31ae acl: remove tests 2020-07-08 01:09:36 +03:00
Pavel Korotkov
ec4fb22e30 acl: fix an erroneous method name in comments 2020-07-08 01:09:21 +03:00