forked from openshift/geard
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RuntimeCkpt is now State and the checkpoint file is called state.json.
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
- Loading branch information
Showing
9 changed files
with
55 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package network | ||
|
||
// Struct describing the network specific runtime state that will be maintained by libcontainer for all running containers | ||
// Do not depend on it outside of libcontainer. | ||
type NetworkState 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 networkStateIntImpl struct{} | ||
|
||
var ( | ||
networkState = &NetworkState{} | ||
NetworkStateImpl = &networkStateIntImpl{} | ||
) | ||
|
||
func (networkStateIntImpl) GetNetworkState() *NetworkState { | ||
return networkState | ||
} | ||
|
||
func (networkStateIntImpl) updateNetworkState(n *NetworkState) { | ||
networkState = n | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters