open-nomad/helper/mount/mount_unsupported.go
Danielle Lancashire 6ee038d515 helper/mount: Add mount helper package
This package introduces some basic abstractions around mount utilties
for various platforms. Initially it only supports linux, but the plan is
to expand this as CSI expands across to other platforms.
2020-03-23 13:58:29 -04:00

26 lines
503 B
Go

// +build !linux
package mount
import (
"errors"
)
// mounter provides the default implementation of mount.Mounter
// for unsupported platforms.
type mounter struct {
}
// New returns a Mounter for the current system.
func New() Mounter {
return &mounter{}
}
func (m *mounter) IsNotAMountPoint(path string) (bool, error) {
return false, errors.New("Unsupported platform")
}
func (m *mounter) Mount(device, target, mountType, options string) error {
return errors.New("Unsupported platform")
}