pub struct LocalDomain<S: Storage = LocalStorage, R: Remote = RemoteS3> { /* private fields */ }
Expand description
This is the entrypoint for the lib.
All the work you can do with packages is done through calling LocalDomain
methods.
Implementations§
Source§impl LocalDomain
impl LocalDomain
pub fn get_remote(&self) -> &RemoteS3
pub fn new(root_dir: impl AsRef<Path>) -> Self
pub async fn get_home(&self) -> Res<Home>
pub async fn set_home(&self, dir: impl AsRef<Path>) -> Res<Home>
pub async fn scaffold_paths_for_installing(&self, namespace: &Namespace) -> Res
pub async fn scaffold_paths_for_caching(&self, bucket: &str) -> Res
pub async fn browse_remote_manifest(&self, uri: &ManifestUri) -> Res<Table>
pub fn create_installed_package( &self, namespace: Namespace, ) -> Res<InstalledPackage>
pub async fn install_package( &self, manifest_uri: &ManifestUri, ) -> Res<InstalledPackage>
pub async fn uninstall_package(&self, namespace: Namespace) -> Res<()>
pub async fn list_installed_packages(&self) -> Res<Vec<InstalledPackage>>
pub async fn get_installed_package( &self, namespace: &Namespace, ) -> Res<Option<InstalledPackage>>
pub async fn package_s3_prefix( &self, source_uri: &S3Uri, dest_uri: S3PackageUri, message: Option<String>, user_meta: Option<Value>, ) -> Res<ManifestUri>
pub async fn build_manifest( &self, dest_path: PathBuf, stream: impl RowsStream + Unpin, ) -> Res<(PathBuf, String)>
Trait Implementations§
Auto Trait Implementations§
impl<S, R> Freeze for LocalDomain<S, R>
impl<S, R> RefUnwindSafe for LocalDomain<S, R>where
S: RefUnwindSafe,
R: RefUnwindSafe,
impl<S, R> Send for LocalDomain<S, R>
impl<S, R> Sync for LocalDomain<S, R>
impl<S, R> Unpin for LocalDomain<S, R>
impl<S, R> UnwindSafe for LocalDomain<S, R>where
S: UnwindSafe,
R: UnwindSafe,
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
Mutably borrows from an owned value. Read more
Source§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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.