Documentation ¶
Index ¶
- func ComputeUntilTimestamp(filterValues []string) (time.Time, error)
- func FilterID(id string, filters []string) bool
- func FiltersFromRequest(r *http.Request) ([]string, error)
- func MatchLabelFilters(filterValues []string, labels map[string]string) bool
- func MatchNegatedLabelFilters(filterValues []string, labels map[string]string) bool
- func PrepareFilters(r *http.Request) (map[string][]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeUntilTimestamp ¶
ComputeUntilTimestamp extracts until timestamp from filters
func FilterID ¶ added in v0.57.0
FilterID is a function used to compare an id against a set of ids, if the input is hex we check if the prefix matches. Otherwise we assume it is a regex and try to match that. see https://github.com/containers/podman/issues/18471 for why we do this
func FiltersFromRequest ¶
filtersFromRequests extracts the "filters" parameter from the specified http.Request. The parameter can either be a `map[string][]string` as done in new versions of Docker and libpod, or a `map[string]map[string]bool` as done in older versions of Docker. We have to do a bit of Yoga to support both - just as Docker does as well.
Please refer to https://github.com/containers/podman/issues/6899 for some background.
revive does not like the name because the package is already called filters
func MatchLabelFilters ¶
MatchLabelFilters matches labels and returns true if they are valid
func MatchNegatedLabelFilters ¶ added in v0.57.0
MatchNegatedLabelFilters matches negated labels and returns true if they are valid
Types ¶
This section is empty.