mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
ignore golint for some stutter that we want to keep as-is
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
e2ef310046
commit
93189a19bc
6
mount.go
6
mount.go
@ -77,7 +77,7 @@ type Interface interface {
|
|||||||
var _ Interface = &Mounter{}
|
var _ Interface = &Mounter{}
|
||||||
|
|
||||||
// MountPoint represents a single line in /proc/mounts or /etc/fstab.
|
// MountPoint represents a single line in /proc/mounts or /etc/fstab.
|
||||||
type MountPoint struct {
|
type MountPoint struct { // nolint: golint
|
||||||
Device string
|
Device string
|
||||||
Path string
|
Path string
|
||||||
Type string
|
Type string
|
||||||
@ -86,7 +86,7 @@ type MountPoint struct {
|
|||||||
Pass int
|
Pass int
|
||||||
}
|
}
|
||||||
|
|
||||||
type MountErrorType string
|
type MountErrorType string // nolint: golint
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FilesystemMismatch MountErrorType = "FilesystemMismatch"
|
FilesystemMismatch MountErrorType = "FilesystemMismatch"
|
||||||
@ -97,7 +97,7 @@ const (
|
|||||||
UnknownMountError MountErrorType = "UnknownMountError"
|
UnknownMountError MountErrorType = "UnknownMountError"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MountError struct {
|
type MountError struct { // nolint: golint
|
||||||
Type MountErrorType
|
Type MountErrorType
|
||||||
Message string
|
Message string
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ func IsCorruptedMnt(err error) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// MountInfo represents a single line in /proc/<pid>/mountinfo.
|
// MountInfo represents a single line in /proc/<pid>/mountinfo.
|
||||||
type MountInfo struct {
|
type MountInfo struct { // nolint: golint
|
||||||
// Unique ID for the mount (maybe reused after umount).
|
// Unique ID for the mount (maybe reused after umount).
|
||||||
ID int
|
ID int
|
||||||
// The ID of the parent mount (or of self for the root of this mount namespace's mount tree).
|
// The ID of the parent mount (or of self for the root of this mount namespace's mount tree).
|
||||||
|
Loading…
Reference in New Issue
Block a user