frostfs-contract/policy/doc.go
Airat Arifullin 1d4deffb7d
Some checks failed
DCO action / DCO (pull_request) Successful in 1m53s
Tests / Tests (1.19) (pull_request) Failing after 2m11s
Tests / Tests (1.20) (pull_request) Failing after 2m13s
[#78] policy: Introduce ListTargets method for Policy contract
* Introduce a new method ListTargets that lists targets by kind.
* Slightly fix key mapping - also concatenate kind to prefix.
* Write unit-tests.
* Regenerate rpcclient.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2024-02-16 18:11:00 +03:00

15 lines
688 B
Go

/*
# Contract storage scheme
| Key | Value | Description |
|------------------------------------------|--------|-----------------------------------|
| 'c' + uint16(len(container)) + container | []byte | Namespace chain |
| 'n' + uint16(len(namespace)) + namespace | []byte | Container chain |
| 'm' + entity name (namespace/container) | []byte | Mapped name to an encoded number |
| 'counter' | uint64 | Integer counter used for mapping |
| 'rc' | uint64 | Actvie rules count for a target |
*/
package policy