2014-12-03 02:43:38 +00:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
/*
|
2016-06-03 00:25:58 +00:00
|
|
|
Copyright 2014 The Kubernetes Authors.
|
2014-12-03 02:43:38 +00:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package mount
|
|
|
|
|
2016-10-21 08:33:43 +00:00
|
|
|
type Mounter struct {
|
2016-11-04 23:13:07 +00:00
|
|
|
mounterPath string
|
2016-10-21 08:33:43 +00:00
|
|
|
}
|
2014-12-03 02:43:38 +00:00
|
|
|
|
2015-04-03 01:08:04 +00:00
|
|
|
func (mounter *Mounter) Mount(source string, target string, fstype string, options []string) error {
|
2014-12-03 02:43:38 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2015-04-03 01:08:04 +00:00
|
|
|
func (mounter *Mounter) Unmount(target string) error {
|
2014-12-03 02:43:38 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2015-02-03 16:13:09 +00:00
|
|
|
func (mounter *Mounter) List() ([]MountPoint, error) {
|
2014-12-03 02:43:38 +00:00
|
|
|
return []MountPoint{}, nil
|
|
|
|
}
|
2015-04-01 02:08:33 +00:00
|
|
|
|
2015-04-16 23:49:53 +00:00
|
|
|
func (mounter *Mounter) IsLikelyNotMountPoint(file string) (bool, error) {
|
|
|
|
return true, nil
|
2015-04-01 02:08:33 +00:00
|
|
|
}
|
2015-11-06 20:37:46 +00:00
|
|
|
|
2016-08-16 00:26:15 +00:00
|
|
|
func (mounter *Mounter) GetDeviceNameFromMount(mountPath, pluginDir string) (string, error) {
|
|
|
|
return "", nil
|
|
|
|
}
|
|
|
|
|
2016-07-06 17:42:56 +00:00
|
|
|
func (mounter *Mounter) DeviceOpened(pathname string) (bool, error) {
|
|
|
|
return false, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (mounter *Mounter) PathIsDevice(pathname string) (bool, error) {
|
|
|
|
return true, nil
|
|
|
|
}
|
|
|
|
|
2015-11-06 20:37:46 +00:00
|
|
|
func (mounter *SafeFormatAndMount) formatAndMount(source string, target string, fstype string, options []string) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (mounter *SafeFormatAndMount) diskLooksUnformatted(disk string) (bool, error) {
|
|
|
|
return true, nil
|
|
|
|
}
|
2016-10-26 00:20:17 +00:00
|
|
|
|
|
|
|
func IsNotMountPoint(file string) (bool, error) {
|
|
|
|
return true, nil
|
|
|
|
}
|