nvflare.fuel.hci.tools.authz_preview module

class Commander(policy: Policy)[source]

Bases: Cmd

Command line prompt helper tool for getting information for authorization configurations.

Parameters

policy – authorization policy object

do_bye(arg)[source]

Exits from the client.

do_eval_right(arg)[source]
do_eval_rule(arg)[source]
do_eval_user(arg)[source]
do_show_config(arg)[source]
do_show_rights(arg)[source]
do_show_rules(arg)[source]
do_show_site_rules(arg)[source]
do_show_sites(arg)[source]
do_show_users(arg)[source]
emptyline()[source]

Called when an empty line is entered in response to the prompt.

If this method is not overridden, it repeats the last nonempty command entered.

write_error(err: str)[source]
write_string(data: str)[source]
write_table(table: Table)[source]
main()[source]

Tool to help preview and see the details of an authorization policy with command line commands.