Documentation
¶
Overview ¶
Package rule is the enable/disable signal the scheduler folds to decide whether a package runs. A Rule gives one opinion; Resolve combines an ordered chain. Requirement gates (version, dependency, bootstrap) and intent rules (bundle, enable intent, enabled script) are all Rules, so the scheduler branches only on the resolved Kind.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decision ¶
type Decision struct {
Kind Kind `json:"kind"`
Reason string `json:"reason,omitempty"`
Message string `json:"message,omitempty"`
}
Decision is a rule's verdict, with the reason and message a disabled package reports.
type Kind ¶
type Kind string
Kind is a rule's opinion. There is deliberately no hard enable: requirements must always be able to block.
const ( // Undefined means the rule has no opinion; resolution defers to other rules. Undefined Kind = "Undefined" // Enable is a soft vote to turn the package on; a later soft vote overrides it. Enable Kind = "Enable" // Disable is a soft vote to turn the package off; a later soft vote overrides it. Disable Kind = "Disable" // Forbid is a hard veto: the package is off and no other rule can re-enable it. Forbid Kind = "Forbid" )
Directories
¶
| Path | Synopsis |
|---|---|
|
Package bundle is a module intent rule: Enable when the active bundle of the active edition enables the module, a soft Disable otherwise.
|
Package bundle is a module intent rule: Enable when the active bundle of the active edition enables the module, a soft Disable otherwise. |
|
Package dynamic is a module's enable intent rule.
|
Package dynamic is a module's enable intent rule. |
|
Package script is a module's enabled script as a scheduler rule.
|
Package script is a module's enabled script as a scheduler rule. |