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

Function isParent

pkg/containerutil/cp_resolve_linux.go:239–244  ·  view source on GitHub ↗
(child []string, candidate []string)

Source from the content-addressed store, hash-verified

237}
238
239func isParent(child []string, candidate []string) (bool, []string) {
240 if len(child) < len(candidate) {
241 return false, child
242 }
243 return slices.Equal(child[0:len(candidate)], candidate), child[len(candidate):]
244}
245
246// newResolver returns a resolver struct
247func newResolver(conSpec *oci.Spec, hostRoot string) *resolver {

Callers 2

pathOnHostMethod · 0.85
getMountMethod · 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…