github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/pkg/mount/deprecated.go (about)

     1  package mount // import "github.com/demonoid81/moby/pkg/mount"
     2  
     3  // Deprecated: this package is not maintained and will be removed.
     4  // Use github.com/moby/sys/mount and github.com/moby/sys/mountinfo instead.
     5  
     6  import (
     7  	sysmount "github.com/moby/sys/mount"
     8  	"github.com/moby/sys/mountinfo"
     9  )
    10  
    11  // Deprecated: use github.com/moby/sys/mount instead.
    12  //nolint:golint
    13  var (
    14  	Mount            = sysmount.Mount
    15  	ForceMount       = sysmount.Mount // a deprecated synonym
    16  	Unmount          = sysmount.Unmount
    17  	RecursiveUnmount = sysmount.RecursiveUnmount
    18  )
    19  
    20  // Deprecated: use github.com/moby/sys/mount instead.
    21  //nolint:golint
    22  const (
    23  	RDONLY      = sysmount.RDONLY
    24  	NOSUID      = sysmount.NOSUID
    25  	NOEXEC      = sysmount.NOEXEC
    26  	SYNCHRONOUS = sysmount.SYNCHRONOUS
    27  	NOATIME     = sysmount.NOATIME
    28  	BIND        = sysmount.BIND
    29  	DIRSYNC     = sysmount.DIRSYNC
    30  	MANDLOCK    = sysmount.MANDLOCK
    31  	NODEV       = sysmount.NODEV
    32  	NODIRATIME  = sysmount.NODIRATIME
    33  	UNBINDABLE  = sysmount.UNBINDABLE
    34  	RUNBINDABLE = sysmount.RUNBINDABLE
    35  	PRIVATE     = sysmount.PRIVATE
    36  	RPRIVATE    = sysmount.RPRIVATE
    37  	SHARED      = sysmount.SHARED
    38  	RSHARED     = sysmount.RSHARED
    39  	SLAVE       = sysmount.SLAVE
    40  	RSLAVE      = sysmount.RSLAVE
    41  	RBIND       = sysmount.RBIND
    42  	RELATIME    = sysmount.RELATIME
    43  	REMOUNT     = sysmount.REMOUNT
    44  	STRICTATIME = sysmount.STRICTATIME
    45  )
    46  
    47  // Deprecated: use github.com/moby/sys/mount instead.
    48  //nolint:golint
    49  var (
    50  	MergeTmpfsOptions = sysmount.MergeTmpfsOptions
    51  )
    52  
    53  //nolint:golint
    54  type (
    55  	// FilterFunc is a type.
    56  	// Deprecated: use github.com/moby/sys/mountinfo instead.
    57  	FilterFunc = mountinfo.FilterFunc
    58  	// Info is a type.
    59  	// Deprecated: use github.com/moby/sys/mountinfo instead.
    60  	Info = mountinfo.Info // Info is deprecated
    61  )
    62  
    63  // Deprecated: use github.com/moby/sys/mountinfo instead.
    64  //nolint:golint
    65  var (
    66  	Mounted   = mountinfo.Mounted
    67  	GetMounts = mountinfo.GetMounts
    68  
    69  	PrefixFilter      = mountinfo.PrefixFilter
    70  	SingleEntryFilter = mountinfo.SingleEntryFilter
    71  	ParentsFilter     = mountinfo.ParentsFilter
    72  	FstypeFilter      = mountinfo.FstypeFilter
    73  )