pipelinegate

package
v0.198.21 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: BSD-2-Clause Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package pipelinegate refuses daemon startup when `dark-factory doctor` reports pipeline findings, naming the offending prompt numbers so a blocked queue cannot masquerade as an idle one.

Index

Constants

View Source
const DefaultEnabled = false

DefaultEnabled is the default for the gate's enabled control. The gate ships unarmed because arming it is an operational decision owned outside this spec; flipping this one constant arms it.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gate

type Gate interface {
	// Check returns nil when the gate is disabled, skipped, or doctor reports no
	// findings. Returns a findings-naming error when the pipeline is dirty
	// (the caller treats it as terminal).
	Check(ctx context.Context) error
}

Gate refuses daemon startup when the pipeline is not clean.

func NewGate

func NewGate(enabled bool, skip bool, checker doctor.Checker) Gate

NewGate creates a new Gate.

Jump to

Keyboard shortcuts

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