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

Method State

libcontainer/container_linux.go:100–104  ·  view source on GitHub ↗

State returns the current container's state information.

()

Source from the content-addressed store, hash-verified

98
99// State returns the current container's state information.
100func (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.
107func (c *Container) OCIState() (*specs.State, error) {

Callers 9

TestGetContainerStateFunction · 0.95
waitForContainerMethod · 0.80
state.goFile · 0.80
getContainersFunction · 0.80
Example_containerFunction · 0.80
TestContainerStateFunction · 0.80
TestInitJoinPIDFunction · 0.80

Calls 1

currentStateMethod · 0.95

Tested by 6

TestGetContainerStateFunction · 0.76
Example_containerFunction · 0.64
TestContainerStateFunction · 0.64
TestInitJoinPIDFunction · 0.64