pub struct ApplicationService<S> { /* private fields */ }Expand description
Service for managing applications
Implementations§
Source§impl<S> ApplicationService<S>where
S: ApplicationStore,
impl<S> ApplicationService<S>where
S: ApplicationStore,
Source§impl<S: ApplicationStore> ApplicationService<S>
impl<S: ApplicationStore> ApplicationService<S>
Sourcepub fn new(store: Arc<RwLock<S>>) -> Self
pub fn new(store: Arc<RwLock<S>>) -> Self
Create a new ApplicationService with default AWS provider
Sourcepub fn with_provider(&self, provider: Arc<dyn CloudProvider>) -> Self
pub fn with_provider(&self, provider: Arc<dyn CloudProvider>) -> Self
Returns a new service instance with different provider
Sourcepub async fn create_application(
&self,
application: Application,
) -> Result<Application>
pub async fn create_application( &self, application: Application, ) -> Result<Application>
Create a new application
Sourcepub async fn get_application(
&self,
application_arn: &str,
) -> Result<Option<Application>>
pub async fn get_application( &self, application_arn: &str, ) -> Result<Option<Application>>
Get an application by ARN
Sourcepub async fn list_applications(
&self,
instance_arn: &str,
) -> Result<Vec<Application>>
pub async fn list_applications( &self, instance_arn: &str, ) -> Result<Vec<Application>>
List applications for an instance
Auto Trait Implementations§
impl<S> !RefUnwindSafe for ApplicationService<S>
impl<S> !UnwindSafe for ApplicationService<S>
impl<S> Freeze for ApplicationService<S>
impl<S> Send for ApplicationService<S>
impl<S> Sync for ApplicationService<S>
impl<S> Unpin for ApplicationService<S>
impl<S> UnsafeUnpin for ApplicationService<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more