State returns the current container's state information.
()
| 98 | |
| 99 | // State returns the current container's state information. |
| 100 | func (c *Container) State() (*State, error) { |
| 101 | c.m.Lock() |
| 102 | defer c.m.Unlock() |
| 103 | return c.currentState(), nil |
| 104 | } |
| 105 | |
| 106 | // OCIState returns the current container's state information. |
| 107 | func (c *Container) OCIState() (*specs.State, error) { |