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

Class DockerHost

kuma-client/src/models/docker_host.rs:19–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#[serde_as]
18#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, Eq)]
19pub struct DockerHost {
20 /// The unique identifier for the docker host.
21 #[serde(rename = "id")]
22 #[serde_as(as = "Option<DeserializeNumberLenient>")]
23 pub id: Option<i32>,
24
25 /// The name of the docker host.
26 #[serde(rename = "name")]
27 pub name: Option<String>,
28
29 /// The connection type.
30 #[serde(rename = "dockerType")]
31 #[serde(alias = "connection_type")]
32 pub connection_type: Option<DockerConnectionType>,
33
34 /// The docker host. Depending on the connection type, this could be a uri or a path to a socket.
35 #[serde(rename = "dockerDaemon")]
36 #[serde(alias = "host")]
37 #[serde(alias = "path")]
38 pub host: Option<String>,
39
40 /// The user identifier associated with the docker host.
41 #[serde(rename = "userId")]
42 #[serde_as(as = "Option<DeserializeNumberLenient>")]
43 pub user_id: Option<i32>,
44}
45
46impl DockerHost {
47 pub fn new() -> Self {

Callers 6

get_managed_entitiesFunction · 0.85
fromMethod · 0.85
fromMethod · 0.85
resolve_namesFunction · 0.85
create_entityMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected