- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newFileTypeChecker (0.13 sec)
-
pkg/volume/hostpath/host_path.go
return ftc.path } func newFileTypeChecker(path string, hu hostutil.HostUtils) hostPathTypeChecker { return &fileTypeChecker{path: path, hu: hu} } // checkType checks whether the given path is the exact pathType func checkType(path string, pathType *v1.HostPathType, hu hostutil.HostUtils) error { return checkTypeInternal(newFileTypeChecker(path, hu), pathType) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 15.3K bytes - Viewed (0) -
pkg/volume/hostpath/host_path_test.go
}, } for i, tc := range testCases { fakeFTC := hostutil.NewFakeHostUtil( map[string]hostutil.FileType{ tc.path: hostutil.FileType(tc.desiredType), }) oftc := newFileTypeChecker(tc.path, fakeFTC) path := oftc.GetPath() if path != tc.path { t.Errorf("[%d: %q] got unexpected path: %s", i, tc.name, path) } exist := oftc.Exists() if !exist {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 00:37:30 UTC 2023 - 20.5K bytes - Viewed (0)