pub trait PolicyManager: Send + Sync {
// Provided methods
fn evaluate_start_component<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_component_id: &'life1 str,
_image_ref: &'life2 str,
_max_instances: u32,
_annotations: &'life3 BTreeMap<String, String>,
_claims: Option<&'life4 Claims<Component>>,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait { ... }
fn evaluate_start_provider<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_provider_id: &'life1 str,
_provider_ref: &'life2 str,
_annotations: &'life3 BTreeMap<String, String>,
_claims: Option<&'life4 Claims<CapabilityProvider>>,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait { ... }
fn evaluate_perform_invocation<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_component_id: &'life1 str,
_image_ref: &'life2 str,
_annotations: &'life3 BTreeMap<String, String>,
_claims: Option<&'life4 Claims<Component>>,
_interface: String,
_function: String,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait { ... }
}Expand description
A trait for evaluating policy decisions
Provided Methods§
Sourcefn evaluate_start_component<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_component_id: &'life1 str,
_image_ref: &'life2 str,
_max_instances: u32,
_annotations: &'life3 BTreeMap<String, String>,
_claims: Option<&'life4 Claims<Component>>,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn evaluate_start_component<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_component_id: &'life1 str,
_image_ref: &'life2 str,
_max_instances: u32,
_annotations: &'life3 BTreeMap<String, String>,
_claims: Option<&'life4 Claims<Component>>,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Evaluate whether a component may be started
Sourcefn evaluate_start_provider<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_provider_id: &'life1 str,
_provider_ref: &'life2 str,
_annotations: &'life3 BTreeMap<String, String>,
_claims: Option<&'life4 Claims<CapabilityProvider>>,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn evaluate_start_provider<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_provider_id: &'life1 str,
_provider_ref: &'life2 str,
_annotations: &'life3 BTreeMap<String, String>,
_claims: Option<&'life4 Claims<CapabilityProvider>>,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Evaluate whether a provider may be started
Sourcefn evaluate_perform_invocation<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_component_id: &'life1 str,
_image_ref: &'life2 str,
_annotations: &'life3 BTreeMap<String, String>,
_claims: Option<&'life4 Claims<Component>>,
_interface: String,
_function: String,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn evaluate_perform_invocation<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_component_id: &'life1 str,
_image_ref: &'life2 str,
_annotations: &'life3 BTreeMap<String, String>,
_claims: Option<&'life4 Claims<Component>>,
_interface: String,
_function: String,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Evaluate whether a component may perform an invocation