github.com/ranjib/nomad@v0.1.1-0.20160225204057-97751b02f70b/client/allocdir/alloc_dir_windows.go (about) 1 package allocdir 2 3 import ( 4 "errors" 5 "os" 6 ) 7 8 func (d *AllocDir) linkOrCopy(src, dst string, perm os.FileMode) error { 9 return fileCopy(src, dst, perm) 10 } 11 12 // The windows version does nothing currently. 13 func (d *AllocDir) mountSharedDir(dir string) error { 14 return errors.New("Mount on Windows not supported.") 15 } 16 17 // The windows version does nothing currently. 18 func (d *AllocDir) dropDirPermissions(path string) error { 19 return nil 20 } 21 22 // The windows version does nothing currently. 23 func (d *AllocDir) unmountSharedDir(dir string) error { 24 return nil 25 } 26 27 // MountSpecialDirs mounts the dev and proc file system on the chroot of the 28 // task. It's a no-op on windows. 29 func (d *AllocDir) MountSpecialDirs(taskDir string) error { 30 return nil 31 } 32 33 // unmountSpecialDirs unmounts the dev and proc file system from the chroot 34 func (d *AllocDir) unmountSpecialDirs(taskDir string) error { 35 return nil 36 }