Console tool for frostfs policy contract reading https://git.frostfs.info/TrueCloudLab/frostfs-contract
Find a file
Denis Kirillov c40ad3627d Add listing user/container chains by name
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
2024-08-29 09:42:39 +03:00
internal Add listing user/container chains by name 2024-08-29 09:42:39 +03:00
modules Add listing user/container chains by name 2024-08-29 09:42:39 +03:00
.gitattributes Initial commit 2024-08-28 06:31:07 +00:00
.gitignore Initial commit 2024-08-28 06:31:07 +00:00
.gitlint Initial commit 2024-08-28 06:31:07 +00:00
.golangci.yml Add Makefile 2024-08-28 14:57:16 +03:00
.pre-commit-config.yaml Add Makefile 2024-08-28 14:57:16 +03:00
go.mod Add listing user/container chains by name 2024-08-29 09:42:39 +03:00
go.sum Add listing user/container chains by name 2024-08-29 09:42:39 +03:00
main.go Support contract method invocation 2024-08-28 14:57:04 +03:00
Makefile Fix pre-commit issues 2024-08-28 16:21:11 +03:00
README.md Add listing user/container chains by name 2024-08-29 09:42:39 +03:00
VERSION Add Makefile 2024-08-28 14:57:16 +03:00

Policy contract reader

To build:

$ make

To list all container targets:

$ ./bin/policy-reader contract -r http://morph-chain.frostfs.devenv:30333 list-targets --type container
container targets: 3
7h7NcXcF6k6b1yidqEHc1jkyXUm1MfUDrrTuHAefhiDe    (base64: 'N2g3TmNYY0Y2azZiMXlpZHFFSGMxamt5WFVtMU1mVURyclR1SEFlZmhpRGU=')
Ei2Fz988ZUFEHUEXxTadouysebPGAW7vsxn1hSiYYzT     (base64: 'RWkyRno5ODhaVUZFSFVFWHhUYWRvdXlzZWJQR0FXN3ZzeG4xaFNpWVl6VA==')
Ew23XpQadxG5iyujTg2xPajaQXnN17tWSjgFk7Bv5ADj    (base64: 'RXcyM1hwUWFkeEc1aXl1alRnMnhQYWphUVhuTjE3dFdTamdGazdCdjVBRGo=')

See additional params:

Helps reading policy information from contact in FrostFS network

Usage:
  policy-reader [flags]
  policy-reader [command]

Examples:
policy-reader --version

Available Commands:
  chains      Chain related policy operations
  completion  Generate the autocompletion script for the specified shell
  contract    Operations with policy contract
  help        Help about any command

Flags:
  -c, --config string   Path to config file
  -h, --help            help for policy-reader
  -v, --version         version for policy-reader

Use "policy-reader [command] --help" for more information about a command.

Use:

  • policy-reader contract to invoke contract functions
  • policy-reader chains to list chains related to some entities (user/container) by name