summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-04-09 08:56:52 +0200
committerGitHub <noreply@github.com>2021-04-09 08:56:52 +0200
commitd6bf9d4f8ecfe7c5d32bde031f37beeb842deef8 (patch)
tree5f3508a6325c0b254c040a7b6b5e84d81012e542
parent2a79c695b7fceb7b7f1a9ebf336a2fcd03714a0a (diff)
parentf660bb9a40b3608ba8eafd2290a333c4f9b24acd (diff)
Merge pull request #254 from wojciechkepka/net_entry
Add missing fields to NetworkEntry
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/network.rs14
2 files changed, 15 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c53c86d..1d2877f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@
* rename `shiplift::rep::Config` to `shiplift::rep::ContainerConfig` [#264](https://github.com/softprops/shiplift/pull/264)
* add missing fields ([API version 1.41](https://docs.docker.com/engine/api/v1.41/#operation/ImageInspect)) to `ContainerConfig` [#264](https://github.com/softprops/shiplift/pull/264)
* add missing fields ([API version 1.41](https://docs.docker.com/engine/api/v1.41/#operation/ImageHistory)) to `History` [#264](https://github.com/softprops/shiplift/pull/264)
+* add missing fields to `NetworkEntry` [#254](https://github.com/softprops/shiplift/pull/254)
# 0.7.0
diff --git a/src/network.rs b/src/network.rs
index e274d2d..bafcd51 100644
--- a/src/network.rs
+++ b/src/network.rs
@@ -335,6 +335,20 @@ pub struct NetworkEntry {
#[serde(rename = "GlobalIPv6PrefixLen")]
pub global_ipv6_prefix_len: u64,
pub mac_address: String,
+ pub links: Option<Vec<String>>,
+ pub aliases: Option<Vec<String>>,
+ #[serde(rename = "IPAMConfig")]
+ pub ipam_config: Option<EndpointIPAMConfig>,
+}
+
+#[derive(Clone, Debug, Serialize, Deserialize)]
+pub struct EndpointIPAMConfig {
+ #[serde(rename = "IPv4Address")]
+ pub ipv4_address: String,
+ #[serde(rename = "IPv6Address")]
+ pub ipv6_address: String,
+ #[serde(rename = "LinkLocalIPs")]
+ pub link_local_ips: Vec<String>,
}
#[derive(Clone, Debug, Serialize, Deserialize)]