Airat Arifullin
1d4deffb7d
* 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>
15 lines
688 B
Go
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
|