NetdoxReader

Trait NetdoxReader 

Source
pub trait NetdoxReader {
    // Required methods
    fn get_default_network(
        &mut self,
    ) -> impl Future<Output = FCallResult<String>> + Send;
    fn qualify_dns_names(
        &mut self,
        names: Vec<String>,
    ) -> impl Future<Output = FCallResult<Vec<String>>> + Send;
    fn get_dns_names(
        &mut self,
    ) -> impl Future<Output = FCallResult<HashSet<String>>> + Send;
    fn get_nodes(
        &mut self,
    ) -> impl Future<Output = FCallResult<Vec<Node>>> + Send;
    fn get_node(
        &mut self,
        link_id: &str,
    ) -> impl Future<Output = FCallResult<Node>> + Send;
    fn get_dns_metadata(
        &mut self,
        name: &str,
    ) -> impl Future<Output = FCallResult<HashMap<String, String>>> + Send;
    fn get_node_metadata(
        &mut self,
        node: &Node,
    ) -> impl Future<Output = FCallResult<HashMap<String, String>>> + Send;
}
Expand description

Defines the read API.

Required Methods§

Source

fn get_default_network( &mut self, ) -> impl Future<Output = FCallResult<String>> + Send

Fetch the default network namespace.

Source

fn qualify_dns_names( &mut self, names: Vec<String>, ) -> impl Future<Output = FCallResult<Vec<String>>> + Send

Prepend the default network qualifier to a list of DNS names.

Source

fn get_dns_names( &mut self, ) -> impl Future<Output = FCallResult<HashSet<String>>> + Send

Fetch all the DNS names from the datastore.

Source

fn get_nodes(&mut self) -> impl Future<Output = FCallResult<Vec<Node>>> + Send

Fetch all the nodes from the datastore.

Source

fn get_node( &mut self, link_id: &str, ) -> impl Future<Output = FCallResult<Node>> + Send

Fetch a processed node using its link ID.

Source

fn get_dns_metadata( &mut self, name: &str, ) -> impl Future<Output = FCallResult<HashMap<String, String>>> + Send

Fetch the metadata for a DNS name.

Source

fn get_node_metadata( &mut self, node: &Node, ) -> impl Future<Output = FCallResult<HashMap<String, String>>> + Send

Fetch the metadata for a node.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NetdoxReader for MultiplexedConnection

Source§

async fn get_default_network(&mut self) -> FCallResult<String>

Source§

async fn qualify_dns_names( &mut self, names: Vec<String>, ) -> FCallResult<Vec<String>>

Source§

async fn get_dns_names(&mut self) -> FCallResult<HashSet<String>>

Source§

async fn get_nodes(&mut self) -> FCallResult<Vec<Node>>

Source§

async fn get_node(&mut self, link_id: &str) -> FCallResult<Node>

Source§

async fn get_dns_metadata( &mut self, name: &str, ) -> FCallResult<HashMap<String, String>>

Source§

async fn get_node_metadata( &mut self, node: &Node, ) -> FCallResult<HashMap<String, String>>

Implementors§