Retrieves a list of status pages from Uptime Kuma.
(&self)
| 1673 | |
| 1674 | /// Retrieves a list of status pages from Uptime Kuma. |
| 1675 | pub async fn get_docker_hosts(&self) -> Result<DockerHostList> { |
| 1676 | match self.worker.is_ready().await { |
| 1677 | true => Ok(self.worker.docker_hosts.lock().await.clone()), |
| 1678 | false => Err(Error::NotReady), |
| 1679 | } |
| 1680 | } |
| 1681 | |
| 1682 | /// Retrieves information about a specific docker host identified by its id. |
| 1683 | pub async fn get_docker_host(&self, docker_host_id: i32) -> Result<DockerHost> { |
no test coverage detected