pub struct RegistryHandler { /* private fields */ }
Expand description
Wraps the registries in the Galaxy db.
Implementations§
Source§impl RegistryHandler
impl RegistryHandler
Sourcepub fn registered_nodes(&self) -> Vec<String>
pub fn registered_nodes(&self) -> Vec<String>
Gets a list of the IDs of all registered node types as a Vec<String>
. Can sometimes
be more reliable than getting the loaded modules, as there is no guarantee that each module
registers a node, or that each module registers only one node. Each node is targeted by a
type field in the JSON data on disk, so there is a 1:1 correlation of this list to all of
the currently supported data types in the Galaxy db.
Identifiers are namespaced as module::nodetype
, as enforced by the Registry in Python;
however, Identifiers default to the core
namespace when no namespace is provided, meaning
that some nodes in badly written, non-idiomatic ways may be registered under core
.
Looking at the registry namespaces should illustrate that modules with the same namespace
may register multiple, or no, nodes.
Sourcepub fn registered_ingest_managers(&self) -> Vec<String>
pub fn registered_ingest_managers(&self) -> Vec<String>
Gets a list of the IDs of all the registered ingest helpers as a Vec<String>
. Can
sometimes be more reliable than getting all the loaded modules, as there is no guarantee
that each module registers an ingest manager, or that each module registers only one ingest
manager. Each ingest manager represents a single source of data. This may not necessary map
onto all possible nominal sources in node metadata (ex. a WebIngestManager may generate the
source from the scraped web data) but it represents all possible ways to obtain data.
Identifiers are namespaced as module::nodetype
, as enforced by the Registry in Python;
however, Identifiers default to the core
namespace when no namespace is provided, meaning
that some nodes in badly written, non-idiomatic ways may be registered under core
.
Looking at the registry namespaces should illustrate that modules with the same namespace
may register multiple, or no, ingest managers.