Defines request structs for connecting and disconnecting containers to networks.
// Source: https://github.com/moby/moby | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
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
}
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key