use GetFileType per mount.Interface to check hostpath type

This commit is contained in:
Di Xu
2017-09-08 18:15:03 +08:00
parent 46b0b3491f
commit 57ead4898b
17 changed files with 411 additions and 430 deletions

View File

@@ -79,6 +79,22 @@ func (mi *fakeMountInterface) MakeRShared(path string) error {
return nil
}
func (mi *fakeMountInterface) GetFileType(pathname string) (mount.FileType, error) {
return mount.FileType("fake"), nil
}
func (mi *fakeMountInterface) MakeDir(pathname string) error {
return nil
}
func (mi *fakeMountInterface) MakeFile(pathname string) error {
return nil
}
func (mi *fakeMountInterface) ExistsPath(pathname string) bool {
return true
}
func fakeContainerMgrMountInt() mount.Interface {
return &fakeMountInterface{
[]mount.MountPoint{