noop

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package noop provides a shadow-mode executor: it accepts runs, logs the decision and does nothing. Point rules at it to validate webhook parsing and dispatch against production traffic before real runs are enabled; decisions show up in /api/v1/runs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

Executor implements executor.Executor without side effects.

func New

func New(cfg config.Executor, log *slog.Logger) *Executor

New builds a noop Executor from its config section.

func (*Executor) Name

func (e *Executor) Name() string

Name returns the executor's configured name.

func (*Executor) Run

func (e *Executor) Run(_ context.Context, spec executor.RunSpec) error

Run logs the would-be run and returns success immediately.

Jump to

Keyboard shortcuts

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