mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-19 06:43:10 +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.
|
// Name returns an identifier string for this feature source.
|
||||||
func (s *fakeSource) Name() string { return Name }
|
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() }
|
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 }
|
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) {
|
func (s *fakeSource) SetConfig(conf source.Config) {
|
||||||
switch v := conf.(type) {
|
switch v := conf.(type) {
|
||||||
case *Config:
|
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
|
// Priority method of the LabelSource interface
|
||||||
func (s *fakeSource) Priority() int { return 0 }
|
func (s *fakeSource) Priority() int { return 0 }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue