8.5.7. vantage6.node.proxy_server#

This module contains a proxy server implementation that the node uses to communicate with the server. It contains general methods for any routes, and methods to handle tasks and results, including their encryption and decryption.

(!) Not to be confused with the squid proxy that allows algorithm containers to access other places in the network.

Functions

decrypt_result(run)

Decrypt the result from a run dictionary

get_method(method)

Obtain http method based on string identifier

get_response_json_and_handle_exceptions(response)

Obtain json content from request response

make_proxied_request(endpoint)

Helper to create proxies requests to the central server.

make_request(method, endpoint[, json, ...])

Make request to the central server

proxy(central_server_path)

Generalized http proxy request

proxy_result()

Obtain and decrypt all results to belong to a certain task

proxy_results(id_)

Obtain and decrypt the algorithm result from the vantage6 server to be used by an algorithm container.

proxy_task()

Proxy to create tasks at the vantage6 server