1
0
Fork 0
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:
Markus Lehtonen 2021-12-02 22:23:31 +02:00
parent cd374dcd7b
commit 969151e1b8

View file

@ -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 }