Help us shape the future of Go! Take the 2026 Go Developer Survey

workflowpattern

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 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