MCPcopy Create free account
hub / github.com/containerd/containerd / StartContainer

Method StartContainer

integration/nri_test.go:1023–1033  ·  view source on GitHub ↗
(ctx context.Context, pod *api.PodSandbox, ctr *api.Container)

Source from the content-addressed store, hash-verified

1021}
1022
1023func (m *mockPlugin) StartContainer(ctx context.Context, pod *api.PodSandbox, ctr *api.Container) error {
1024 if !m.inNamespace(pod.Namespace) {
1025 return nil
1026 }
1027
1028 m.Log("StartContainer %s/%s/%s", pod.Namespace, pod.Name, ctr.Name)
1029 m.pods[pod.Id] = pod
1030 m.ctrs[ctr.Id] = ctr
1031 m.q.Add(ContainerEvent(ctr, StartContainer))
1032 return nil
1033}
1034
1035func (m *mockPlugin) PostStartContainer(ctx context.Context, pod *api.PodSandbox, ctr *api.Container) error {
1036 if !m.inNamespace(pod.Namespace) {

Callers

nothing calls this directly

Calls 4

inNamespaceMethod · 0.95
LogMethod · 0.95
ContainerEventFunction · 0.85
AddMethod · 0.65

Tested by

no test coverage detected