Commit graph

16 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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