Files
moby/daemon/server/networkbackend/network.go
Austin Vazquez e9f28e2a41 client: refactor NetworkConnect, NetworkDisconnect, NetworkRemove
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-10-29 13:02:01 +01:00

18 lines
448 B
Go

package networkbackend
import "github.com/moby/moby/api/types/network"
// ConnectRequest represents the data to be used to connect a container to the
// network.
type ConnectRequest struct {
Container string
EndpointConfig *network.EndpointSettings `json:",omitempty"`
}
// DisconnectRequest represents the data to be used to disconnect a container
// from the network.
type DisconnectRequest struct {
Container string
Force bool
}