()
| 78 | } |
| 79 | |
| 80 | func 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 | |
| 91 | func CNIRuntimeDir() (string, error) { |
| 92 | if !rootlessutil.IsRootless() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…