Struct RegistryHandler

Source
pub struct RegistryHandler { /* private fields */ }
Expand description

Wraps the registries in the Galaxy db.

Implementations§

Source§

impl RegistryHandler

Source

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.

Source

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.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Ungil for T
where T: Send,