MCPcopy
hub / github.com/containerd/containerd / ContainerStatus

Method ContainerStatus

integration/remote/remote_runtime.go:175–181  ·  view source on GitHub ↗
(containerID string, _ ...grpc.CallOption)

Source from the content-addressed store, hash-verified

173}
174
175func (r *RuntimeService) ContainerStatus(containerID string, _ ...grpc.CallOption) (*runtimeapi.ContainerStatus, error) {
176 resp, err := r.runtimeService.ContainerStatus(context.Background(), containerID, false)
177 if err != nil {
178 return nil, err
179 }
180 return resp.GetStatus(), nil
181}
182
183func (r *RuntimeService) UpdateContainerResources(containerID string, resources *runtimeapi.LinuxContainerResources, windowsResources *runtimeapi.WindowsContainerResources, _ ...grpc.CallOption) error {
184 return r.runtimeService.UpdateContainerResources(context.Background(), containerID, &runtimeapi.ContainerResources{

Callers 15

TestPodUserNSFunction · 0.45
TestIssue10598Function · 0.45
TestLongContainerLogFunction · 0.45
TestAdditionalGidsFunction · 0.45
TestContainerdImageFunction · 0.45
TestWindowsRootfsSizeFunction · 0.45
getContainerBindVolumesFunction · 0.45
containerDataDirMethod · 0.45
checkContainerStateFunction · 0.45

Calls 1

GetStatusMethod · 0.65

Tested by 15

TestPodUserNSFunction · 0.36
TestIssue10598Function · 0.36
TestLongContainerLogFunction · 0.36
TestAdditionalGidsFunction · 0.36
TestContainerdImageFunction · 0.36
TestWindowsRootfsSizeFunction · 0.36
getContainerBindVolumesFunction · 0.36
containerDataDirMethod · 0.36
checkContainerStateFunction · 0.36