runner

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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