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