custom

package
v0.14.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL