MCPcopy Create free account
hub / github.com/containerd/cgroups / subPath

Function subPath

cgroup1/paths.go:92–100  ·  view source on GitHub ↗
(path Path, subName string)

Source from the content-addressed store, hash-verified

90}
91
92func subPath(path Path, subName string) Path {
93 return func(name Name) (string, error) {
94 p, err := path(name)
95 if err != nil {
96 return "", err
97 }
98 return filepath.Join(p, subName), nil
99 }
100}
101
102func errorPath(err error) Path {
103 return func(_ Name) (string, error) {

Callers 1

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