mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
481552c02b
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
26 lines
758 B
Go
26 lines
758 B
Go
package network
|
|
|
|
// Struct describing the network specific checkpoint that will be maintained by libcontainer for all running containers
|
|
// This is an internal checkpoint, so do not depend on it outside of libcontainer.
|
|
type NetworkCkpt struct {
|
|
// The name of the veth interface on the Host.
|
|
VethHost string `json:"veth_host,omitempty"`
|
|
// The name of the veth interface created inside the container for the child.
|
|
VethChild string `json:"veth_child,omitempty"`
|
|
}
|
|
|
|
type NetworkCkptIntImpl struct{}
|
|
|
|
var (
|
|
networkCkptInfo = &NetworkCkpt{}
|
|
NetworkCkptImpl = &NetworkCkptIntImpl{}
|
|
)
|
|
|
|
func (NetworkCkptIntImpl) GetNetworkCkpt() *NetworkCkpt {
|
|
return networkCkptInfo
|
|
}
|
|
|
|
func (NetworkCkptIntImpl) updateNetworkCkpt(n *NetworkCkpt) {
|
|
networkCkptInfo = n
|
|
}
|