mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
source/fake: drop stale Configure() method
Also correct some comments.
This commit is contained in:
parent
cd374dcd7b
commit
969151e1b8
1 changed files with 3 additions and 6 deletions
|
@ -55,13 +55,13 @@ var (
|
|||
// Name returns an identifier string for this feature source.
|
||||
func (s *fakeSource) Name() string { return Name }
|
||||
|
||||
// NewConfig method of the LabelSource interface
|
||||
// NewConfig method of the ConfigurableSource interface
|
||||
func (s *fakeSource) NewConfig() source.Config { return newDefaultConfig() }
|
||||
|
||||
// GetConfig method of the LabelSource interface
|
||||
// GetConfig method of the ConfigurableSource interface
|
||||
func (s *fakeSource) GetConfig() source.Config { return s.config }
|
||||
|
||||
// SetConfig method of the LabelSource interface
|
||||
// SetConfig method of the ConfigurableSource interface
|
||||
func (s *fakeSource) SetConfig(conf source.Config) {
|
||||
switch v := conf.(type) {
|
||||
case *Config:
|
||||
|
@ -71,9 +71,6 @@ func (s *fakeSource) SetConfig(conf source.Config) {
|
|||
}
|
||||
}
|
||||
|
||||
// Configure method of the LabelSource interface
|
||||
func (s *fakeSource) Configure([]byte) error { return nil }
|
||||
|
||||
// Priority method of the LabelSource interface
|
||||
func (s *fakeSource) Priority() int { return 0 }
|
||||
|
||||
|
|
Loading…
Reference in a new issue