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

filter

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 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 DiskFilter added in v0.2.0

type DiskFilter interface {
	// Match returns true if passing disk matches with the value
	Match(disk *block.Disk) bool
}

type Filter

type Filter struct {
	Name       string
	DiskFilter DiskFilter
	PartFilter PartFilter
}

func RegisterDevicePathFilter added in v0.3.0

func RegisterDevicePathFilter(filters ...string) *Filter

func RegisterDriveTypeFilter added in v0.4.0

func RegisterDriveTypeFilter() *Filter

func RegisterLabelFilter added in v0.2.0

func RegisterLabelFilter(filters ...string) *Filter

func RegisterPartTypeFilter added in v0.3.1

func RegisterPartTypeFilter(filters ...string) *Filter

func RegisterPathFilter

func RegisterPathFilter(filters ...string) *Filter

func RegisterVendorFilter

func RegisterVendorFilter(filters ...string) *Filter

func SetAutoProvisionFilters added in v0.3.0

func SetAutoProvisionFilters(devPathString string) []*Filter

func SetExcludeFilters added in v0.3.0

func SetExcludeFilters(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 {
	// Match returns true if passing partition matches with the value
	Match(part *block.Partition) bool
}

Jump to

Keyboard shortcuts

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