search

package
v0.43.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fields

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

func NewFields

func NewFields(res interface{}, matcher Matcher) Fields

func (Fields) Visit

func (f Fields) Visit(visitorFunc FieldsVisitorFunc)

type FieldsVisitorFunc

type FieldsVisitorFunc func(interface{}, ctlconf.SearchRuleUpdateStrategy) (interface{}, bool)

type ImageRefs

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

func NewImageRefs

func NewImageRefs(res interface{}, searchRules []ctlconf.SearchRule) ImageRefs

func (ImageRefs) Visit

func (refs ImageRefs) Visit(visitorFunc ImageRefsVisitorFunc)

type ImageRefsVisitorFunc

type ImageRefsVisitorFunc func(string) (string, bool)

func (ImageRefsVisitorFunc) Apply

func (v ImageRefsVisitorFunc) Apply(res interface{}, searchRules []ctlconf.SearchRule)

type Matcher

type Matcher interface {
	Matches(keyPath ctlres.Path, value interface{}) (bool, ctlconf.SearchRuleUpdateStrategy)
}

type RuleMatcher

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

func (RuleMatcher) Matches

func (m RuleMatcher) Matches(keyPath ctlres.Path, value interface{}) (bool, ctlconf.SearchRuleUpdateStrategy)

type RulesMatcher

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

func NewRulesMatcher

func NewRulesMatcher(rules []ctlconf.SearchRule) RulesMatcher

func (RulesMatcher) Matches

func (m RulesMatcher) Matches(keyPath ctlres.Path, value interface{}) (bool, ctlconf.SearchRuleUpdateStrategy)

Jump to

Keyboard shortcuts

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