diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-08-24 15:15:56 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-01-04 09:51:09 -0500 |
commit | d4b2f116018e1d8e6a3c4f80f30db45934428c6b (patch) | |
tree | 66b020a3db3824d4b5c9831a1b41043aa59a5150 /libpod/pod.go | |
parent | 3de560053f4b391c8386554160f61a2a086c1564 (diff) | |
download | podman-d4b2f116018e1d8e6a3c4f80f30db45934428c6b.tar.gz podman-d4b2f116018e1d8e6a3c4f80f30db45934428c6b.tar.bz2 podman-d4b2f116018e1d8e6a3c4f80f30db45934428c6b.zip |
Convert pods to SHM locks
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/pod.go')
-rw-r--r-- | libpod/pod.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libpod/pod.go b/libpod/pod.go index 07f41f5c6..4ce697402 100644 --- a/libpod/pod.go +++ b/libpod/pod.go @@ -3,7 +3,7 @@ package libpod import ( "time" - "github.com/containers/storage" + "github.com/containers/libpod/libpod/lock" "github.com/cri-o/ocicni/pkg/ocicni" "github.com/pkg/errors" ) @@ -26,7 +26,7 @@ type Pod struct { valid bool runtime *Runtime - lock storage.Locker + lock lock.Locker } // PodConfig represents a pod's static configuration @@ -60,6 +60,9 @@ type PodConfig struct { // Time pod was created CreatedTime time.Time `json:"created"` + + // ID of the pod's lock + LockID uint32 `json:"lockID"` } // podState represents a pod's state |