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§
Sourcefn add_application(&self, body: AppRequest) -> Result<App, Self::Error>
fn add_application(&self, body: AppRequest) -> Result<App, Self::Error>
Add an application.
Sourcefn 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_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.
Sourcefn 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.
Sourcefn 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.
Sourcefn 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
Sourcefn 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.