- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewHostUtil (0.36 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)