Documentation ¶
Index ¶
Constants ¶
View Source
const Directory = "/etc/kubernetes/node-feature-discovery/custom.d"
Directory stores the full path for the custom sources folder
View Source
const Name = "custom"
Name of this feature source
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomRule ¶ added in v0.10.0
type CustomRule struct { *LegacyRule *Rule }
func (*CustomRule) MarshalJSON ¶ added in v0.10.0
func (c *CustomRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the Marshaler interface from "encoding/json"
func (*CustomRule) UnmarshalJSON ¶ added in v0.10.0
func (c *CustomRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the Unmarshaler interface from "encoding/json"
type LegacyMatcher ¶ added in v0.10.0
type LegacyMatcher struct { PciID *rules.PciIDRule `json:"pciId,omitempty"` UsbID *rules.UsbIDRule `json:"usbId,omitempty"` LoadedKMod *rules.LoadedKModRule `json:"loadedKMod,omitempty"` CpuID *rules.CpuIDRule `json:"cpuId,omitempty"` Kconfig *rules.KconfigRule `json:"kConfig,omitempty"` Nodename *rules.NodenameRule `json:"nodename,omitempty"` }
LegacyMatcher contains the legacy custom rules.
type LegacyRule ¶ added in v0.10.0
type LegacyRule struct { Name string `json:"name"` Value *string `json:"value,omitempty"` MatchOn []LegacyMatcher `json:"matchOn"` }
type Rule ¶ added in v0.10.0
type Rule struct {
nfdv1alpha1.Rule
}
Click to show internal directories.
Click to hide internal directories.