Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllFilter ¶ added in v0.4.0
type AllFilter struct{}
The AllFilter matches anything it's given
func NewAllFilter ¶ added in v0.4.0
func NewAllFilter() *AllFilter
func (*AllFilter) AmbiguousError ¶ added in v0.4.0
func (f *AllFilter) AmbiguousError(_ []filterer.Match) *filterer.AmbiguousError
The AllFilter shouldn't be used to match single Objects
func (*AllFilter) NonexistentError ¶ added in v0.4.0
func (f *AllFilter) NonexistentError() *filterer.NonexistentError
type IDNameFilter ¶ added in v0.4.0
type IDNameFilter struct {
// contains filtered or unexported fields
}
The IDNameFilter is the basic filter matching objects by their ID/name
func NewIDNameFilter ¶ added in v0.4.0
func NewIDNameFilter(p string) *IDNameFilter
func (*IDNameFilter) AmbiguousError ¶ added in v0.4.0
func (f *IDNameFilter) AmbiguousError(matches []filterer.Match) *filterer.AmbiguousError
func (*IDNameFilter) FilterMeta ¶ added in v0.4.0
func (*IDNameFilter) NonexistentError ¶ added in v0.4.0
func (f *IDNameFilter) NonexistentError() *filterer.NonexistentError
func (*IDNameFilter) SetKind ¶ added in v0.4.0
func (f *IDNameFilter) SetKind(k meta.Kind)
type IDNameMatch ¶ added in v0.4.1
type IDNameMatch struct { *filterer.GenericMatch // contains filtered or unexported fields }
type NameFilter ¶ added in v0.4.0
type NameFilter struct {
// contains filtered or unexported fields
}
The NameFilter matches Objects by their exact name
func NewNameFilter ¶ added in v0.4.0
func NewNameFilter(n string) *NameFilter
func (*NameFilter) AmbiguousError ¶ added in v0.4.0
func (f *NameFilter) AmbiguousError(_ []filterer.Match) *filterer.AmbiguousError
func (*NameFilter) FilterMeta ¶ added in v0.4.0
func (*NameFilter) NonexistentError ¶ added in v0.4.0
func (f *NameFilter) NonexistentError() *filterer.NonexistentError
func (*NameFilter) SetKind ¶ added in v0.4.0
func (f *NameFilter) SetKind(k meta.Kind)
type VMFilter ¶ added in v0.4.0
type VMFilter struct { *IDNameFilter // contains filtered or unexported fields }
The VMFilter filters only VMs, but has special functionality for matching If wanting to match all VMs, input a blank string as the prefix This ObjectFilter embeds a MetaFilter, which is OK, as ObjectFilter interface compatibility is checked before the MetaFilter interface
func NewVMFilter ¶ added in v0.4.0
func NewVMFilterAll ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.