github.com/adityamillind98/nomad@v0.11.8/helper/mount/mount_unsupported.go (about) 1 // +build !linux 2 3 package mount 4 5 import ( 6 "errors" 7 ) 8 9 // mounter provides the default implementation of mount.Mounter 10 // for unsupported platforms. 11 type mounter struct { 12 } 13 14 // New returns a Mounter for the current system. 15 func New() Mounter { 16 return &mounter{} 17 } 18 19 func (m *mounter) IsNotAMountPoint(path string) (bool, error) { 20 return false, errors.New("Unsupported platform") 21 } 22 23 func (m *mounter) Mount(device, target, mountType, options string) error { 24 return errors.New("Unsupported platform") 25 }