- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for NewHostUtil (0.18 sec)
-
pkg/volume/util/hostutil/hostutil_unsupported.go
"k8s.io/mount-utils" ) // HostUtil is an HostUtils implementation that allows compilation on // unsupported platforms type HostUtil struct{} // NewHostUtil returns a struct that implements the HostUtils interface on // unsupported platforms func NewHostUtil() *HostUtil { return &HostUtil{} } var errUnsupported = errors.New("volume/util/hostutil on this platform is not supported")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 08 10:17:38 UTC 2022 - 3.3K bytes - Viewed (0) -
pkg/volume/util/hostutil/hostutil_windows.go
"k8s.io/mount-utils" utilpath "k8s.io/utils/path" ) // HostUtil implements HostUtils for Windows platforms. type HostUtil struct{} // NewHostUtil returns a struct that implements HostUtils on Windows platforms func NewHostUtil() *HostUtil { return &HostUtil{} } // GetDeviceNameFromMount given a mnt point, find the device
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 13:38:40 UTC 2024 - 4.7K bytes - Viewed (0) -
pkg/volume/util/hostutil/hostutil_test.go
if f.raiseError { return nil, errors.New("Expected error.") } return f.mountRefs, nil } func TestDeviceNameFromMount(t *testing.T) { hu := NewHostUtil() path := "/tmp/foo" if goruntime.GOOS == "windows" { path = "C:" + path } testCases := map[string]struct { mountRefs []string expectedPath string raiseError bool
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 01 16:02:07 UTC 2023 - 5.6K bytes - Viewed (0) -
pkg/volume/util/hostutil/hostutil_linux.go
procMountInfoPath = "/proc/self/mountinfo" ) // HostUtil implements HostUtils for Linux platforms. type HostUtil struct { } // NewHostUtil returns a struct that implements the HostUtils interface on // linux platforms func NewHostUtil() *HostUtil { return &HostUtil{} } // DeviceOpened checks if block device in use by calling Open with O_EXCL flag.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 23 08:36:44 UTC 2023 - 10K bytes - Viewed (0) -
cmd/kubelet/app/server.go
if err != nil { return nil, err } mounter := mount.New(s.ExperimentalMounterPath) subpather := subpath.New(mounter) hu := hostutil.NewHostUtil() pluginRunner := exec.New() plugins, err := ProbeVolumePlugins(featureGate) if err != nil { return nil, err } var tp oteltrace.TracerProvider tp = noopoteltrace.NewTracerProvider()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:34 UTC 2024 - 53.9K bytes - Viewed (0)