Documentation ¶
Overview ¶
Package filter provides a way to filter resources based on a set of criteria.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct { // Type is the type of filter to apply Type Type // Property is the name of the property to filter on Property string // Value is the value to filter on Value string // Values allows for multiple values to be specified for a filter Values []string // Invert is a flag to invert the filter Invert string }
Filter is a filter to apply to a resource
func NewExactFilter ¶
NewExactFilter creates a new filter that matches the exact value
func (*Filter) UnmarshalYAML ¶
type Filters ¶
func (Filters) Append ¶ added in v0.10.0
Append appends the filters from f2 to f. This is primarily used to append filters from a preset to a set of filters that were defined on a resource type.
func (Filters) Get ¶ added in v0.10.0
Get returns the filters for a specific resource type or the global filters if they exist. If there are no filters it returns nil
Click to show internal directories.
Click to hide internal directories.