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

Method edit_docker_host

kuma-client/src/client.rs:1193–1207  ·  view source on GitHub ↗
(self: &Arc<Self>, docker_host: &mut DockerHost)

Source from the content-addressed store, hash-verified

1191 }
1192
1193 pub async fn edit_docker_host(self: &Arc<Self>, docker_host: &mut DockerHost) -> Result<()> {
1194 docker_host.id = self
1195 .call(
1196 "addDockerHost",
1197 vec![
1198 serde_json::to_value(docker_host.clone()).unwrap(),
1199 serde_json::to_value(docker_host.id.clone()).unwrap(),
1200 ],
1201 "/id",
1202 true,
1203 )
1204 .await?;
1205
1206 Ok(())
1207 }
1208
1209 pub async fn delete_docker_host(self: &Arc<Self>, docker_host_id: i32) -> Result<()> {
1210 let _: bool = self

Callers 3

add_docker_hostMethod · 0.80
update_entityMethod · 0.80
handleFunction · 0.80

Calls 1

callMethod · 0.45

Tested by

no test coverage detected