From b2c383892c79a525039dcb22f0a5218de53e3a21 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Tue, 4 Oct 2016 14:17:15 -0700 Subject: [PATCH] Add id field to container Signed-off-by: Mrunal Patel --- oci/oci.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/oci/oci.go b/oci/oci.go index 66c9dc86..7a449d09 100644 --- a/oci/oci.go +++ b/oci/oci.go @@ -208,6 +208,7 @@ func (r *Runtime) ContainerStatus(c *Container) *ContainerState { // Container respresents a runtime container. type Container struct { + id string name string bundlePath string logPath string @@ -245,6 +246,11 @@ func (c *Container) Name() string { return c.name } +// ID returns the id of the container. +func (c *Container) ID() string { + return c.id +} + // BundlePath returns the bundlePath of the container. func (c *Container) BundlePath() string { return c.bundlePath