MCPcopy
hub / github.com/containerd/containerd / dataDir

Method dataDir

integration/release_upgrade_linux_test.go:766–772  ·  view source on GitHub ↗

dataDir returns pod metadata dir maintained by CRI plugin.

()

Source from the content-addressed store, hash-verified

764
765// dataDir returns pod metadata dir maintained by CRI plugin.
766func (pCtx *podTCtx) dataDir() string {
767 t := pCtx.t
768
769 cfg := criRuntimeInfo(t, pCtx.rSvc)
770 rootDir := cfg["rootDir"].(string)
771 return filepath.Join(rootDir, "sandboxes", pCtx.id)
772}
773
774// imageVolumeDir returns the image volume directory for this pod.
775func (pCtx *podTCtx) imageVolumeDir() string {

Calls 1

criRuntimeInfoFunction · 0.85

Tested by

no test coverage detected