jake.command.iq

Module Contents

Classes

IqCommand

Helper class that provides a standard way to create an ABC using

class jake.command.iq.IqCommand[source]

Bases: jake.command.BaseCommand

Helper class that provides a standard way to create an ABC using inheritance.

class IqServerApi(server_url: str, username: str, password: str)[source]

Internal Nexus Lifecycle API class

@todo In the future this and other API accessor classes may be moved to their own PyPi package to enable

wider reuse.

_logger: logging.Logger[source]
_DEFAULT_HEADERS[source]
scan_application_with_bom(bom: cyclonedx.model.bom.Bom, iq_public_application_id: str, iq_scan_stage: str) Any[source]

This method is intentionally blocking.

We submit a CycloneDX BOM to Nexus IQ for evaluation and then continuously poll IQ to determine when the results are available. Once available, we grab the results and then this method will return.

_get_internal_application_id_from_public_application_id(iq_public_application_id: str) str[source]

Attempts to obtain the internal ID of the Application from Nexus IQ

_get_scan_report_results(status_uri: str) Any | bool[source]
_submit_bom(bom: cyclonedx.model.bom.Bom, iq_internal_application_id: str, iq_scan_stage: str) Any[source]
_validate_server() bool[source]
__make_request(uri: str, body_data: str | None = None, additional_headers: Dict[str, Any] | None = None, method: str = 'GET') Any[source]
handle_args() int[source]
get_argument_parser_name() str[source]
get_argument_parser_help() str[source]
setup_argument_parser(arg_parser: argparse.ArgumentParser) None[source]