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_show_config(arg)[source]
do_show_rights(arg)[source]
do_show_role_rights(arg)[source]
do_show_roles(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]
define_authz_preview_parser(parser)[source]
load_policy(policy_file_path)[source]
main()[source]

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

run_command(args)[source]