pub struct OverlayGate { /* private fields */ }Expand description
A gate whose inner GovernanceGate is replaced atomically on update.
Trait Implementations§
Source§impl GateBackend for OverlayGate
impl GateBackend for OverlayGate
Source§fn check(&self, agent_id: &str, action: &str, context: &Value) -> GateDecision
fn check(&self, agent_id: &str, action: &str, context: &Value) -> GateDecision
Check whether an agent is allowed to perform an action. Read more
Source§fn governance_snapshot(&self) -> Option<GovernanceSnapshot>
fn governance_snapshot(&self) -> Option<GovernanceSnapshot>
The rules and settings this gate evaluates with, when it is backed by
a governance engine. The user daemon exports it as the signed parent
policy for its project kernels (ADR-103 D8).
None for gates with no
rule set.Source§fn check_teardown(
&self,
agent_id: &str,
action: &str,
context: &Value,
) -> GateDecision
fn check_teardown( &self, agent_id: &str, action: &str, context: &Value, ) -> GateDecision
Self::check for a teardown (stop / unload / re-adoption of what
is already placed): a denial caused only by the node’s trust tier is
waived, every other denial (revocation, default deny, rule or
threshold) stands. Gates that cannot tell the difference return the
plain decision, so they never waive anything.Auto Trait Implementations§
impl !Freeze for OverlayGate
impl RefUnwindSafe for OverlayGate
impl Send for OverlayGate
impl Sync for OverlayGate
impl Unpin for OverlayGate
impl UnsafeUnpin for OverlayGate
impl UnwindSafe for OverlayGate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more