MCPcopy Create free account
hub / github.com/BigBoot/AutoKuma / get_docker_hosts

Method get_docker_hosts

kuma-client/src/client.rs:1675–1680  ·  view source on GitHub ↗

Retrieves a list of status pages from Uptime Kuma.

(&self)

Source from the content-addressed store, hash-verified

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> {

Callers 2

get_docker_hostMethod · 0.45
handleFunction · 0.45

Calls 1

is_readyMethod · 0.80

Tested by

no test coverage detected