(x containerd.Status, labels map[string]string)
| 769 | } |
| 770 | |
| 771 | func statusFromNative(x containerd.Status, labels map[string]string) string { |
| 772 | switch s := x.Status; s { |
| 773 | case containerd.Stopped: |
| 774 | if labels[restart.StatusLabel] == string(containerd.Running) && restart.Reconcile(x, labels) { |
| 775 | return "restarting" |
| 776 | } |
| 777 | return "exited" |
| 778 | default: |
| 779 | return string(s) |
| 780 | } |
| 781 | } |
| 782 | |
| 783 | func networkSettingsFromNative(n *native.NetNS, _ *specs.Spec) (*NetworkSettings, error) { |
| 784 | res := &NetworkSettings{ |
no outgoing calls
no test coverage detected
searching dependent graphs…