patternresolver

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 10 Imported by: 0 modules, 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 patternresolver connects an explicitly selected verified Pattern v2 store to control's source-bound admission. It registers no transport, selects no path and never owns an Engine, device or user configuration.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfiguration = errors.New("Pattern v2 resolver store is not configured")
	ErrReference     = errors.New("resolved Pattern does not match requested ref")
)

Functions

func New

func New(store Store) control.PatternResolver

New constructs a lazy callback, without calling the store. Missing/typed-nil storage is reported only when a genuinely new key invokes it; existing core receipts can still be replayed, queried or cancelled without storage.

Types

type Store

type Store interface {
	Resolve(id, revision string) (patternsv2.Record, error)
}

Store deliberately exposes only exact resolution. Inspection, a current revision guess, a directory path or a source-only record cannot substitute.

Jump to

Keyboard shortcuts

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