Proxy driver

The Proxy driver is not a real driver, but for creating “proxies” or aliases of other drivers to present a desired view of the tree of devices to the client.

It’s also useful when several drivers need configured access to a common resource, like a serial port or a network connection.

Driver configuration

children:
  proxy:
    ref: "foo.bar.power"
  foo:
    children:
      bar:
        children:
          power:
            type: "jumpstarter_driver_power.driver.MockPower"

Client API

>>> root.foo.bar.power.on() # instead of
>>> root.proxy.on()         # you can do