[][src]Trait em_client::NodeApi

pub trait NodeApi {
    type Error;
    fn deactivate_node(&self, node_id: Uuid) -> Result<(), Self::Error>;
fn get_all_nodes(
        &self,
        name: Option<String>,
        description: Option<String>,
        sgx_version: Option<String>,
        all_search: Option<String>,
        status: Option<String>,
        limit: Option<i32>,
        offset: Option<i32>,
        sort_by: Option<String>
    ) -> Result<GetAllNodesResponse, Self::Error>;
fn get_node(&self, node_id: Uuid) -> Result<Node, Self::Error>;
fn get_node_certificate(
        &self,
        node_id: Uuid
    ) -> Result<Certificate, Self::Error>;
fn get_node_certificate_details(
        &self,
        node_id: Uuid
    ) -> Result<CertificateDetails, Self::Error>; }

Associated Types

type Error

Loading content...

Required methods

fn deactivate_node(&self, node_id: Uuid) -> Result<(), Self::Error>

Deactivate a particular node

fn get_all_nodes(
    &self,
    name: Option<String>,
    description: Option<String>,
    sgx_version: Option<String>,
    all_search: Option<String>,
    status: Option<String>,
    limit: Option<i32>,
    offset: Option<i32>,
    sort_by: Option<String>
) -> Result<GetAllNodesResponse, Self::Error>

Get all nodes information

fn get_node(&self, node_id: Uuid) -> Result<Node, Self::Error>

Get details of a particular node

fn get_node_certificate(
    &self,
    node_id: Uuid
) -> Result<Certificate, Self::Error>

Get an attested node's certificate

fn get_node_certificate_details(
    &self,
    node_id: Uuid
) -> Result<CertificateDetails, Self::Error>

Get an node's certificate

Loading content...

Implementors

impl NodeApi for Client[src]

type Error = ApiError

Loading content...