tagmatcher

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TagMatcher

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

func New

func New(matchTags tags.MatchTags, makeIfEmpty bool) *TagMatcher

New will create a new *TagMatcher. If makeIfEmpty is false and matchTags is empty (length zero), nil is returned.

func (*TagMatcher) MatchEach

func (tm *TagMatcher) MatchEach(tags tags.Tags) bool

MatchEach will iterate over each tag key in the *TagMatcher and will return false if the corresponding value in tags does not match one of the values for the key, otherwise true is returned. If the *TagMatcher is nil or is empty, true is returned.

Jump to

Keyboard shortcuts

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