-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add runtime state configuration and structs
This adds runtime state information for oci container's so that it can be persisted and used by external tools. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
- Loading branch information
1 parent
7414f4d
commit 6c6fc05
Showing
3 changed files
with
74 additions
and
0 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package specs | ||
|
||
// State holds information about the runtime state of the container | ||
type State struct { | ||
// ID is the container ID | ||
ID string `json:"id"` | ||
// Pid is the process id for the container's main process | ||
Pid int `json:"pid"` | ||
// Root path to the container's root filesystem | ||
Root string `json:"root"` | ||
} |