Versions in this module Expand all Collapse all v1 v1.16.3 Nov 9, 2022 Changes in this version + func DoMakeRShared(path string, mountInfoFilename string) error — linux/amd64 + func ExclusiveOpenFailsOnDevice(pathname string) (bool, error) — linux/amd64 + func GetModeLinux(pathname string) (os.FileMode, error) — linux/amd64 + func GetOwnerLinux(pathname string) (int64, int64, error) — linux/amd64 + func GetSELinux(path string, mountInfoFilename string) (bool, error) — linux/amd64 + type FakeHostUtil struct + Filesystem map[string]FileType + MountPoints []mount.MountPoint + func NewFakeHostUtil(fs map[string]FileType) *FakeHostUtil + func (hu *FakeHostUtil) DeviceOpened(pathname string) (bool, error) + func (hu *FakeHostUtil) EvalHostSymlinks(pathname string) (string, error) + func (hu *FakeHostUtil) GetDeviceNameFromMount(mounter mount.Interface, mountPath, pluginMountDir string) (string, error) + func (hu *FakeHostUtil) GetFileType(pathname string) (FileType, error) + func (hu *FakeHostUtil) GetMode(pathname string) (os.FileMode, error) + func (hu *FakeHostUtil) GetOwner(pathname string) (int64, int64, error) + func (hu *FakeHostUtil) GetSELinuxSupport(pathname string) (bool, error) + func (hu *FakeHostUtil) MakeRShared(path string) error + func (hu *FakeHostUtil) PathExists(pathname string) (bool, error) + func (hu *FakeHostUtil) PathIsDevice(pathname string) (bool, error) + type FileType string + const FileTypeBlockDev + const FileTypeCharDev + const FileTypeDirectory + const FileTypeFile + const FileTypeSocket + const FileTypeUnknown + type HostUtil struct + func NewHostUtil() *HostUtil + func (hu *(HostUtil)) GetFileType(pathname string) (FileType, error) + func (hu *HostUtil) DeviceOpened(pathname string) (bool, error) + func (hu *HostUtil) EvalHostSymlinks(pathname string) (string, error) + func (hu *HostUtil) GetDeviceNameFromMount(mounter mount.Interface, mountPath, pluginMountDir string) (string, error) + func (hu *HostUtil) GetFileType(pathname string) (FileType, error) + func (hu *HostUtil) GetMode(pathname string) (os.FileMode, error) + func (hu *HostUtil) GetOwner(pathname string) (int64, int64, error) + func (hu *HostUtil) GetSELinuxSupport(pathname string) (bool, error) + func (hu *HostUtil) MakeDir(pathname string) error + func (hu *HostUtil) MakeFile(pathname string) error + func (hu *HostUtil) MakeRShared(path string) error + func (hu *HostUtil) PathExists(pathname string) (bool, error) + func (hu *HostUtil) PathIsDevice(pathname string) (bool, error) + type HostUtils interface + DeviceOpened func(pathname string) (bool, error) + EvalHostSymlinks func(pathname string) (string, error) + GetDeviceNameFromMount func(mounter mount.Interface, mountPath, pluginMountDir string) (string, error) + GetFileType func(pathname string) (FileType, error) + GetMode func(pathname string) (os.FileMode, error) + GetOwner func(pathname string) (int64, int64, error) + GetSELinuxSupport func(pathname string) (bool, error) + MakeRShared func(path string) error + PathExists func(pathname string) (bool, error) + PathIsDevice func(pathname string) (bool, error)