application

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package application holds the validation use cases: the per-repository Validator and the entry runner that expands and validates mapping entries. It orchestrates the domain ports and contains all validation business logic; it touches no SDK, database, or network directly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunForEntries

func RunForEntries(
	ctx context.Context,
	entries []routingdomain.Entry,
	lister domain.RepoLister,
	v domain.RepoValidator,
) []domain.EntryResult

RunForEntries validates a slice of mapping entries, expanding wildcard entries against lister. It never short-circuits: per-repo failures and lister errors surface as the entry's reports so the operator sees every mapping's outcome in one run.

lister may be nil; wildcard entries then produce a single Skip report.

Types

type Validator

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

Validator runs the per-mapping checks. Construct with NewValidator; the HookProbe's Checker may be nil, in which case webhook coverage is reported as skipped.

func NewValidator

NewValidator builds a Validator. hook.Checker may be nil when no API token is configured.

func (*Validator) Validate

func (v *Validator) Validate(ctx context.Context, repository string) domain.Report

Validate runs every check for a single repository.

Jump to

Keyboard shortcuts

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