pub async fn list(
node_config_path: PathBuf,
address: AddressOpt,
token: Option<String>,
) -> Result<(), Error>
Expand description
Lists (and allows the inspection of) the policies on the node’s checker.
§Arguments
node_config_path
: The path to the node configuration file that determines which node we’re working for.address
: The address on which to reach the checker. May be missing a port, to be resolved in the node.yml.token
: A token used for authentication with the remote checker. If omitted, will attempt to generate one based on the secret file in the node.yml file.
§Errors
This function may error if we failed to read configs, read the input, contact the checker of if the checker errored.