Beispiel #1
0
    def do_scan_list(self):
        """
        Implementation of: /scan/list

        :returns: Dictionary mapping audit names to their configurations.
        :rtype: dict(str -> dict(str -> \\*))
        """
        result = {}
        for audit_name in get_audit_names():
            audit_config = get_audit_config(audit_name)
            result[audit_name] = audit_config.to_dictionary()
        return result
    def do_audit_list(self): # TODO: control audits with error at start
        """
        Implementation of: /audit/list

        :returns: Dictionary mapping audit names to their configurations.
        :rtype: dict(str -> dict(str -> \\*))
        """
        result = {}
        for audit_name in get_audit_names():
            audit_config = get_audit_config(audit_name)
            result[audit_name] = audit_config.to_dictionary()
        return result