filter

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 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 Bool

type Bool int
const (
	FALSE Bool = 0
	TRUE  Bool = 1
)

type LocalDiskFilter

type LocalDiskFilter struct {
	Result        Bool
	FailedMessage map[string]bool
	// contains filtered or unexported fields
}

func NewLocalDiskFilter

func NewLocalDiskFilter(ld *v1alpha1.LocalDisk) LocalDiskFilter

func (*LocalDiskFilter) Available

func (ld *LocalDiskFilter) Available() *LocalDiskFilter

func (*LocalDiskFilter) Capacity

func (ld *LocalDiskFilter) Capacity(cap int64) *LocalDiskFilter

func (*LocalDiskFilter) DevPathMatch

func (ld *LocalDiskFilter) DevPathMatch(devPaths []string) *LocalDiskFilter

func (*LocalDiskFilter) DevType

func (ld *LocalDiskFilter) DevType() *LocalDiskFilter

func (*LocalDiskFilter) DiskType

func (ld *LocalDiskFilter) DiskType(diskType string) *LocalDiskFilter

func (*LocalDiskFilter) GetTotalResult

func (ld *LocalDiskFilter) GetTotalResult() bool

func (*LocalDiskFilter) HasBoundWith

func (ld *LocalDiskFilter) HasBoundWith(claimUID types.UID) bool

HasBoundWith indicates disk has already bound with the claim https://github.com/hwameistor/hwameistor/issues/315

func (*LocalDiskFilter) HasNotReserved

func (ld *LocalDiskFilter) HasNotReserved() *LocalDiskFilter

func (*LocalDiskFilter) Init

func (ld *LocalDiskFilter) Init() *LocalDiskFilter

func (*LocalDiskFilter) IsNameFormatMatch

func (ld *LocalDiskFilter) IsNameFormatMatch() *LocalDiskFilter

func (*LocalDiskFilter) LdNameMatch

func (ld *LocalDiskFilter) LdNameMatch(ldNames []string) *LocalDiskFilter

func (*LocalDiskFilter) NoPartition

func (ld *LocalDiskFilter) NoPartition() *LocalDiskFilter

func (*LocalDiskFilter) NodeMatch

func (ld *LocalDiskFilter) NodeMatch(wantNode string) *LocalDiskFilter

func (*LocalDiskFilter) OwnerMatch

func (ld *LocalDiskFilter) OwnerMatch(owner string) *LocalDiskFilter

func (*LocalDiskFilter) Unique

func (ld *LocalDiskFilter) Unique(diskRefs []*v1.ObjectReference) *LocalDiskFilter

Jump to

Keyboard shortcuts

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