workflowpattern

package
v0.246.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(sequence []*WorkflowPattern, input []string, traceWriter TraceWriter) bool

returns true if the workflow should be skipped paths-ignore/branches-ignore

func PatternToRegex

func PatternToRegex(pattern string) (string, error)

func Skip

func Skip(sequence []*WorkflowPattern, input []string, traceWriter TraceWriter) bool

returns true if the workflow should be skipped paths/branches

Types

type EmptyTraceWriter

type EmptyTraceWriter struct{}

func (*EmptyTraceWriter) Info

func (*EmptyTraceWriter) Info(string, ...interface{})

type StdOutTraceWriter

type StdOutTraceWriter struct{}

func (*StdOutTraceWriter) Info

func (*StdOutTraceWriter) Info(format string, args ...interface{})

type TraceWriter

type TraceWriter interface {
	Info(string, ...interface{})
}

type WorkflowPattern

type WorkflowPattern struct {
	Pattern  string
	Negative bool
	Regex    *regexp.Regexp
}

func CompilePattern

func CompilePattern(rawpattern string) (*WorkflowPattern, error)

func CompilePatterns

func CompilePatterns(patterns ...string) ([]*WorkflowPattern, error)

Jump to

Keyboard shortcuts

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