1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/mount/deprecated_linux.go
Kir Kolyshkin 59c0495409 pkg/mount: make it shallow
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>
2020-03-20 09:46:25 -07:00

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
)