pub struct Bridge { /* private fields */ }Expand description
The Python bridge for plugin execution
Implementations§
Source§impl Bridge
impl Bridge
pub fn invoke_plugin( &self, target: &str, config_json: &str, stdin_json: Option<&str>, plugin_metadata: Option<&Plugin>, ) -> Result<PluginInvocationResult, BridgeError>
pub fn invoke_plugin_with_bindings( &self, target: &str, config_json: &str, stdin_json: Option<&str>, runtime_bindings: Option<&RuntimeBindings>, ) -> Result<PluginInvocationResult, BridgeError>
Sourcepub fn save_system_artifact_as_zip(
&self,
input: &ArtifactBundle,
output: &Path,
) -> Result<(), BridgeError>
pub fn save_system_artifact_as_zip( &self, input: &ArtifactBundle, output: &Path, ) -> Result<(), BridgeError>
Save a System artifact as an infrasys ZIP archive.
Sourcepub fn invoke_plugin_with_artifacts(
&self,
target: &str,
config_json: &str,
input: Option<&ArtifactBundle>,
output: &ArtifactBundle,
plugin_metadata: Option<&Plugin>,
) -> Result<PluginArtifactInvocationResult, BridgeError>
pub fn invoke_plugin_with_artifacts( &self, target: &str, config_json: &str, input: Option<&ArtifactBundle>, output: &ArtifactBundle, plugin_metadata: Option<&Plugin>, ) -> Result<PluginArtifactInvocationResult, BridgeError>
Invoke a plugin using directory-backed input and output artifacts.
Payload bytes remain in Python. In particular, Systems are loaded and written through their path-aware Python APIs so sidecars stay adjacent to the JSON entrypoint.
Sourcepub fn invoke_plugin_with_artifact_bindings(
&self,
target: &str,
config_json: &str,
input: Option<&ArtifactBundle>,
output: &ArtifactBundle,
runtime_bindings: Option<&RuntimeBindings>,
) -> Result<PluginArtifactInvocationResult, BridgeError>
pub fn invoke_plugin_with_artifact_bindings( &self, target: &str, config_json: &str, input: Option<&ArtifactBundle>, output: &ArtifactBundle, runtime_bindings: Option<&RuntimeBindings>, ) -> Result<PluginArtifactInvocationResult, BridgeError>
Artifact-mode counterpart of Self::invoke_plugin_with_bindings.
Auto Trait Implementations§
impl Freeze for Bridge
impl RefUnwindSafe for Bridge
impl Send for Bridge
impl Sync for Bridge
impl Unpin for Bridge
impl UnsafeUnpin for Bridge
impl UnwindSafe for Bridge
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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