Commit graph

411 commits

Author SHA1 Message Date
Evgenii Stratonikov
1bd89bf797 [#42] go.mod: update neofs-api-go
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-10-28 14:50:33 +03:00
Evgenii Stratonikov
9435f4171b [#40] acl: move ACL types from neofs-api-go
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-10-27 19:42:38 +03:00
Angira Kekteeva
5d2a913355 [#37] ci: Add github workflows
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-10-15 17:37:18 +03:00
Angira Kekteeva
2a90ddbda4 [#37] ci: Replace golint by revive
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-10-15 17:37:18 +03:00
Evgenii Stratonikov
6e3836cb1d [#35] policy: remove netmap/v2 dependency
Also, fix tests.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-09-14 10:21:56 +03:00
Denis Kirillov
880f3a61e5 [#32] Require at least one healthy node
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-09-09 14:46:46 +03:00
Alex Vanin
234373f249 [#31] pool: Do not invoke EndpointInfo to find the address
Since we transformed the pool of gRPC connection into the pool of
neofs clients, we don't need to call EndpointInfo to fetch the
address of the node for the beautiful error output.

Moreover it is done incorrectly, because c.CreateSession may return
context.Cancelled error (graceful shutdown). We will reuse the same
context for the EndpointInfo call which will lead to a
timeout freeze.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-09-07 13:54:34 +03:00
Alex Vanin
c55ae2c13f
Merge pull request #30 from masterSplinter01/misc/26-move-pkg-subfolders
Move /pkg subfolders to the root
2021-07-28 15:21:17 +03:00
Angira Kekteeva
c0101c6561 [#26] policy: Update imports
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-07-28 13:47:27 +03:00
Angira Kekteeva
628ae20c72 [#26] *: Move pkg content to root
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-07-28 13:47:27 +03:00
Denis Kirillov
d95d722d61 [#28] Add recreating session token
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-07-28 12:37:55 +03:00
Alex Vanin
cb0a844cae
Merge pull request #27 from KirillovDenis/feature/16-pool_tests
[#16] Add pool tests
2021-07-26 15:45:45 +03:00
Denis Kirillov
9d2c7d9a04 [#16] Update neo-go version
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-07-26 15:23:27 +03:00
Denis Kirillov
3af734a723 [#16] Add mock
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-07-23 12:07:30 +03:00
Denis Kirillov
7a0128e6ff [#16] Fix TestHealthyReweight
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-07-20 11:06:45 +03:00
Denis Kirillov
edc1382178 [#16] Add pool tests with mock node
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-07-20 11:02:14 +03:00
Alex Vanin
393034fd73
Merge pull request #25 from masterSplinter01/24-update-api-go
Update api go
2021-07-07 17:24:03 +03:00
Angira Kekteeva
6ad584e11d Add vendor directory to gitignore
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-07-07 17:20:36 +03:00
Angira Kekteeva
317d4400a5 [#24] Update api-go vesion to 1.28.3
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-07-07 17:20:36 +03:00
Alex Vanin
3904339f2f
Merge pull request #23 from cthulhu-rider/upd-apigo-v1.28.2
Update NeoFS API Go library to v1.28.2
2021-07-06 14:53:13 +03:00
Leonard Lyubich
9c906987ca [#23] Remove usage of deprecated code elements in API Go v1.28.2
Remove usage of deprecated `NodeInfo.Address` method. Replace it with new
methods which work with group of addresses.
2021-07-06 12:22:54 +03:00
Leonard Lyubich
0aa14a6d82 [#23] Update NeoFS API Go library to v1.28.2
Release includes fix of session token corruption by `Client`.
2021-07-06 12:22:51 +03:00
Kirillov Denis
0348eb331c
Merge pull request #22 from masterSplinter01/fix/session-token-overlap
Change order of CallOptions in return of pool.conn
2021-06-24 10:23:35 +03:00
Angira Kekteeva
11abaa7f68 Change order of CallOptions in return of pool.conn
Moved WithSession with session token got from pool.Connection
to the top of returned slice because it overlaps WithSession in
'option' parameter

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-06-23 17:55:39 +03:00
Roman Khimov
aef1e3fc7c
Merge pull request #21 from masterSplinter01/fix/add-check-to-interface
Add WaitFotContainerPresence to Pool Interface
2021-06-22 18:02:03 +03:00
Angira Kekteeva
7065831db4 Add WaitFotContainerPresence to Pool Interface
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-06-22 17:55:47 +03:00
Roman Khimov
bcceec6e8b
Merge pull request #20 from masterSplinter01/feature/19-client-container-in-pool
[#19] Implement client.Container interface in pool
2021-06-22 15:03:21 +03:00
Roman Khimov
3fc452458f
Merge pull request #18 from KirillovDenis/bugfix/15-sampler_healthy_reweight
[#15] Added healthy node rebalance
2021-06-22 15:00:24 +03:00
Denis Kirillov
0e873fc5ca [#15] Added healthy node rebalance
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-22 14:08:20 +03:00
Angira Kekteeva
7776237d0b [#19] Implement client.Container interface in pool
Also addded function polling is container created.

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-06-22 13:51:58 +03:00
Roman Khimov
29f860b4dd
Merge pull request #17 from KirillovDenis/feature/14-sampler_tests
[#14] Added tests for sampler
2021-06-18 16:27:40 +03:00
Denis Kirillov
eeeaa8a4fd [#14] Added tests for sampler
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-18 16:24:57 +03:00
Roman Khimov
56ef32f21e
Merge pull request #3 from fyrchik/policy-parser
Use ANTLR for policy parsing
2021-06-15 13:21:34 +03:00
Evgenii Stratonikov
4a0ed2f6ea [#3] policy: update doc.go
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-06-15 11:42:14 +03:00
Evgenii Stratonikov
f5413e94b5 [#3] policy/test: increase test coverage
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-06-15 11:42:14 +03:00
Evgenii Stratonikov
e78eb268a9 [#3] policy/test: remove debug print 2021-06-15 11:42:14 +03:00
Evgenii Stratonikov
0f5ce2e8bb [#3] policy: allow to use brackets in filters
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-06-15 11:42:14 +03:00
Evgenii Stratonikov
3aeeafe79e [#3] policy: use ANTLRv4 parser generator
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-06-15 11:42:14 +03:00
Roman Khimov
86a9aa9259
Merge pull request #13 from KirillovDenis/feature/12-impl_client_object
[#12] Implemented client.Object in Pool
2021-06-15 10:49:44 +03:00
Denis Kirillov
8d8a5f8a86 [#12] Ensuring that pool implements interface
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-15 10:46:44 +03:00
Denis Kirillov
e71da21f3a [#12] Implemented client.Object in Pool
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-13 15:18:43 +03:00
Roman Khimov
0d3c078a0d
Merge pull request #10 from KirillovDenis/feature/1-tls_enpoint_support
[#9] Dropped direct gRPC connections
2021-06-09 17:36:31 +03:00
Denis Kirillov
10284ddd63 [#9] Dropped direct gRPC connections
Using neofs-api-go client.New to create grpc connections.

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
2021-06-09 17:27:17 +03:00
Angira Kekteeva
f16d38c7b9
Merge pull request #8 from roman-khimov/api-go-session-token
pool: don't use deprecated token.SessionToken
2021-06-04 14:24:51 +03:00
Roman Khimov
cf9a2d1e54 pool: don't use deprecated token.SessionToken
pkg/pool/pool.go:86:32   staticcheck  SA1019: token.SessionToken is deprecated: use session.Token instead
pkg/pool/pool.go:92:16   staticcheck  SA1019: token.SessionToken is deprecated: use session.Token instead
pkg/pool/pool.go:151:46  staticcheck  SA1019: token.SessionToken is deprecated: use session.Token instead

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-06-04 13:35:52 +03:00
Angira Kekteeva
5785062aa9
Merge pull request #7 from roman-khimov/api-go-1.27
go.mod: update neofs-api-go to v1.27.0
2021-06-03 21:23:19 +03:00
Roman Khimov
cecb5e052d go.mod: update neofs-api-go to v1.27.0
Builds fine.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-06-03 17:41:27 +03:00
Angira Kekteeva
2f63343bda
Merge pull request #6 from roman-khimov/drop-neofs-pkg
neofs: drop package
2021-05-31 21:21:50 +03:00
Roman Khimov
878f2cd855 neofs: drop package
We don't really need Credentials (it's all about private key) and ClientPlant
(it's a pool). NewEphemeralKey moved temporarily to pool.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2021-05-28 23:13:47 +03:00
Roman Khimov
cbfc17a1a9
Merge pull request #5 from masterSplinter01/feature/4-import-refactor-connection-pooling
Import refactor connection pooling
2021-05-27 21:26:36 +03:00