diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-01 18:27:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 18:27:16 +0200 |
commit | 226e0da6fe12bf8a023f67ce6cebacd54ec65fdc (patch) | |
tree | a42bfedb583873d9d9e9d8830b6f688b138e0d08 /pkg/domain/entities/network.go | |
parent | 49107a5a2ee98793b4ecfaa0e1a6cacfdf5ccdd0 (diff) | |
parent | 98e71583a4e7a0bf1f4a00fcab8bafa4915eb14a (diff) | |
download | podman-226e0da6fe12bf8a023f67ce6cebacd54ec65fdc.tar.gz podman-226e0da6fe12bf8a023f67ce6cebacd54ec65fdc.tar.bz2 podman-226e0da6fe12bf8a023f67ce6cebacd54ec65fdc.zip |
Merge pull request #6057 from baude/v2networking
v2networking enable commands
Diffstat (limited to 'pkg/domain/entities/network.go')
-rw-r--r-- | pkg/domain/entities/network.go | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkg/domain/entities/network.go b/pkg/domain/entities/network.go new file mode 100644 index 000000000..cffd40899 --- /dev/null +++ b/pkg/domain/entities/network.go @@ -0,0 +1,52 @@ +package entities + +import ( + "net" + + "github.com/containernetworking/cni/libcni" +) + +// NetworkListOptions describes options for listing networks in cli +type NetworkListOptions struct { + Format string + Quiet bool +} + +// NetworkListReport describes the results from listing networks +type NetworkListReport struct { + *libcni.NetworkConfigList +} + +// NetworkInspectOptions describes options for inspect networks +type NetworkInspectOptions struct { +} + +// NetworkInspectReport describes the results from inspect networks +type NetworkInspectReport map[string]interface{} + +// NetworkRmOptions describes options for removing networks +type NetworkRmOptions struct { + Force bool +} + +//NetworkRmReport describes the results of network removal +type NetworkRmReport struct { + Name string + Err error +} + +// NetworkCreateOptions describes options to create a network +type NetworkCreateOptions struct { + DisableDNS bool + Driver string + Gateway net.IP + Internal bool + MacVLAN string + Range net.IPNet + Subnet net.IPNet +} + +// NetworkCreateReport describes a created network for the cli +type NetworkCreateReport struct { + Filename string +} |