Skip to content

Commit 2078b31

Browse files
author
Mrunal Patel
committed
Merge pull request #206 from crosbymichael/bundle-state
Rename State's Root to Bundle
2 parents d521b54 + 34def3a commit 2078b31

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ type State struct {
6565
ID string `json:"id"`
6666
// Pid is the process id for the container's main process.
6767
Pid int `json:"pid"`
68-
// Root is the path to the container's bundle directory.
69-
Root string `json:"root"`
68+
// BundlePath is the path to the container's bundle directory.
69+
BundlePath string `json:"bundlePath"`
7070
}

runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ By providing a default location that container state is stored external applicat
1212
* **`version`** (string) Version of the OCI specification used when creating the container.
1313
* **`id`** (string) ID is the container's ID.
1414
* **`pid`** (int) Pid is the ID of the main process within the container.
15-
* **`root`** (string) Root is the path to the container's bundle directory.
15+
* **`bundlePath`** (string) BundlePath is the path to the container's bundle directory.
1616

1717
The ID is provided in the state because hooks will be executed with the state as the payload.
1818
This allows the hook to perform clean and teardown logic after the runtime destroys its own state.

0 commit comments

Comments
 (0)