pub trait RepositoryProxy {
type Socket: Socket;
Show 14 methods
// Required methods
async fn init_repository(
&mut self,
path: &str,
algorithm: Option<&str>,
insecure: Option<bool>,
) -> Result<Result<InitRepositoryReply, RepositoryError>>;
async fn ensure_repository(
&mut self,
path: &str,
algorithm: Option<&str>,
insecure: Option<bool>,
) -> Result<Result<EnsureRepositoryReply, RepositoryError>>;
async fn open_repository(
&mut self,
path: Option<&str>,
user: Option<bool>,
system: Option<bool>,
) -> Result<Result<OpenRepositoryReply, RepositoryError>>;
async fn close_repository(
&mut self,
handle: u64,
) -> Result<Result<(), RepositoryError>>;
async fn fsck(
&mut self,
handle: u64,
metadata_only: Option<bool>,
) -> Result<Result<FsckReply, RepositoryError>>;
async fn gc(
&mut self,
handle: u64,
dry_run: bool,
roots: Vec<String>,
) -> Result<Result<GcReply, RepositoryError>>;
async fn image_objects(
&mut self,
handle: u64,
name: &str,
) -> Result<Result<ImageObjectsReply, RepositoryError>>;
fn chain_init_repository<'c, '__proxy_params>(
&'c mut self,
path: &'__proxy_params str,
algorithm: Option<&'__proxy_params str>,
insecure: Option<bool>,
) -> Result<Chain<'c, Self::Socket>>;
fn chain_ensure_repository<'c, '__proxy_params>(
&'c mut self,
path: &'__proxy_params str,
algorithm: Option<&'__proxy_params str>,
insecure: Option<bool>,
) -> Result<Chain<'c, Self::Socket>>;
fn chain_open_repository<'c, '__proxy_params>(
&'c mut self,
path: Option<&'__proxy_params str>,
user: Option<bool>,
system: Option<bool>,
) -> Result<Chain<'c, Self::Socket>>;
fn chain_close_repository<'c>(
&'c mut self,
handle: u64,
) -> Result<Chain<'c, Self::Socket>>;
fn chain_fsck<'c>(
&'c mut self,
handle: u64,
metadata_only: Option<bool>,
) -> Result<Chain<'c, Self::Socket>>;
fn chain_gc<'c>(
&'c mut self,
handle: u64,
dry_run: bool,
roots: Vec<String>,
) -> Result<Chain<'c, Self::Socket>>;
fn chain_image_objects<'c, '__proxy_params>(
&'c mut self,
handle: u64,
name: &'__proxy_params str,
) -> Result<Chain<'c, Self::Socket>>;
}Expand description
Typed client for the org.composefs.Repository interface.
Required Associated Types§
Required Methods§
Sourceasync fn init_repository(
&mut self,
path: &str,
algorithm: Option<&str>,
insecure: Option<bool>,
) -> Result<Result<InitRepositoryReply, RepositoryError>>
async fn init_repository( &mut self, path: &str, algorithm: Option<&str>, insecure: Option<bool>, ) -> Result<Result<InitRepositoryReply, RepositoryError>>
Initialize a new repository (or verify an existing one).
Sourceasync fn ensure_repository(
&mut self,
path: &str,
algorithm: Option<&str>,
insecure: Option<bool>,
) -> Result<Result<EnsureRepositoryReply, RepositoryError>>
async fn ensure_repository( &mut self, path: &str, algorithm: Option<&str>, insecure: Option<bool>, ) -> Result<Result<EnsureRepositoryReply, RepositoryError>>
Ensure a repository exists (open as-is, initialize, or upgrade).
Sourceasync fn open_repository(
&mut self,
path: Option<&str>,
user: Option<bool>,
system: Option<bool>,
) -> Result<Result<OpenRepositoryReply, RepositoryError>>
async fn open_repository( &mut self, path: Option<&str>, user: Option<bool>, system: Option<bool>, ) -> Result<Result<OpenRepositoryReply, RepositoryError>>
Open and validate a repository, returning an opaque handle.
Sourceasync fn close_repository(
&mut self,
handle: u64,
) -> Result<Result<(), RepositoryError>>
async fn close_repository( &mut self, handle: u64, ) -> Result<Result<(), RepositoryError>>
Close a previously opened repository handle.
Sourceasync fn fsck(
&mut self,
handle: u64,
metadata_only: Option<bool>,
) -> Result<Result<FsckReply, RepositoryError>>
async fn fsck( &mut self, handle: u64, metadata_only: Option<bool>, ) -> Result<Result<FsckReply, RepositoryError>>
Check repository integrity.
Sourceasync fn gc(
&mut self,
handle: u64,
dry_run: bool,
roots: Vec<String>,
) -> Result<Result<GcReply, RepositoryError>>
async fn gc( &mut self, handle: u64, dry_run: bool, roots: Vec<String>, ) -> Result<Result<GcReply, RepositoryError>>
Run garbage collection (or a dry run).
Sourceasync fn image_objects(
&mut self,
handle: u64,
name: &str,
) -> Result<Result<ImageObjectsReply, RepositoryError>>
async fn image_objects( &mut self, handle: u64, name: &str, ) -> Result<Result<ImageObjectsReply, RepositoryError>>
List the objects referenced by a single image.
Sourcefn chain_init_repository<'c, '__proxy_params>(
&'c mut self,
path: &'__proxy_params str,
algorithm: Option<&'__proxy_params str>,
insecure: Option<bool>,
) -> Result<Chain<'c, Self::Socket>>
fn chain_init_repository<'c, '__proxy_params>( &'c mut self, path: &'__proxy_params str, algorithm: Option<&'__proxy_params str>, insecure: Option<bool>, ) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Sourcefn chain_ensure_repository<'c, '__proxy_params>(
&'c mut self,
path: &'__proxy_params str,
algorithm: Option<&'__proxy_params str>,
insecure: Option<bool>,
) -> Result<Chain<'c, Self::Socket>>
fn chain_ensure_repository<'c, '__proxy_params>( &'c mut self, path: &'__proxy_params str, algorithm: Option<&'__proxy_params str>, insecure: Option<bool>, ) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Sourcefn chain_open_repository<'c, '__proxy_params>(
&'c mut self,
path: Option<&'__proxy_params str>,
user: Option<bool>,
system: Option<bool>,
) -> Result<Chain<'c, Self::Socket>>
fn chain_open_repository<'c, '__proxy_params>( &'c mut self, path: Option<&'__proxy_params str>, user: Option<bool>, system: Option<bool>, ) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Sourcefn chain_close_repository<'c>(
&'c mut self,
handle: u64,
) -> Result<Chain<'c, Self::Socket>>
fn chain_close_repository<'c>( &'c mut self, handle: u64, ) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Sourcefn chain_fsck<'c>(
&'c mut self,
handle: u64,
metadata_only: Option<bool>,
) -> Result<Chain<'c, Self::Socket>>
fn chain_fsck<'c>( &'c mut self, handle: u64, metadata_only: Option<bool>, ) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Sourcefn chain_gc<'c>(
&'c mut self,
handle: u64,
dry_run: bool,
roots: Vec<String>,
) -> Result<Chain<'c, Self::Socket>>
fn chain_gc<'c>( &'c mut self, handle: u64, dry_run: bool, roots: Vec<String>, ) -> Result<Chain<'c, Self::Socket>>
Start a chain with this method call.
Sourcefn chain_image_objects<'c, '__proxy_params>(
&'c mut self,
handle: u64,
name: &'__proxy_params str,
) -> Result<Chain<'c, Self::Socket>>
fn chain_image_objects<'c, '__proxy_params>( &'c mut self, handle: u64, name: &'__proxy_params str, ) -> 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".