filter

package
v3.2.7-fix1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathFilter

type PathFilter struct {
	// contains filtered or unexported fields
}

PathFilter is a path based template filter

func NewPathFilter

func NewPathFilter(config *PathFilterConfig, catalogClient catalog.Catalog) *PathFilter

NewPathFilter creates a new path filter from provided config

func (*PathFilter) Match

func (p *PathFilter) Match(templates []string) map[string]struct{}

Match performs match for path filter on templates and returns final list

func (*PathFilter) MatchIncluded

func (p *PathFilter) MatchIncluded(template string) bool

MatchIncluded returns true if the template was included explicitly

type PathFilterConfig

type PathFilterConfig struct {
	IncludedTemplates []string
	ExcludedTemplates []string
}

PathFilterConfig contains configuration options for Path based templates Filter

Jump to

Keyboard shortcuts

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