Re-added mount_*.go in docker package to not break tests/build
This commit is contained in:
parent
b4ea31e1de
commit
8b61af1895
2 changed files with 15 additions and 0 deletions
7
mount_darwin.go
Normal file
7
mount_darwin.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package docker
|
||||
|
||||
import "errors"
|
||||
|
||||
func mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
|
||||
return errors.New("mount is not implemented on darwin")
|
||||
}
|
8
mount_linux.go
Normal file
8
mount_linux.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package docker
|
||||
|
||||
import "syscall"
|
||||
|
||||
|
||||
func mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
|
||||
return syscall.Mount(source, target, fstype, flags, data)
|
||||
}
|
Loading…
Reference in a new issue