diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-05-01 12:51:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-01 12:51:31 +0200 |
commit | 277042fd16a862e13718c597366d41f46ffb80a5 (patch) | |
tree | d4e4cef44d422f877354f9892873fcfef486f2cd /libpod/network/config.go | |
parent | d6ec38f2eec6c9ac9e11db5cbf949a357fa13f28 (diff) | |
parent | d21c1aafe28cf59143655c7646f6eec7f9496686 (diff) | |
download | podman-277042fd16a862e13718c597366d41f46ffb80a5.tar.gz podman-277042fd16a862e13718c597366d41f46ffb80a5.tar.bz2 podman-277042fd16a862e13718c597366d41f46ffb80a5.zip |
Merge pull request #10182 from baude/machineCNI
Detect if in podman machine virtual vm
Diffstat (limited to 'libpod/network/config.go')
-rw-r--r-- | libpod/network/config.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libpod/network/config.go b/libpod/network/config.go index 294e23509..ac4478602 100644 --- a/libpod/network/config.go +++ b/libpod/network/config.go @@ -149,7 +149,18 @@ type DNSNameConfig struct { Capabilities map[string]bool `json:"capabilities"` } +// PodmanMachineConfig enables port handling on the host OS +type PodmanMachineConfig struct { + PluginType string `json:"type"` + Capabilities map[string]bool `json:"capabilities"` +} + // Bytes outputs the configuration as []byte func (d DNSNameConfig) Bytes() ([]byte, error) { return json.MarshalIndent(d, "", "\t") } + +// Bytes outputs the configuration as []byte +func (p PodmanMachineConfig) Bytes() ([]byte, error) { + return json.MarshalIndent(p, "", "\t") +} |