Commit graph

201 commits

Author SHA1 Message Date
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
Angira Kekteeva
7cfe91fac7 [#4] pool: Rename exported structs in pool pkg
Renamed PoolBuilderOptions to BuilderOptions and PoolBuilder to Builder
because usages of them with prefix pool.* in other packages stutter.

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-25 14:58:55 +03:00
Angira Kekteeva
d62b4534db [#4] *: Add new imports for added pkgs
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-25 14:35:50 +03:00
Angira Kekteeva
9f476e3c16 [#4] neofs: Remove useless neofsClientObject
Also ObjectClient interface and its functions
Resolve imports

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-25 14:27:21 +03:00
Angira Kekteeva
4225a21ea5 [#4] *: Add connections, neofs, logger from httpgw
Commit in http-gw: a4ad52e181e3653ee43742e2beb8c594c487c8cc
Rename connections dir and pkg to pool

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-25 14:00:05 +03:00
Roman Khimov
9dee13f0d5
Merge pull request #2 from masterSplinter01/feature/116-move-policy-from-neofs-node
Move policy from neofs node
2021-05-21 00:07:14 +03:00
Angira Kekteeva
05d97531a9 [nspcc-dev/neofs-node#116] policy: Fix grammar.go
Linter prints warnings because of tags on structs
on grammar.go. But we need this syntax, so govet
and golint are turned off for this file.

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-21 00:02:33 +03:00
Angira Kekteeva
0caf8cfd95 [nspcc-dev/neofs-node#116] policy: Add comments
Added comments to exported variables and
functions, fix typos in comments and extra
newlines in code

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-21 00:01:28 +03:00
Angira Kekteeva
3ef4b2c4cf [nspcc-dev/neofs-node#166] *: Add project files
Create Makefile, go.mod, .golangci.yml.
Add coverage and IDE entries to .gitignore

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-20 23:57:51 +03:00
Angira Kekteeva
4d1900e543 [nspcc-dev/neofs-node#116] policy: Replace dependency
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-20 23:01:12 +03:00
Angira Kekteeva
0eeddf6dfe [nspcc-dev/neofs-node#116] policy: Move files from neofs-node repo
Took from commit on neofs-node: f81ecbe8db17e63674a47b4b6d49575aced3c16d

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2021-05-20 23:01:12 +03:00