mfilter

package
v0.0.0-...-2e8e066 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package mfilter provides common manifest filtering functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func After

func After(t time.Time) manifest.Filter

After creates a filter that returns true when a resource's timestamp is after t.

func And

func And(filters ...manifest.Filter) manifest.Filter

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 Before

func Before(t time.Time) manifest.Filter

Before creates a filter that returns true when a resource's timestamp is before t.

func Not

func Not(filter manifest.Filter) manifest.Filter

Not creates a filter that returns true when the given filter does not.

func Or

func Or(filters ...manifest.Filter) manifest.Filter

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

func PathRegexp(re *regexp.Regexp) manifest.Filter

PathRegexp creates a new filter that returns true when a resource's path matches the given regular expression.

func TypeRegexp

func TypeRegexp(re *regexp.Regexp) manifest.Filter

TypeRegexp creates a new filter that returns true when a resource's type matches the given regular expression.

Types

This section is empty.

Jump to

Keyboard shortcuts

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