mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-21 00:22:55 +00:00
docstrings
This commit is contained in:
@ -325,6 +325,13 @@ def create_client_from_config(config, _client_factory=None, _introducer_factory=
|
|||||||
|
|
||||||
@attr.s
|
@attr.s
|
||||||
class _StoragePlugins(object):
|
class _StoragePlugins(object):
|
||||||
|
"""
|
||||||
|
Functionality related to getting storage plugins set up and ready for use.
|
||||||
|
|
||||||
|
:ivar list[IAnnounceableStorageServer] announceable_storage_servers: The
|
||||||
|
announceable storage servers that should be used according to node
|
||||||
|
configuration.
|
||||||
|
"""
|
||||||
announceable_storage_servers = attr.ib()
|
announceable_storage_servers = attr.ib()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -332,6 +339,14 @@ class _StoragePlugins(object):
|
|||||||
def from_config(cls, get_anonymous_storage_server, config):
|
def from_config(cls, get_anonymous_storage_server, config):
|
||||||
"""
|
"""
|
||||||
Load and configured storage plugins.
|
Load and configured storage plugins.
|
||||||
|
|
||||||
|
:param get_anonymous_storage_server: A no-argument callable which
|
||||||
|
returns the node's anonymous ``IStorageServer`` implementation.
|
||||||
|
|
||||||
|
:param _Config config: The node's configuration.
|
||||||
|
|
||||||
|
:return: A ``_StoragePlugins`` initialized from the given
|
||||||
|
configuration.
|
||||||
"""
|
"""
|
||||||
storage_plugin_names = cls._get_enabled_storage_plugin_names(config)
|
storage_plugin_names = cls._get_enabled_storage_plugin_names(config)
|
||||||
plugins = list(cls._collect_storage_plugins(storage_plugin_names))
|
plugins = list(cls._collect_storage_plugins(storage_plugin_names))
|
||||||
|
Reference in New Issue
Block a user