mount_unsupported.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // +build !linux
  2. /*
  3. Copyright 2014 The Kubernetes Authors.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. */
  14. package mount
  15. type Mounter struct{}
  16. func (mounter *Mounter) Mount(source string, target string, fstype string, options []string) error {
  17. return nil
  18. }
  19. func (mounter *Mounter) Unmount(target string) error {
  20. return nil
  21. }
  22. func (mounter *Mounter) List() ([]MountPoint, error) {
  23. return []MountPoint{}, nil
  24. }
  25. func (mounter *Mounter) IsLikelyNotMountPoint(file string) (bool, error) {
  26. return true, nil
  27. }
  28. func (mounter *Mounter) GetDeviceNameFromMount(mountPath, pluginDir string) (string, error) {
  29. return "", nil
  30. }
  31. func (mounter *Mounter) DeviceOpened(pathname string) (bool, error) {
  32. return false, nil
  33. }
  34. func (mounter *Mounter) PathIsDevice(pathname string) (bool, error) {
  35. return true, nil
  36. }
  37. func (mounter *SafeFormatAndMount) formatAndMount(source string, target string, fstype string, options []string) error {
  38. return nil
  39. }
  40. func (mounter *SafeFormatAndMount) diskLooksUnformatted(disk string) (bool, error) {
  41. return true, nil
  42. }