[][src]Trait em_client::AppApiMut

pub trait AppApiMut {
    type Error;
    fn add_application(&mut self, body: AppRequest) -> Result<App, Self::Error>;
fn get_all_apps(
        &mut self,
        name: Option<String>,
        description: Option<String>,
        all_search: Option<String>,
        limit: Option<i32>,
        offset: Option<i32>,
        sort_by: Option<String>
    ) -> Result<GetAllAppsResponse, Self::Error>;
fn get_app(&mut self, app_id: Uuid) -> Result<App, Self::Error>;
fn get_app_certificate(
        &mut self,
        node_id: Uuid,
        app_id: Uuid
    ) -> Result<Certificate, Self::Error>;
fn get_app_node_certificate_details(
        &mut self,
        node_id: Uuid,
        app_id: Uuid
    ) -> Result<CertificateDetails, Self::Error>;
fn update_app(
        &mut self,
        app_id: Uuid,
        body: AppBodyUpdateRequest
    ) -> Result<App, Self::Error>; }

Associated Types

type Error

Loading content...

Required methods

fn add_application(&mut self, body: AppRequest) -> Result<App, Self::Error>

Add an application

fn get_all_apps(
    &mut self,
    name: Option<String>,
    description: Option<String>,
    all_search: Option<String>,
    limit: Option<i32>,
    offset: Option<i32>,
    sort_by: Option<String>
) -> Result<GetAllAppsResponse, Self::Error>

Get all apps information

fn get_app(&mut self, app_id: Uuid) -> Result<App, Self::Error>

Get details of a particular app

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

Get an attested app's certificate

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

Get an App's Certificate for a Node

fn update_app(
    &mut self,
    app_id: Uuid,
    body: AppBodyUpdateRequest
) -> Result<App, Self::Error>

Update details of a particular app

Loading content...

Implementors

impl<T, E> AppApiMut for T where
    T: AppApi<Error = E>, 
[src]

type Error = E

Loading content...