rulepack

package
v1.0.0-beta.149 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 5 Imported by: 0

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