Documentation ¶
Index ¶
- func Filter(sequence []*WorkflowPattern, input []string, traceWriter TraceWriter) bool
- func PatternToRegex(pattern string) (string, error)
- func Skip(sequence []*WorkflowPattern, input []string, traceWriter TraceWriter) bool
- type EmptyTraceWriter
- type StdOutTraceWriter
- type TraceWriter
- type WorkflowPattern
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 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 ¶
func CompilePattern ¶
func CompilePattern(rawpattern string) (*WorkflowPattern, error)
func CompilePatterns ¶
func CompilePatterns(patterns ...string) ([]*WorkflowPattern, error)
Click to show internal directories.
Click to hide internal directories.