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

Function newResolver

pkg/containerutil/cp_resolve_linux.go:247–253  ·  view source on GitHub ↗

newResolver returns a resolver struct

(conSpec *oci.Spec, hostRoot string)

Source from the content-addressed store, hash-verified

245
246// newResolver returns a resolver struct
247func newResolver(conSpec *oci.Spec, hostRoot string) *resolver {
248 return &resolver{
249 root: conSpec.Root,
250 mounts: conSpec.Mounts,
251 hostRoot: hostRoot,
252 }
253}
254
255// pathOnHost will return the *host* location of a container path, accounting for volumes.
256// The provided path must be fully resolved, as returned by `resolvePath`.

Callers 1

getPathSpecFromContainerFunction · 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…