mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
Merge pull request #551 from marquiz/fixes/lint-redress
Straighten wrinkles in lint fixes
This commit is contained in:
commit
8397e5f789
5 changed files with 5 additions and 5 deletions
|
@ -43,7 +43,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
// LabelNs defines the Namespace for feature labels
|
||||
// LabelNs defines the namespace for feature labels
|
||||
LabelNs = "feature.node.kubernetes.io"
|
||||
|
||||
// AnnotationNsBase namespace for all NFD-related annotations
|
||||
|
|
|
@ -57,7 +57,7 @@ type Source struct {
|
|||
}
|
||||
|
||||
// Name returns the name of the feature source
|
||||
func (s Source) Name() string { return "custom" }
|
||||
func (s Source) Name() string { return Name }
|
||||
|
||||
// NewConfig method of the FeatureSource interface
|
||||
func (s *Source) NewConfig() source.Config { return newDefaultConfig() }
|
||||
|
|
|
@ -42,7 +42,7 @@ var (
|
|||
type Source struct{}
|
||||
|
||||
// Name returns the name of the feature source
|
||||
func (s Source) Name() string { return "local" }
|
||||
func (s Source) Name() string { return Name }
|
||||
|
||||
// NewConfig method of the FeatureSource interface
|
||||
func (s *Source) NewConfig() source.Config { return nil }
|
||||
|
|
|
@ -47,7 +47,7 @@ type Source struct {
|
|||
}
|
||||
|
||||
// Name returns the name of the feature source
|
||||
func (s Source) Name() string { return "pci" }
|
||||
func (s Source) Name() string { return Name }
|
||||
|
||||
// NewConfig method of the FeatureSource interface
|
||||
func (s *Source) NewConfig() source.Config { return newDefaultConfig() }
|
||||
|
|
|
@ -50,7 +50,7 @@ type Source struct {
|
|||
}
|
||||
|
||||
// Name returns the name of the feature source
|
||||
func (s Source) Name() string { return "usb" }
|
||||
func (s Source) Name() string { return Name }
|
||||
|
||||
// NewConfig method of the FeatureSource interface
|
||||
func (s *Source) NewConfig() source.Config { return newDefaultConfig() }
|
||||
|
|
Loading…
Reference in a new issue