masking: Add CLI tools to manage the proxy
Online help: Usage: swh storage masking [OPTIONS] COMMAND [ARGS]... Configure masking on archived objects These tools require read/write access to the masking database. An entry must be added to the configuration file as follow: storage: … masking_admin: masking_db: "service=swh-masking-admin" Options: -h, --help Show this message and exit. Commands: clear-request Remove all masking states for the given request history Get the history for a request list-requests List masking requests new-request Create a new request to mask objects object-state Get the masking state for a set of SWHIDs status Get the masking states defined by a request update-objects Update the state of given objects
Showing
- pyproject.toml 1 addition, 0 deletionspyproject.toml
- swh/storage/proxies/masking/cli.py 413 additions, 0 deletionsswh/storage/proxies/masking/cli.py
- swh/storage/proxies/masking/db.py 152 additions, 2 deletionsswh/storage/proxies/masking/db.py
- swh/storage/tests/masking/test_cli.py 590 additions, 0 deletionsswh/storage/tests/masking/test_cli.py
- swh/storage/tests/masking/test_db.py 130 additions, 9 deletionsswh/storage/tests/masking/test_db.py
Loading
Please register or sign in to comment