Documentation ¶
Overview ¶
Package mfilter provides common manifest filtering functions.
Index ¶
- func After(t time.Time) manifest.Filter
- func And(filters ...manifest.Filter) manifest.Filter
- func Before(t time.Time) manifest.Filter
- func Not(filter manifest.Filter) manifest.Filter
- func Or(filters ...manifest.Filter) manifest.Filter
- func PathRegexp(re *regexp.Regexp) manifest.Filter
- func TypeRegexp(re *regexp.Regexp) manifest.Filter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func And ¶
And creates a filter that returns true when all of the provided filters return true.
If filters is empty, nil, or composed solely of nil filters, a nil filter will be returned.
func Or ¶
Or creates a filter that returns true when at least one of the provided filters return true.
If filters is empty, nil, or composed solely of nil filters, a nil filter will be returned.
func PathRegexp ¶
PathRegexp creates a new filter that returns true when a resource's path matches the given regular expression.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.