nexus-agents - v2.80.0
GitHub
npm
Preparing search index...
IPolicyEngine
Interface IPolicyEngine
Policy engine interface.
interface
IPolicyEngine
{
evaluate
(
gate
:
{
id
:
string
;
afterStage
:
string
;
beforeStage
:
string
;
rules
:
string
[]
;
onFail
:
"warn"
|
"block"
|
"escalate"
;
}
,
context
:
PolicyContext
,
)
:
PolicyDecision
;
registerRule
(
rule
:
PolicyRule
)
:
void
;
listRules
()
:
readonly
PolicyRule
[]
;
}
Implemented by
PolicyEngine
Index
Methods
evaluate
register
Rule
list
Rules
Methods
evaluate
evaluate
(
gate
:
{
id
:
string
;
afterStage
:
string
;
beforeStage
:
string
;
rules
:
string
[]
;
onFail
:
"warn"
|
"block"
|
"escalate"
;
}
,
context
:
PolicyContext
,
)
:
PolicyDecision
Parameters
gate
:
{
id
:
string
;
afterStage
:
string
;
beforeStage
:
string
;
rules
:
string
[]
;
onFail
:
"warn"
|
"block"
|
"escalate"
;
}
context
:
PolicyContext
Returns
PolicyDecision
register
Rule
registerRule
(
rule
:
PolicyRule
)
:
void
Parameters
rule
:
PolicyRule
Returns
void
list
Rules
listRules
()
:
readonly
PolicyRule
[]
Returns
readonly
PolicyRule
[]
Settings
Member Visibility
Protected
Internal
Theme
OS
Light
Dark
On This Page
Methods
evaluate
register
Rule
list
Rules
GitHub
npm
nexus-agents - v2.80.0
Loading...
Policy engine interface.