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

Function getConfigPathForNetworkName

pkg/netutil/store.go:98–103  ·  view source on GitHub ↗
(e *CNIEnv, netName string)

Source from the content-addressed store, hash-verified

96}
97
98func getConfigPathForNetworkName(e *CNIEnv, netName string) string {
99 if netName == DefaultNetworkName || e.Namespace == "" {
100 return filepath.Join(e.NetconfPath, "nerdctl-"+netName+".conflist")
101 }
102 return filepath.Join(e.NetconfPath, e.Namespace, "nerdctl-"+netName+".conflist")
103}

Callers 2

fsExistsFunction · 0.85
fsWriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…