mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
59c0495409
Make pkg/mount a shallow package, relying on github.com/moby/sys/mount and github.com/moby/sys/mountinfo The plan is to - switch the rest of this repo to use moby/sys directly - add deprecation notice to pkg/mount - (eventually) remove pkg/mount The nolint:golint annotation is added to suppress warnings like "exported XXX should have comment or be unexported". The ForceMount function is deprecated (and is identical to Mount), so let's not use it (but still provide an alias for those who do). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
18 lines
498 B
Go
18 lines
498 B
Go
package mount // import "github.com/docker/docker/pkg/mount"
|
|
|
|
import (
|
|
sysmount "github.com/moby/sys/mount"
|
|
)
|
|
|
|
//nolint:golint
|
|
var (
|
|
MakeMount = sysmount.MakeMount
|
|
MakeShared = sysmount.MakeShared
|
|
MakeRShared = sysmount.MakeRShared
|
|
MakePrivate = sysmount.MakePrivate
|
|
MakeRPrivate = sysmount.MakeRPrivate
|
|
MakeSlave = sysmount.MakeSlave
|
|
MakeRSlave = sysmount.MakeRSlave
|
|
MakeUnbindable = sysmount.MakeUnbindable
|
|
MakeRUnbindable = sysmount.MakeRUnbindable
|
|
)
|