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 ¶
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 ¶
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 ¶
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.