custom

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureSpec

type FeatureSpec struct {
	Name    string      `json:"name"`
	MatchOn []MatchRule `json:"matchOn"`
}

type MatchRule

type MatchRule 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"`
}

Custom Features Configurations

type Source

type Source struct {
	// contains filtered or unexported fields
}

Implements FeatureSource Interface

func (Source) Discover

func (s Source) Discover() (source.Features, error)

Discover features

func (*Source) GetConfig

func (s *Source) GetConfig() source.Config

GetConfig method of the FeatureSource interface

func (Source) Name

func (s Source) Name() string

Return name of the feature source

func (*Source) NewConfig

func (s *Source) NewConfig() source.Config

NewConfig method of the FeatureSource interface

func (*Source) SetConfig

func (s *Source) SetConfig(conf source.Config)

SetConfig method of the FeatureSource interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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