setter

package
v0.0.0-...-5c1fc54 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const KeyValueExtraName = "setter-key-value"

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	Rules []*Rule
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(name string, rules []*Rule, targets *search.TargetSet, log logg.Logg) (result *Processor)

func (*Processor) FindResultsInLine

func (p *Processor) FindResultsInLine(job contract.LineProcessorJobI, line string) (err error)

func (*Processor) GetName

func (p *Processor) GetName() string

type Rule

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

func NewRule

func NewRule(name string, targets *search.TargetSet, fileExtFilter manip.Filter, mainTmpl string, keyTmpls []string,
	keyChars []string, operator string, valTmpls []string, noWhitespace bool, notValChars []string) *Rule

func (*Rule) FindNextSecret

func (r *Rule) FindNextSecret(line string) (contextValue, keyValue, secretValue *manip.LineRangeValue, matchingRe *regexp.Regexp, ok bool)

func (*Rule) GetName

func (r *Rule) GetName() (result string)

func (*Rule) Res

func (r *Rule) Res() (result []*regexp.Regexp)

func (*Rule) SupportsPath

func (r *Rule) SupportsPath(path string) (result bool)

Jump to

Keyboard shortcuts

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