2020-03-13 18:51:55 -04:00
|
|
|
package mount // import "github.com/docker/docker/pkg/mount"
|
|
|
|
|
2020-03-13 20:01:48 -04:00
|
|
|
// Deprecated: this package is not maintained and will be removed.
|
|
|
|
// Use github.com/moby/sys/mount and github.com/moby/sys/mountinfo instead.
|
|
|
|
|
2020-03-13 18:51:55 -04:00
|
|
|
import (
|
|
|
|
sysmount "github.com/moby/sys/mount"
|
|
|
|
"github.com/moby/sys/mountinfo"
|
|
|
|
)
|
|
|
|
|
2020-03-13 20:01:48 -04:00
|
|
|
// Deprecated: use github.com/moby/sys/mount instead.
|
2020-03-13 18:51:55 -04:00
|
|
|
//nolint:golint
|
|
|
|
var (
|
|
|
|
Mount = sysmount.Mount
|
2020-03-13 20:01:48 -04:00
|
|
|
ForceMount = sysmount.Mount // a deprecated synonym
|
2020-03-13 18:51:55 -04:00
|
|
|
Unmount = sysmount.Unmount
|
|
|
|
RecursiveUnmount = sysmount.RecursiveUnmount
|
|
|
|
)
|
|
|
|
|
2020-03-13 20:01:48 -04:00
|
|
|
// Deprecated: use github.com/moby/sys/mount instead.
|
2020-03-13 18:51:55 -04:00
|
|
|
//nolint:golint
|
|
|
|
const (
|
|
|
|
RDONLY = sysmount.RDONLY
|
|
|
|
NOSUID = sysmount.NOSUID
|
|
|
|
NOEXEC = sysmount.NOEXEC
|
|
|
|
SYNCHRONOUS = sysmount.SYNCHRONOUS
|
|
|
|
NOATIME = sysmount.NOATIME
|
|
|
|
BIND = sysmount.BIND
|
|
|
|
DIRSYNC = sysmount.DIRSYNC
|
|
|
|
MANDLOCK = sysmount.MANDLOCK
|
|
|
|
NODEV = sysmount.NODEV
|
|
|
|
NODIRATIME = sysmount.NODIRATIME
|
|
|
|
UNBINDABLE = sysmount.UNBINDABLE
|
|
|
|
RUNBINDABLE = sysmount.RUNBINDABLE
|
|
|
|
PRIVATE = sysmount.PRIVATE
|
|
|
|
RPRIVATE = sysmount.RPRIVATE
|
|
|
|
SHARED = sysmount.SHARED
|
|
|
|
RSHARED = sysmount.RSHARED
|
|
|
|
SLAVE = sysmount.SLAVE
|
|
|
|
RSLAVE = sysmount.RSLAVE
|
|
|
|
RBIND = sysmount.RBIND
|
|
|
|
RELATIME = sysmount.RELATIME
|
|
|
|
REMOUNT = sysmount.REMOUNT
|
|
|
|
STRICTATIME = sysmount.STRICTATIME
|
|
|
|
)
|
|
|
|
|
2020-03-13 20:01:48 -04:00
|
|
|
// Deprecated: use github.com/moby/sys/mount instead.
|
2020-03-13 18:51:55 -04:00
|
|
|
//nolint:golint
|
|
|
|
var MergeTmpfsOptions = sysmount.MergeTmpfsOptions
|
|
|
|
|
2020-03-13 20:01:48 -04:00
|
|
|
// Deprecated: use github.com/moby/sys/mountinfo instead.
|
2020-03-13 18:51:55 -04:00
|
|
|
//nolint:golint
|
|
|
|
type (
|
|
|
|
FilterFunc = mountinfo.FilterFunc
|
|
|
|
Info = mountinfo.Info
|
|
|
|
)
|
|
|
|
|
2020-03-13 20:01:48 -04:00
|
|
|
// Deprecated: use github.com/moby/sys/mountinfo instead.
|
2020-03-13 18:51:55 -04:00
|
|
|
//nolint:golint
|
|
|
|
var (
|
|
|
|
Mounted = mountinfo.Mounted
|
|
|
|
GetMounts = mountinfo.GetMounts
|
|
|
|
|
|
|
|
PrefixFilter = mountinfo.PrefixFilter
|
|
|
|
SingleEntryFilter = mountinfo.SingleEntryFilter
|
|
|
|
ParentsFilter = mountinfo.ParentsFilter
|
|
|
|
FstypeFilter = mountinfo.FstypeFilter
|
|
|
|
)
|