Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,3 @@ type MountPoint struct {
// 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.
Path string `json:"path"`
}

// State holds information about the runtime state of the container.
type State struct {
// Version is the version of the specification that is supported.
Version string `json:"version"`
// 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 is the path to the container's bundle directory.
Root string `json:"root"`
}
3 changes: 0 additions & 3 deletions runtime_config_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ package specs

import "os"

// LinuxStateDirectory holds the container's state information
const LinuxStateDirectory = "/run/oci/containers"

// LinuxRuntimeSpec is the full specification for linux containers.
type LinuxRuntimeSpec struct {
RuntimeSpec
Expand Down
13 changes: 13 additions & 0 deletions state.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package specs

// State holds information about the runtime state of the container.
type State struct {
// Version is the version of the specification that is supported.
Version string `json:"version"`
// 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 is the path to the container's bundle directory.
Root string `json:"root"`
}
6 changes: 6 additions & 0 deletions state_linux.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// +build linux

package specs

// LinuxStateDirectory holds the container's state information
const LinuxStateDirectory = "/run/oci/containers"