pub struct EcsClient<'a> { /* private fields */ }Implementations§
Source§impl EcsClient<'_>
impl EcsClient<'_>
Sourcepub async fn get_clusters(&self) -> Result<EcsClustersResponse, Error>
pub async fn get_clusters(&self) -> Result<EcsClustersResponse, Error>
List all ECS clusters across every account the server has seen. Deterministic, sorted by cluster ARN. Bypasses the ECS control-plane auth and pagination so tests can assert directly on raw state.
Sourcepub async fn get_tasks(
&self,
cluster: Option<&str>,
status: Option<&str>,
) -> Result<EcsTasksResponse, Error>
pub async fn get_tasks( &self, cluster: Option<&str>, status: Option<&str>, ) -> Result<EcsTasksResponse, Error>
List every task the server has seen. Optional cluster / status
filters restrict the dump when supplied.
Sourcepub async fn get_task_logs(
&self,
task_id: &str,
) -> Result<EcsTaskLogsResponse, Error>
pub async fn get_task_logs( &self, task_id: &str, ) -> Result<EcsTaskLogsResponse, Error>
Tail stored container stdout/stderr for a single task. Works even
when no awslogs driver is configured — fakecloud always captures
docker stdout/stderr on exit and keeps it on the task.
Sourcepub async fn force_stop_task(&self, task_id: &str) -> Result<EcsTask, Error>
pub async fn force_stop_task(&self, task_id: &str) -> Result<EcsTask, Error>
Force the running container behind a task to stop.
Sourcepub async fn mark_task_failed(
&self,
task_id: &str,
req: &EcsMarkFailedRequest,
) -> Result<EcsTask, Error>
pub async fn mark_task_failed( &self, task_id: &str, req: &EcsMarkFailedRequest, ) -> Result<EcsTask, Error>
Flip the task to STOPPED without killing the underlying container — useful for simulating task failures in tests.
Sourcepub async fn get_events(&self) -> Result<EcsEventsResponse, Error>
pub async fn get_events(&self) -> Result<EcsEventsResponse, Error>
Replay the lifecycle event log.
Auto Trait Implementations§
impl<'a> Freeze for EcsClient<'a>
impl<'a> !RefUnwindSafe for EcsClient<'a>
impl<'a> Send for EcsClient<'a>
impl<'a> Sync for EcsClient<'a>
impl<'a> Unpin for EcsClient<'a>
impl<'a> UnsafeUnpin for EcsClient<'a>
impl<'a> !UnwindSafe for EcsClient<'a>
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