Documentation
¶
Overview ¶
Package executor runs configured analyzer tools under host-owned limits.
Index ¶
- func Run(ctx context.Context, input checkinputs.AnalyzerInput, ...) ([]results.Diagnostic, error)
- func RunOne(ctx context.Context, input checkinputs.AnalyzerInput, ...) ([]results.Diagnostic, error)
- func RunTasks[T any](ctx context.Context, tasks []Task[T]) ([]T, error)
- func SourceInput(document parsing.Document, path string, content []byte, ...) checkinputs.AnalyzerInput
- func ValidateOptions(schemaJSON, optionsJSON json.RawMessage) error
- type PreparedRegistration
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, input checkinputs.AnalyzerInput, registrations []results.AnalyzerRegistration) ([]results.Diagnostic, error)
Run isolates each analyzer's input and joins all started work. Findings and errors follow registration order.
func RunOne ¶
func RunOne(ctx context.Context, input checkinputs.AnalyzerInput, registration PreparedRegistration) ([]results.Diagnostic, error)
RunOne isolates one invocation of a prepared registration, preserving partial findings and cancellation. Input kinds must match the set validated by Prepare.
func RunTasks ¶
RunTasks joins independent analyses and combines outcomes in registration order. One failure does not cancel peers or discard completed findings.
func SourceInput ¶
func SourceInput(document parsing.Document, path string, content []byte, reference sourcetext.Reference) checkinputs.AnalyzerInput
SourceInput constructs a check input header without execution facts.
func ValidateOptions ¶
func ValidateOptions(schemaJSON, optionsJSON json.RawMessage) error
ValidateOptions checks provider options independently of transport. Schemas must bundle their refs; loading a plugin must never grant implicit filesystem or network reads.
Types ¶
type PreparedRegistration ¶
type PreparedRegistration struct {
// contains filtered or unexported fields
}
PreparedRegistration stores private copies of validated registration metadata. Its zero value cannot execute. Analyzer implementations are responsible for their own panics and concurrent access to their internal state.
func Prepare ¶
func Prepare(registration results.AnalyzerRegistration, available []rule.InputKind) (PreparedRegistration, error)
Prepare validates a registration once for an exact set of available input kinds.
func PrepareForwarding ¶
func PrepareForwarding(registration results.AnalyzerRegistration, available []rule.InputKind) (PreparedRegistration, error)
PrepareForwarding admits a transparent adapter's implementation through the same executor. Runtime errors use their existing text so an enclosing invocation can add its own analyzer context exactly once.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package composites checks workflow and action invocations with prepared rules.
|
Package composites checks workflow and action invocations with prepared rules. |
|
Package registration connects rule declarations to their check implementations and required inputs.
|
Package registration connects rule declarations to their check implementations and required inputs. |