Skip to main content

integration.resources.brokers.resources_broker_tunnel

ResourcesBrokerTunnel Objects

class ResourcesBrokerTunnel(io.RawIOBase, metaclass=abc.ABCMeta)

Class used to "tunnel" the data when up-/downloading files through a broker.

Tunnels are file-like objects and need to be used as context managers (i.e., using with).

on

def on(event: CallbackTypes, cb: CallbackType) -> typing.Self

Registers a new callback for they specified event.

Arguments:

  • event - The event to react to.
  • cb - The callback.