MCPcopy Index your code
hub / github.com/containerd/containerd / getNetworkNamespace

Function getNetworkNamespace

integration/nri_linux_test.go:216–224  ·  view source on GitHub ↗
(pod *api.PodSandbox)

Source from the content-addressed store, hash-verified

214}
215
216func getNetworkNamespace(pod *api.PodSandbox) string {
217 // get the pod network namespace
218 for _, namespace := range pod.Linux.GetNamespaces() {
219 if namespace.Type == "network" {
220 return namespace.Path
221 }
222 }
223 return ""
224}
225
226func getNetworkNamespaceIPs(nsPath string) []string {
227 ips := []string{}

Calls 1

GetNamespacesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…