mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-05 16:27:05 +00:00
source: drop stale BoolFeatureValue type
This commit is contained in:
parent
e370429970
commit
1f819173d0
1 changed files with 1 additions and 12 deletions
|
@ -17,18 +17,7 @@ limitations under the License.
|
||||||
package source
|
package source
|
||||||
|
|
||||||
// Value of a feature
|
// Value of a feature
|
||||||
type FeatureValue interface {
|
type FeatureValue interface{}
|
||||||
}
|
|
||||||
|
|
||||||
// Boolean feature value
|
|
||||||
type BoolFeatureValue bool
|
|
||||||
|
|
||||||
func (b BoolFeatureValue) String() string {
|
|
||||||
if b {
|
|
||||||
return "true"
|
|
||||||
}
|
|
||||||
return "false"
|
|
||||||
}
|
|
||||||
|
|
||||||
type Features map[string]FeatureValue
|
type Features map[string]FeatureValue
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue