pub struct GeneratedNodeCoverage {
pub labeled: Vec<(String, SecurityLabel)>,
pub unlabeled: Vec<String>,
}Expand description
Per-node label coverage of a service’s generated vfs_nodes() table
(#699 carrier (a)): each generated /srv/{service}/* node carries its MAC
label as a property of its type, derived from the $vfsMac schema annotation
at codegen (see hyprstream_rpc::metadata::VfsNode::mac_label).
A node whose schema declared no $vfsMac decodes to None ⇒ unlabeled ⇒
deny ⇒ a finding the operator must close (by annotating the schema) before
enforcement is enabled. There is no permissive default and no catch-all: this
type only partitions what the schemas declared.
Fields§
§labeled: Vec<(String, SecurityLabel)>(mount-relative path, label) for every node that resolves to a label.
unlabeled: Vec<String>Mount-relative paths of nodes whose schema declared no $vfsMac
(unlabeled ⇒ deny ⇒ finding).
Implementations§
Source§impl GeneratedNodeCoverage
impl GeneratedNodeCoverage
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Coverage is complete iff every generated node resolves to a label.
Sourcepub fn for_all_services() -> Self
pub fn for_all_services() -> Self
Classify the real generated-node inventory — every vfs_nodes()
table registered at codegen via inventory::submit! { VfsNodeTable } —
into labeled / unlabeled. This is the source the startup gate walks: it
covers every reachable generated object class, not whatever a hand-built
fixture happened to include.
Deterministic: tables are sorted by service name, and the output’s
labeled/unlabeled are sorted (stable reports + tests).
Sourcepub fn for_service(service: &str, nodes: &[VfsNode]) -> Self
pub fn for_service(service: &str, nodes: &[VfsNode]) -> Self
Classify a service’s generated node table by carrier (a).
service is the /srv/{service} mount name (for reporting); nodes is
the table the codegen macro emitted (from vfs_nodes()).
Trait Implementations§
Source§impl Clone for GeneratedNodeCoverage
impl Clone for GeneratedNodeCoverage
Source§fn clone(&self) -> GeneratedNodeCoverage
fn clone(&self) -> GeneratedNodeCoverage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeneratedNodeCoverage
impl Debug for GeneratedNodeCoverage
Source§impl Default for GeneratedNodeCoverage
impl Default for GeneratedNodeCoverage
Source§fn default() -> GeneratedNodeCoverage
fn default() -> GeneratedNodeCoverage
Source§impl PartialEq for GeneratedNodeCoverage
impl PartialEq for GeneratedNodeCoverage
Source§fn eq(&self, other: &GeneratedNodeCoverage) -> bool
fn eq(&self, other: &GeneratedNodeCoverage) -> bool
self and other values to be equal, and is used by ==.impl Eq for GeneratedNodeCoverage
impl StructuralPartialEq for GeneratedNodeCoverage
Auto Trait Implementations§
impl Freeze for GeneratedNodeCoverage
impl RefUnwindSafe for GeneratedNodeCoverage
impl Send for GeneratedNodeCoverage
impl Sync for GeneratedNodeCoverage
impl Unpin for GeneratedNodeCoverage
impl UnsafeUnpin for GeneratedNodeCoverage
impl UnwindSafe for GeneratedNodeCoverage
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request