runner

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 6 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 runner resolves and invokes default lint/compare plugins by interface type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string

Action identifies a plugin role.

const (
	ActionLint    Action = "lint"
	ActionCompare Action = "compare"
)

type Comparator

type Comparator interface {
	ID() string
	Compare(input contract.CompareInput) (contract.CompareOutput, error)
}

Comparator detects changes between two specifications.

type Linter

type Linter interface {
	ID() string
	Lint(input contract.LintInput) (contract.LintOutput, error)
}

Linter runs quality analysis on a single specification.

type Registry

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

Registry maps interface types to default plugins.

func DefaultRegistry

func DefaultRegistry() *Registry

DefaultRegistry returns the built-in default plugins for each type/action.

func (*Registry) Compare

Compare invokes the default comparator for the input's interface type.

func (*Registry) Lint

Lint invokes the default linter for the input's interface type.

Jump to

Keyboard shortcuts

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