pub trait AppApi {
type Error;
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>;
}
Associated Types
Required methods
fn add_application(&self, body: AppRequest) -> Result<App, Self::Error>
fn add_application(&self, body: AppRequest) -> Result<App, Self::Error>
Add an application.
Get all apps information.
fn get_app_certificate(
&self,
node_id: Uuid,
app_id: Uuid
) -> Result<Certificate, Self::Error>
fn get_app_certificate(
&self,
node_id: Uuid,
app_id: Uuid
) -> Result<Certificate, Self::Error>
Get an attested app’s certificate.
fn get_app_node_certificate_details(
&self,
node_id: Uuid,
app_id: Uuid
) -> Result<CertificateDetails, Self::Error>
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.
fn get_apps_unique_labels(&self) -> Result<LabelsCount, Self::Error>
fn get_apps_unique_labels(&self) -> Result<LabelsCount, Self::Error>
Get all the unique labels across all the applications within selected account
fn update_app(
&self,
app_id: Uuid,
body: AppBodyUpdateRequest
) -> Result<App, Self::Error>
fn update_app(
&self,
app_id: Uuid,
body: AppBodyUpdateRequest
) -> Result<App, Self::Error>
Update details of a particular app.