Add id field to container
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
d4a09fd5c8
commit
b2c383892c
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue