filter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskFilter added in v0.2.0

type DiskFilter interface {
	// Exclude returns true if passing disk does not match with exclude value
	Exclude(disk *block.Disk) bool
}

type Filter

type Filter struct {
	Name       string
	DiskFilter DiskFilter
	PartFilter PartFilter
}

func RegisterLabelFilter added in v0.2.0

func RegisterLabelFilter(filters string) *Filter

func RegisterPathFilter

func RegisterPathFilter(filters string) *Filter

func RegisterVendorFilter

func RegisterVendorFilter(filters string) *Filter

func SetNDMFilters

func SetNDMFilters(vendorString, pathString, labelString string) []*Filter

func (*Filter) ApplyDiskFilter added in v0.2.0

func (f *Filter) ApplyDiskFilter(disk *block.Disk) bool

func (*Filter) ApplyPartFilter added in v0.2.0

func (f *Filter) ApplyPartFilter(part *block.Partition) bool

type PartFilter added in v0.2.0

type PartFilter interface {
	// Exclude returns true if passing partition does not match with exclude value
	Exclude(part *block.Partition) bool
}

Jump to

Keyboard shortcuts

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