Skip to main content

switch_removed_harness

Function switch_removed_harness 

Source
pub(crate) fn switch_removed_harness(
    mstore: &Store,
    id_store: &Store,
    identity_store: &Store,
    source_id: &str,
    provider: &str,
) -> Result<AgentDefinition, String>
Expand description

A copy of source_id, an agent on a removed harness, on provider, a harness AgentMux offers. Named Name (provider). What belongs to the removed harness (its flags, its vendor URL) is not carried. The caller publishes AgentsChanged.