Commit Graph

10 Commits (c5397286410f)

Author SHA1 Message Date
aarifullin c539728641 [#62] morph: List morph rules chains by traversing iterator
* Make `ListMorphRuleChains` methods use `commonclient.ReadIteratorItems`.
* Introduce `ContractStorageActor` interface.
* Iterators are used because listing by `ListChainsByPrefix` may cause
  stack overflow from neo-go side (len(items) > 1024).

Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2024-04-26 06:20:43 +00:00
aarifullin c13ed8447a [#52] morph: Extend MorphRuleChainStorage interface with ListTargetsIterator
DCO action / DCO (pull_request) Successful in 1m3s Details
Tests and linters / Tests (1.21) (pull_request) Successful in 55s Details
Tests and linters / Tests with -race (pull_request) Successful in 1m25s Details
Tests and linters / Staticcheck (pull_request) Successful in 1m26s Details
Tests and linters / Lint (pull_request) Successful in 2m42s Details
Tests and linters / Tests (1.20) (pull_request) Successful in 1m29s Details
* Update frostfs-contract package version in go.mod.
* Extend MorphRuleChainStorage interface with ListTargetsIterator and
  introduce its implementation.
* Check targets in inmemory implementation unit-tests.

Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2024-03-05 10:17:28 +03:00
Dmitrii Stepanov 88c2a476b0 [#1] chain: Add json marshal/unmarshal
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2024-01-24 11:04:03 +03:00
Dmitrii Stepanov 58386edf58 [#1] chain: Add binary marshal/unmarshal
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2024-01-24 11:04:03 +03:00
Denis Kirillov 06e9c91014 [#33] pkg/chain: Support CondSliceContains condition
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
2023-12-21 11:13:52 +00:00
aarifullin 62ea96b82c [#32] morph: Remove name transformer in morph policy client
* It is not required to transform long names because
  container chains will be added by container ID
  but not by a resource name.

Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2023-12-14 12:22:53 +00:00
aarifullin 156018bcba [#3] policy: Introduce policy contract interface wrapper
DCO action / DCO (pull_request) Successful in 46s Details
Tests and linters / Tests (1.20) (pull_request) Successful in 1m16s Details
Tests and linters / Tests (1.21) (pull_request) Successful in 1m17s Details
Tests and linters / Tests with -race (pull_request) Successful in 1m33s Details
Tests and linters / Staticcheck (pull_request) Successful in 1m44s Details
Tests and linters / Lint (pull_request) Successful in 3m14s Details
Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2023-12-07 14:01:27 +03:00
aarifullin df15b38c63 [#3] engine: Refactor MorphRuleChainStorage
* Make changing state methods like AddMorphRuleChain,
  RemoveMorphRuleChain return transaction hash and VUB.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2023-12-06 12:25:55 +03:00
Denis Kirillov 5fa9d91903 [#17] iam: Add converter to native/s3 policy
DCO action / DCO (pull_request) Successful in 3m18s Details
Tests and linters / Tests (1.21) (pull_request) Successful in 3m35s Details
Tests and linters / Tests (1.20) (pull_request) Successful in 3m46s Details
Tests and linters / Tests with -race (pull_request) Successful in 3m45s Details
Tests and linters / Staticcheck (pull_request) Successful in 3m49s Details
Tests and linters / Lint (pull_request) Successful in 5m15s Details
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
2023-11-21 11:45:41 +03:00
Evgenii Stratonikov 5ebb2e694c [#2] Initial implementation
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-10-23 10:45:15 +03:00