mirror of
https://github.com/containers/podman.git
synced 2025-10-17 03:04:21 +08:00

Commit 668d517af9 moved a lot of type definitions and by that also copied a bucnh of swagger:model comments, this caused swagger to create a incorrect yaml that can no longer be parsed by redoc due "Self-referencing circular pointer". The yaml basically defined the type with a name and the pointed to the same name definition again so it caused a infinitive recursion where redoc just throws an error but the swagger style ignored the case so it seemed like it worked but obviously the type information was not working. Fixes #22351 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
87 lines
2.5 KiB
Go
87 lines
2.5 KiB
Go
package entities
|
|
|
|
import (
|
|
"net"
|
|
|
|
entitiesTypes "github.com/containers/podman/v5/pkg/domain/entities/types"
|
|
)
|
|
|
|
// NetworkListOptions describes options for listing networks in cli
|
|
type NetworkListOptions struct {
|
|
Format string
|
|
Quiet bool
|
|
Filters map[string][]string
|
|
}
|
|
|
|
// NetworkReloadOptions describes options for reloading container network
|
|
// configuration.
|
|
type NetworkReloadOptions struct {
|
|
All bool
|
|
Latest bool
|
|
}
|
|
|
|
// NetworkReloadReport describes the results of reloading a container network.
|
|
type NetworkReloadReport = entitiesTypes.NetworkReloadReport
|
|
|
|
// NetworkRmOptions describes options for removing networks
|
|
type NetworkRmOptions struct {
|
|
Force bool
|
|
Timeout *uint
|
|
}
|
|
|
|
// NetworkRmReport describes the results of network removal
|
|
type NetworkRmReport = entitiesTypes.NetworkRmReport
|
|
|
|
// NetworkCreateOptions describes options to create a network
|
|
type NetworkCreateOptions struct {
|
|
DisableDNS bool
|
|
Driver string
|
|
Gateways []net.IP
|
|
Internal bool
|
|
Labels map[string]string
|
|
MacVLAN string
|
|
NetworkDNSServers []string
|
|
Ranges []string
|
|
Subnets []string
|
|
Routes []string
|
|
IPv6 bool
|
|
// Mapping of driver options and values.
|
|
Options map[string]string
|
|
// IgnoreIfExists if true, do not fail if the network already exists
|
|
IgnoreIfExists bool
|
|
// InterfaceName sets the NetworkInterface in the network config
|
|
InterfaceName string
|
|
}
|
|
|
|
// NetworkUpdateOptions describes options to update a network
|
|
type NetworkUpdateOptions struct {
|
|
AddDNSServers []string `json:"adddnsservers"`
|
|
RemoveDNSServers []string `json:"removednsservers"`
|
|
}
|
|
|
|
// NetworkCreateReport describes a created network for the cli
|
|
type NetworkCreateReport = entitiesTypes.NetworkCreateReport
|
|
|
|
// NetworkDisconnectOptions describes options for disconnecting
|
|
// containers from networks
|
|
type NetworkDisconnectOptions struct {
|
|
Container string
|
|
Force bool
|
|
}
|
|
|
|
// NetworkConnectOptions describes options for connecting
|
|
// a container to a network
|
|
type NetworkConnectOptions = entitiesTypes.NetworkConnectOptions
|
|
|
|
// NetworkPruneReport containers the name of network and an error
|
|
// associated in its pruning (removal)
|
|
type NetworkPruneReport = entitiesTypes.NetworkPruneReport
|
|
|
|
// NetworkPruneOptions describes options for pruning unused networks
|
|
type NetworkPruneOptions struct {
|
|
Filters map[string][]string
|
|
}
|
|
|
|
type NetworkInspectReport = entitiesTypes.NetworkInspectReport
|
|
type NetworkContainerInfo = entitiesTypes.NetworkContainerInfo
|