diff options
Diffstat (limited to 'src/endpoint/configured.rs')
-rw-r--r-- | src/endpoint/configured.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/endpoint/configured.rs b/src/endpoint/configured.rs index ba1c54e..68e6e60 100644 --- a/src/endpoint/configured.rs +++ b/src/endpoint/configured.rs @@ -241,6 +241,11 @@ impl Endpoint { let run_jobs = self.running_jobs() as f64; 100.0 / max_jobs * run_jobs } + + /// Ping the endpoint (once) + pub async fn ping(&self) -> Result<String> { + self.docker.ping().await.map_err(Error::from) + } } pub struct EndpointHandle(Arc<Endpoint>); |