mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
85dc0fb7d5
We do our CI via golangci-lint, which understands nolint: annotations. A standalone linter tool, golint, does not, and it insists on documenting these: > pkg/mount/deprecated.go:47:1: comment on exported var MergeTmpfsOptions should be of the form "MergeTmpfsOptions ..." > pkg/mount/deprecated.go:51:1: comment on exported type FilterFunc should be of the form "FilterFunc ..." (with optional leading article) > pkg/mount/deprecated.go:51:1: comment on exported type Info should be of the form "Info ..." (with optional leading article) For `MergeTmpfsOptions`, the workaround is to put it inside a `var ( ... )` block. For the other two warnings, we have to provide the "actual" documentation (or something that looks like it). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
73 lines
2 KiB
Go
73 lines
2 KiB
Go
package mount // import "github.com/docker/docker/pkg/mount"
|
|
|
|
// Deprecated: this package is not maintained and will be removed.
|
|
// Use github.com/moby/sys/mount and github.com/moby/sys/mountinfo instead.
|
|
|
|
import (
|
|
sysmount "github.com/moby/sys/mount"
|
|
"github.com/moby/sys/mountinfo"
|
|
)
|
|
|
|
// Deprecated: use github.com/moby/sys/mount instead.
|
|
//nolint:golint
|
|
var (
|
|
Mount = sysmount.Mount
|
|
ForceMount = sysmount.Mount // a deprecated synonym
|
|
Unmount = sysmount.Unmount
|
|
RecursiveUnmount = sysmount.RecursiveUnmount
|
|
)
|
|
|
|
// Deprecated: use github.com/moby/sys/mount instead.
|
|
//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
|
|
)
|
|
|
|
// Deprecated: use github.com/moby/sys/mount instead.
|
|
//nolint:golint
|
|
var (
|
|
MergeTmpfsOptions = sysmount.MergeTmpfsOptions
|
|
)
|
|
|
|
//nolint:golint
|
|
type (
|
|
// FilterFunc is a type.
|
|
// Deprecated: use github.com/moby/sys/mountinfo instead.
|
|
FilterFunc = mountinfo.FilterFunc
|
|
// Info is a type.
|
|
// Deprecated: use github.com/moby/sys/mountinfo instead.
|
|
Info = mountinfo.Info // Info is deprecated
|
|
)
|
|
|
|
// Deprecated: use github.com/moby/sys/mountinfo instead.
|
|
//nolint:golint
|
|
var (
|
|
Mounted = mountinfo.Mounted
|
|
GetMounts = mountinfo.GetMounts
|
|
|
|
PrefixFilter = mountinfo.PrefixFilter
|
|
SingleEntryFilter = mountinfo.SingleEntryFilter
|
|
ParentsFilter = mountinfo.ParentsFilter
|
|
FstypeFilter = mountinfo.FstypeFilter
|
|
)
|