workflowpattern

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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