github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/helper/mount/mount_unsupported.go (about)

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