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 ¶
func NewValidator(m domain.MappingLookup, s domain.SlackChecker, hook domain.HookProbe) *Validator
NewValidator builds a Validator. hook.Checker may be nil when no API token is configured.