spiegel_podman/pkg/domain/entities/network.go
baude e88a418528 v2networking enable commands
Enable the networking commands for v2.

Signed-off-by: baude <bbaude@redhat.com>
2020-04-30 14:53:54 -05:00

52 lines
1.1 KiB
Go

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
}