Implement kpod inspect

kpod inspect allows the user to view low-level information about
containers and images

Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
This commit is contained in:
Ryan Cole 2017-06-29 15:16:06 -04:00
parent 3b295967f1
commit 0d4305a261
17 changed files with 1180 additions and 318 deletions

View file

@ -177,3 +177,10 @@ func (c *Container) NetNsPath() (string, error) {
func (c *Container) Metadata() *pb.ContainerMetadata {
return c.metadata
}
// State returns the state of the running container
func (c *Container) State() *ContainerState {
c.opLock.Lock()
defer c.opLock.Unlock()
return c.state
}