pub struct GuestRuntimeConfig {
pub listen_addr: SocketAddr,
pub sample_dir: &'static str,
pub artifact_dir: &'static str,
pub stash_dir: &'static str,
pub log_dir: &'static str,
pub external_log_dir: &'static str,
pub stash_threshold_bytes: usize,
pub stash_ttl_secs: u64,
pub log_filter: &'static str,
pub analysis_timeout: u64,
pub auto_collect_artifacts: AutoCollectRuntimeConfig,
pub auto_collect_external_logs: AutoCollectRuntimeConfig,
}Expand description
Configuration for the guest plugin runtime.
All values are baked into the plugin binary at compile time by the
#[guest_plugin] macro (sourced from plugin.toml). Paths use
&'static str so the config can be a const.
Fields§
§listen_addr: SocketAddrAddress the gRPC server binds to (e.g. 0.0.0.0:50100).
sample_dir: &'static strDirectory where the daemon pushes sample files.
artifact_dir: &'static strDirectory where plugins write artifact files for collection.
stash_dir: &'static strDirectory used for the disk-backed result stash.
log_dir: &'static strDirectory for log overflow files when the ring buffer is full.
external_log_dir: &'static strDirectory for external log files collected after analysis.
stash_threshold_bytes: usizeResults larger than this (bytes) are stashed to disk instead of sent inline.
stash_ttl_secs: u64How long (seconds) a stashed result can remain un-pulled before cleanup.
log_filter: &'static strtracing filter directive (e.g. "info" or "my_plugin=debug").
analysis_timeout: u64Default analysis timeout in seconds if the daemon does not specify one.
auto_collect_artifacts: AutoCollectRuntimeConfigAuto-collection settings for the artifact directory.
auto_collect_external_logs: AutoCollectRuntimeConfigAuto-collection settings for the external log directory.
Trait Implementations§
Source§impl Clone for GuestRuntimeConfig
impl Clone for GuestRuntimeConfig
Source§fn clone(&self) -> GuestRuntimeConfig
fn clone(&self) -> GuestRuntimeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GuestRuntimeConfig
impl Debug for GuestRuntimeConfig
impl Copy for GuestRuntimeConfig
Auto Trait Implementations§
impl Freeze for GuestRuntimeConfig
impl RefUnwindSafe for GuestRuntimeConfig
impl Send for GuestRuntimeConfig
impl Sync for GuestRuntimeConfig
impl Unpin for GuestRuntimeConfig
impl UnsafeUnpin for GuestRuntimeConfig
impl UnwindSafe for GuestRuntimeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].