MCPcopy Create free account
hub / github.com/containerd/nerdctl / CNINetConfPath

Function CNINetConfPath

pkg/defaults/defaults_linux.go:80–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80func CNINetConfPath() string {
81 if !rootlessutil.IsRootless() {
82 return cni.DefaultNetDir
83 }
84 xch, err := rootlessutil.XDGConfigHome()
85 if err != nil {
86 panic(err)
87 }
88 return filepath.Join(xch, "cni/net.d")
89}
90
91func CNIRuntimeDir() (string, error) {
92 if !rootlessutil.IsRootless() {

Callers

nothing calls this directly

Calls 2

IsRootlessFunction · 0.92
XDGConfigHomeFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…