workflow

package
v1.34.38 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package workflow runs deterministic command task graphs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	RuleID   string `json:"ruleId"`
	Severity string `json:"severity"`
	Message  string `json:"message"`
	Path     string `json:"path"`
	Line     int    `json:"line"`
	Column   int    `json:"column"`
}

type Options

type Options struct {
	Only        map[string]bool
	Skip        map[string]bool
	FailFast    bool
	Parallelism int
}

type Result

type Result struct {
	Name     string    `json:"name"`
	Status   string    `json:"status"`
	Tool     string    `json:"tool,omitempty"`
	Message  string    `json:"message,omitempty"`
	Findings []Finding `json:"findings,omitempty"`
}

func Run

func Run(ctx context.Context, tasks []Task, opts Options) ([]Result, error)

type Task

type Task struct {
	Name      string
	DependsOn []string
	Run       func(context.Context) Result
}

Jump to

Keyboard shortcuts

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