rules

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CpuIDRule added in v0.7.0

type CpuIDRule []string

CpuIDRule implements Rule

func (*CpuIDRule) Match added in v0.7.0

func (cpuids *CpuIDRule) Match() (bool, error)

type KconfigRule added in v0.7.0

type KconfigRule []string

KconfigRule implements Rule

func (*KconfigRule) Match added in v0.7.0

func (kconfigs *KconfigRule) Match() (bool, error)

type LoadedKModRule

type LoadedKModRule []string

Rule that matches on loaded kernel modules in the system

func (*LoadedKModRule) Match

func (kmods *LoadedKModRule) Match() (bool, error)

Match loaded kernel modules on provided list of kernel modules

type PciIDRule

type PciIDRule struct {
	PciIDRuleInput
}

func (*PciIDRule) Match

func (r *PciIDRule) Match() (bool, error)

Match PCI devices on provided PCI device attributes

type PciIDRuleInput

type PciIDRuleInput struct {
	Class  []string `json:"class,omitempty"`
	Vendor []string `json:"vendor,omitempty"`
	Device []string `json:"device,omitempty"`
}

Rule that matches on the following PCI device attributes: <class, vendor, device> each device attribute will be a list elements(strings). Match operation: OR will be performed per element and AND will be performed per attribute. An empty attribute will not be included in the matching process.

type Rule

type Rule interface {
	// Match on rule
	Match() (bool, error)
}

type UsbIDRule

type UsbIDRule struct {
	UsbIDRuleInput
}

func (*UsbIDRule) Match

func (r *UsbIDRule) Match() (bool, error)

Match USB devices on provided USB device attributes

type UsbIDRuleInput

type UsbIDRuleInput struct {
	Class  []string `json:"class,omitempty"`
	Vendor []string `json:"vendor,omitempty"`
	Device []string `json:"device,omitempty"`
}

Rule that matches on the following USB device attributes: <class, vendor, device> each device attribute will be a list elements(strings). Match operation: OR will be performed per element and AND will be performed per attribute. An empty attribute will not be included in the matching process.

Jump to

Keyboard shortcuts

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