rulepack

package
v1.0.0-beta.162 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 5 Imported by: ? 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 rulepack owns the process-level identity contract for composed rule processors. It depends on configuration types and the public NATS KV-key contract so lifecycle services can enforce identity without importing the rule implementation.

Index

Constants

View Source
const (
	// PackIDCharset is the exact ASCII alphabet accepted for rule-pack IDs.
	PackIDCharset = "[A-Za-z0-9_=-]"
	// MaxPackIDBytes preserves the 256-byte owner-key budget after the
	// "rule-pack." prefix.
	MaxPackIDBytes = 246
)

Variables

This section is empty.

Functions

func ValidateConfig

func ValidateConfig(cfg *config.Config) error

ValidateConfig validates every declared rule-pack identity and rejects a duplicate among enabled instances. Disabled instances still require a valid identity so enabling one can never introduce an unvalidated producer.

func ValidateID

func ValidateID(packID string) error

ValidateID validates the public, stable rule-pack identity contract.

func ValidateRuntimeUpdate

func ValidateRuntimeUpdate(instanceName string, previous *types.ComponentConfig, proposed types.ComponentConfig) error

ValidateRuntimeUpdate rejects rule-processor composition changes that cannot preserve the static owner binding established before ComponentManager.Start.

Types

This section is empty.

Jump to

Keyboard shortcuts

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