type subpath … var errUnsupported … // New returns a subpath.Interface for the current system. func New(mount.Interface) Interface { … } // NewNSEnter is to satisfy the compiler for having NewSubpathNSEnter exist for all // OS choices. however, NSEnter is only valid on Linux func NewNSEnter(mounter mount.Interface, ne *nsenter.Nsenter, rootDir string) Interface { … } func (sp *subpath) PrepareSafeSubpath(subPath Subpath) (newHostPath string, cleanupAction func(), err error) { … } func (sp *subpath) CleanSubPaths(podDir string, volumeName string) error { … } func (sp *subpath) SafeMakeDir(pathname string, base string, perm os.FileMode) error { … }