pub struct ExternalRuntimeGraph {
pub providers: BTreeMap<String, ProviderExecutable>,
pub secret_resolvers: BTreeMap<String, SecretExecutable>,
}Expand description
Complete external runtime graph for one evaluated configuration.
Fields§
§providers: BTreeMap<String, ProviderExecutable>Provider instance id → executable.
secret_resolvers: BTreeMap<String, SecretExecutable>Secret resolver id → executable.
Implementations§
Source§impl ExternalRuntimeGraph
impl ExternalRuntimeGraph
Sourcepub fn from_plan(plan: &PlanEnvelope) -> Result<Self, CompositionError>
pub fn from_plan(plan: &PlanEnvelope) -> Result<Self, CompositionError>
Rehydrate only the executable identities authorized by a reviewed plan. Every executable is reread and its digest checked before mutation.
pub fn from_plan_with_linked( plan: &PlanEnvelope, linked: &LinkedProviderRegistry, ) -> Result<Self, CompositionError>
Sourcepub fn from_canonical(
config: &CanonicalConfig,
) -> Result<Self, CompositionError>
pub fn from_canonical( config: &CanonicalConfig, ) -> Result<Self, CompositionError>
Build the graph from evaluated canonical configuration.
Declared provider executable commands and secret resolvers are verified immediately.
pub fn from_canonical_with_linked( config: &CanonicalConfig, linked: &LinkedProviderRegistry, ) -> Result<Self, CompositionError>
pub fn provider(&self, instance_id: &str) -> Option<&ProviderExecutable>
pub fn secret_resolver(&self, resolver_id: &str) -> Option<&SecretExecutable>
Sourcepub fn require_provider(
&self,
instance_id: &str,
) -> Result<&ProviderExecutable, CompositionError>
pub fn require_provider( &self, instance_id: &str, ) -> Result<&ProviderExecutable, CompositionError>
Require a composed provider instance.
Sourcepub fn require_secret_resolver(
&self,
resolver_id: &str,
) -> Result<&SecretExecutable, CompositionError>
pub fn require_secret_resolver( &self, resolver_id: &str, ) -> Result<&SecretExecutable, CompositionError>
Require a secret resolver executable for action-scoped resolution.
Trait Implementations§
Source§impl Clone for ExternalRuntimeGraph
impl Clone for ExternalRuntimeGraph
Source§fn clone(&self) -> ExternalRuntimeGraph
fn clone(&self) -> ExternalRuntimeGraph
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExternalRuntimeGraph
impl Debug for ExternalRuntimeGraph
Source§impl Default for ExternalRuntimeGraph
impl Default for ExternalRuntimeGraph
Source§fn default() -> ExternalRuntimeGraph
fn default() -> ExternalRuntimeGraph
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExternalRuntimeGraph
impl !RefUnwindSafe for ExternalRuntimeGraph
impl Send for ExternalRuntimeGraph
impl Sync for ExternalRuntimeGraph
impl Unpin for ExternalRuntimeGraph
impl UnsafeUnpin for ExternalRuntimeGraph
impl !UnwindSafe for ExternalRuntimeGraph
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> 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>
Wrap the input message
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>,
Applies the layer to a service and wraps it in [
Layered].