Function wasmcloud_core::par::read

source ·
pub async fn read(
    path: impl AsRef<Path>,
    host_id: impl AsRef<str>,
    provider_ref: impl AsRef<str>,
    cache: UseParFileCache,
) -> Result<(PathBuf, Option<Token<CapabilityProvider>>)>
Expand description

Reads a provider archive from the given path and writes it to the cache

§Arguments

  • path - The path to the provider archive
  • host_id - The host ID this provider is starting on. Required in order to isolate provider caches for different hosts
  • provider_ref - The reference to the provider (e.g. file or OCI). Required to cache provider for future fetches