Help us shape the future of Go! Take the 2026 Go Developer Survey

filter

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Name      string
	Interface Interface
}

func RegisterPathFilter

func RegisterPathFilter(filters string) *Filter

func RegisterVendorFilter

func RegisterVendorFilter(filters string) *Filter

func SetNDMFilters

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

func (*Filter) ApplyFilter

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

type Filters

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

type Interface

type Interface interface {
	Filters
}

Jump to

Keyboard shortcuts

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