pub trait OciProxy {
type Socket: Socket;
Show 14 methods
// Required methods
async fn list_images(
&mut self,
handle: u64,
filter: Option<&str>,
) -> Result<Result<ListImagesReply, OciError>>;
async fn oci_fsck(
&mut self,
handle: u64,
image: Option<&str>,
) -> Result<Result<OciFsckReply, OciError>>;
async fn inspect(
&mut self,
handle: u64,
image: &str,
) -> Result<Result<OciInspectReply, OciError>>;
async fn tag(
&mut self,
handle: u64,
manifest_digest: &str,
name: &str,
) -> Result<Result<(), OciError>>;
async fn untag(
&mut self,
handle: u64,
name: &str,
) -> Result<Result<(), OciError>>;
async fn compute_id(
&mut self,
handle: u64,
image: &str,
verity: Option<&str>,
bootable: bool,
) -> Result<Result<OciComputeIdReply, OciError>>;
async fn pull(
&mut self,
handle: u64,
image: &str,
name: Option<&str>,
local_fetch: &str,
storage_root: Option<&str>,
bootable: bool,
) -> Result<impl Stream<Item = Result<Result<PullProgress, OciError>>>>;
fn chain_list_images<'c, '__proxy_params>(
&'c mut self,
handle: u64,
filter: Option<&'__proxy_params str>,
) -> Result<Chain<'c, Self::Socket>>;
fn chain_oci_fsck<'c, '__proxy_params>(
&'c mut self,
handle: u64,
image: Option<&'__proxy_params str>,
) -> Result<Chain<'c, Self::Socket>>;
fn chain_inspect<'c, '__proxy_params>(
&'c mut self,
handle: u64,
image: &'__proxy_params str,
) -> Result<Chain<'c, Self::Socket>>;
fn chain_tag<'c, '__proxy_params>(
&'c mut self,
handle: u64,
manifest_digest: &'__proxy_params str,
name: &'__proxy_params str,
) -> Result<Chain<'c, Self::Socket>>;
fn chain_untag<'c, '__proxy_params>(
&'c mut self,
handle: u64,
name: &'__proxy_params str,
) -> Result<Chain<'c, Self::Socket>>;
fn chain_compute_id<'c, '__proxy_params>(
&'c mut self,
handle: u64,
image: &'__proxy_params str,
verity: Option<&'__proxy_params str>,
bootable: bool,
) -> Result<Chain<'c, Self::Socket>>;
fn chain_pull<'c, '__proxy_params>(
&'c mut self,
handle: u64,
image: &'__proxy_params str,
name: Option<&'__proxy_params str>,
local_fetch: &'__proxy_params str,
storage_root: Option<&'__proxy_params str>,
bootable: bool,
) -> Result<Chain<'c, Self::Socket>>;
}Expand description
Typed client for the org.composefs.Oci interface.
Required Associated Types§
Required Methods§
Sourceasync fn list_images(
&mut self,
handle: u64,
filter: Option<&str>,
) -> Result<Result<ListImagesReply, OciError>>
async fn list_images( &mut self, handle: u64, filter: Option<&str>, ) -> Result<Result<ListImagesReply, OciError>>
List tagged OCI images.
Sourceasync fn oci_fsck(
&mut self,
handle: u64,
image: Option<&str>,
) -> Result<Result<OciFsckReply, OciError>>
async fn oci_fsck( &mut self, handle: u64, image: Option<&str>, ) -> Result<Result<OciFsckReply, OciError>>
Run an OCI-aware consistency check (wire method Check).
Sourceasync fn inspect(
&mut self,
handle: u64,
image: &str,
) -> Result<Result<OciInspectReply, OciError>>
async fn inspect( &mut self, handle: u64, image: &str, ) -> Result<Result<OciInspectReply, OciError>>
Inspect a single OCI image.
Sourceasync fn tag(
&mut self,
handle: u64,
manifest_digest: &str,
name: &str,
) -> Result<Result<(), OciError>>
async fn tag( &mut self, handle: u64, manifest_digest: &str, name: &str, ) -> Result<Result<(), OciError>>
Tag a manifest digest with a name.
Sourceasync fn untag(
&mut self,
handle: u64,
name: &str,
) -> Result<Result<(), OciError>>
async fn untag( &mut self, handle: u64, name: &str, ) -> Result<Result<(), OciError>>
Remove a tag.
Sourceasync fn compute_id(
&mut self,
handle: u64,
image: &str,
verity: Option<&str>,
bootable: bool,
) -> Result<Result<OciComputeIdReply, OciError>>
async fn compute_id( &mut self, handle: u64, image: &str, verity: Option<&str>, bootable: bool, ) -> Result<Result<OciComputeIdReply, OciError>>
Compute the composefs image ID for an OCI image.
Sourceasync fn pull(
&mut self,
handle: u64,
image: &str,
name: Option<&str>,
local_fetch: &str,
storage_root: Option<&str>,
bootable: bool,
) -> Result<impl Stream<Item = Result<Result<PullProgress, OciError>>>>
async fn pull( &mut self, handle: u64, image: &str, name: Option<&str>, local_fetch: &str, storage_root: Option<&str>, bootable: bool, ) -> Result<impl Stream<Item = Result<Result<PullProgress, OciError>>>>
Pull an OCI image, streaming progress frames.
Sourcefn chain_list_images<'c, '__proxy_params>(
&'c mut self,
handle: u64,
filter: Option<&'__proxy_params str>,
) -> Result<Chain<'c, Self::Socket>>
fn chain_list_images<'c, '__proxy_params>( &'c mut self, handle: u64, filter: Option<&'__proxy_params str>, ) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Sourcefn chain_oci_fsck<'c, '__proxy_params>(
&'c mut self,
handle: u64,
image: Option<&'__proxy_params str>,
) -> Result<Chain<'c, Self::Socket>>
fn chain_oci_fsck<'c, '__proxy_params>( &'c mut self, handle: u64, image: Option<&'__proxy_params str>, ) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Sourcefn chain_inspect<'c, '__proxy_params>(
&'c mut self,
handle: u64,
image: &'__proxy_params str,
) -> Result<Chain<'c, Self::Socket>>
fn chain_inspect<'c, '__proxy_params>( &'c mut self, handle: u64, image: &'__proxy_params str, ) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Sourcefn chain_tag<'c, '__proxy_params>(
&'c mut self,
handle: u64,
manifest_digest: &'__proxy_params str,
name: &'__proxy_params str,
) -> Result<Chain<'c, Self::Socket>>
fn chain_tag<'c, '__proxy_params>( &'c mut self, handle: u64, manifest_digest: &'__proxy_params str, name: &'__proxy_params str, ) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Sourcefn chain_untag<'c, '__proxy_params>(
&'c mut self,
handle: u64,
name: &'__proxy_params str,
) -> Result<Chain<'c, Self::Socket>>
fn chain_untag<'c, '__proxy_params>( &'c mut self, handle: u64, name: &'__proxy_params str, ) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Sourcefn chain_compute_id<'c, '__proxy_params>(
&'c mut self,
handle: u64,
image: &'__proxy_params str,
verity: Option<&'__proxy_params str>,
bootable: bool,
) -> Result<Chain<'c, Self::Socket>>
fn chain_compute_id<'c, '__proxy_params>( &'c mut self, handle: u64, image: &'__proxy_params str, verity: Option<&'__proxy_params str>, bootable: bool, ) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Sourcefn chain_pull<'c, '__proxy_params>(
&'c mut self,
handle: u64,
image: &'__proxy_params str,
name: Option<&'__proxy_params str>,
local_fetch: &'__proxy_params str,
storage_root: Option<&'__proxy_params str>,
bootable: bool,
) -> Result<Chain<'c, Self::Socket>>
fn chain_pull<'c, '__proxy_params>( &'c mut self, handle: u64, image: &'__proxy_params str, name: Option<&'__proxy_params str>, local_fetch: &'__proxy_params str, storage_root: Option<&'__proxy_params str>, bootable: bool, ) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.