Commit graph

32 commits

Author SHA1 Message Date
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
Leonard Lyubich
07c8150071
Initial commit 2021-02-25 11:35:04 +03:00