pub enum RegistryPullSource {
Builtin,
LocalPath(String),
RemoteHttpWellKnown(String),
RemoteOci(String),
RemoteHttp(String),
RemoteGit(String),
}Expand description
Source for a registry pull
Variants§
Builtin
Sources for interfaces that are built-in/resolvable without configuration,
or special-cased in some other way
(e.g. wasi:http is a well known standard)
LocalPath(String)
A file source
These references are resolved in two ways:
- If a directory, then the namespace & path are appended
- If a direct file then the file itself is used
(ex. ‘file://relative/path/to/file’, ‘file:///absolute/path/to/file’)
RemoteHttpWellKnown(String)
Remote HTTP registry, configured to support .well-known/wasm-pkg/registry.json
RemoteOci(String)
An OCI reference
These references are resolved by appending the intended namespace and package to the provided URI
(ex. resolving wasi:keyvalue@0.2.0 with ‘oci://ghcr.io/wasmcloud/wit’ becomes oci://ghcr.io/wasmcloud/wit/wasi/keyvalue:0.2.0)
RemoteHttp(String)
URL to a HTTP/S resource
These references are resolved by downloading and uncompressing (where possible) the linked file as WIT, for whatever interfaces were provided.
(ex. resolving https://example.com/wit/package.tgz means downloading and unpacking the tarball)
RemoteGit(String)
URL to a GIT repository
These URLs are guaranteed to start with a git-related scheme (ex. git+http://, git+ssh://, …)
and will be used as the base under which to pull a folder of WIT
Implementations§
Trait Implementations§
Source§impl Clone for RegistryPullSource
impl Clone for RegistryPullSource
Source§fn clone(&self) -> RegistryPullSource
fn clone(&self) -> RegistryPullSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RegistryPullSource
impl Debug for RegistryPullSource
Source§impl Default for RegistryPullSource
impl Default for RegistryPullSource
Source§fn default() -> RegistryPullSource
fn default() -> RegistryPullSource
Source§impl<'de> Deserialize<'de> for RegistryPullSource
impl<'de> Deserialize<'de> for RegistryPullSource
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for RegistryPullSource
impl Display for RegistryPullSource
Source§impl FromStr for RegistryPullSource
impl FromStr for RegistryPullSource
Source§impl PartialEq for RegistryPullSource
impl PartialEq for RegistryPullSource
Source§impl TryFrom<RegistryPullSource> for RegistryMapping
impl TryFrom<RegistryPullSource> for RegistryMapping
Source§impl TryFrom<String> for RegistryPullSource
impl TryFrom<String> for RegistryPullSource
impl Eq for RegistryPullSource
impl StructuralPartialEq for RegistryPullSource
Auto Trait Implementations§
impl Freeze for RegistryPullSource
impl RefUnwindSafe for RegistryPullSource
impl Send for RegistryPullSource
impl Sync for RegistryPullSource
impl Unpin for RegistryPullSource
impl UnwindSafe for RegistryPullSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
self file descriptor. Read moreSource§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>
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>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.