MCPcopy
hub / github.com/opencontainers/runc / currentStatus

Method currentStatus

libcontainer/container_linux.go:863–868  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

861}
862
863func (c *Container) currentStatus() (Status, error) {
864 if err := c.refreshState(); err != nil {
865 return -1, err
866 }
867 return c.state.status(), nil
868}
869
870// refreshState needs to be called to verify that the current state on the
871// container is what is true. Because consumers of libcontainer can use it

Callers 5

StatusMethod · 0.95
SetMethod · 0.95
PauseMethod · 0.95
ResumeMethod · 0.95
currentOCIStateMethod · 0.95

Calls 2

refreshStateMethod · 0.95
statusMethod · 0.65

Tested by

no test coverage detected