Trait AppApi

Source
pub trait AppApi {
    type Error;

    // Required methods
    fn add_application(&self, body: AppRequest) -> Result<App, Self::Error>;
    fn delete_app(&self, app_id: Uuid) -> Result<(), Self::Error>;
    fn get_all_apps(
        &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(&self, app_id: Uuid) -> Result<App, Self::Error>;
    fn get_app_certificate(
        &self,
        node_id: Uuid,
        app_id: Uuid,
    ) -> Result<Certificate, Self::Error>;
    fn get_app_node_certificate_details(
        &self,
        node_id: Uuid,
        app_id: Uuid,
    ) -> Result<CertificateDetails, Self::Error>;
    fn get_apps_unique_labels(&self) -> Result<LabelsCount, Self::Error>;
    fn update_app(
        &self,
        app_id: Uuid,
        body: AppBodyUpdateRequest,
    ) -> Result<App, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

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

Add an application.

Source

fn delete_app(&self, app_id: Uuid) -> Result<(), Self::Error>

Delete a particular app

Source

fn get_all_apps( &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.

Source

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

Get details of a particular app.

Source

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

Get an attested app’s certificate.

Source

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

Get an app’s certificate for a compute node.

Source

fn get_apps_unique_labels(&self) -> Result<LabelsCount, Self::Error>

Get all the unique labels across all the applications within selected account

Source

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

Update details of a particular app.

Implementors§