You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <[email protected]>
Copy file name to clipboardExpand all lines: config.go
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -56,3 +56,15 @@ type MountPoint struct {
56
56
// Path specifies the path of the mount. The path and child directories MUST exist, a runtime MUST NOT create directories automatically to a mount point.
57
57
Pathstring`json:"path"`
58
58
}
59
+
60
+
// State holds information about the runtime state of the container.
61
+
typeStatestruct {
62
+
// Version is the version of the specification that is supported.
63
+
Versionstring`json:"version"`
64
+
// ID is the container ID
65
+
IDstring`json:"id"`
66
+
// Pid is the process id for the container's main process.
67
+
Pidint`json:"pid"`
68
+
// Root is the path to the container's bundle directory.
0 commit comments