Status returns the current status of the container.
()
| 91 | |
| 92 | // Status returns the current status of the container. |
| 93 | func (c *Container) Status() (Status, error) { |
| 94 | c.m.Lock() |
| 95 | defer c.m.Unlock() |
| 96 | return c.currentStatus() |
| 97 | } |
| 98 | |
| 99 | // State returns the current container's state information. |
| 100 | func (c *Container) State() (*State, error) { |