implement the feature

improve the test slightly, too, to verify the configuration supplied to the
plugin is as expected.
This commit is contained in:
Jean-Paul Calderone
2019-07-24 15:37:24 -04:00
parent 326e5829b0
commit d69de15664
7 changed files with 101 additions and 4 deletions

View File

@ -889,6 +889,16 @@ class _Client(node.Node, pollmixin.PollMixin):
ic.publish("storage", announcement, self._node_private_key)
def get_client_storage_plugin_web_resources(self):
"""
Get all of the client-side ``IResource`` implementations provided by
enabled storage plugins.
:return dict[bytes, IResource provider]: The implementations.
"""
return self.storage_broker.get_client_storage_plugin_web_resources()
def _enable_storage_servers(self, announceable_storage_servers):
"""
Register and announce the given storage servers.