pub struct ALClient { /* private fields */ }Implementations§
Source§impl ALClient
impl ALClient
pub fn new(service_uri: Option<String>, token: String) -> Result<Self>
pub async fn get_credentials( &self, org: &str, repo: &str, ) -> Result<ALBucketCredentials>
pub async fn get_credentials_by_id( &self, id: &RepoId, ) -> Result<ALBucketCredentials>
pub async fn list_repo_info(&self, org: &str) -> Result<Vec<ALRepoInfo>>
pub async fn create_repo_info( &self, org: &str, repo: &str, bucket_nickname: &Option<String>, prefix: &Option<String>, create_mode: ALRepoCreateMode, ) -> Result<ALRepoInfo>
pub async fn create_repo( self: Arc<Self>, org: &str, repo: &str, bucket_nickname: &Option<String>, prefix: &Option<String>, create_mode: ALRepoCreateMode, spec_version: Option<SpecVersionBin>, ) -> Result<Repository>
pub async fn get_or_create_repo_info( &self, org: &str, repo: &str, bucket_nickname: Option<String>, prefix: Option<String>, create_mode: ALRepoCreateMode, ) -> Result<ALRepoInfo>
pub async fn get_or_create_repo( self: &Arc<Self>, org: &str, repo: &str, bucket_nickname: Option<String>, prefix: Option<String>, create_mode: ALRepoCreateMode, spec_version: Option<SpecVersionBin>, ) -> Result<Repository>
pub async fn get_repo_info(&self, org: &str, repo: &str) -> Result<ALRepoInfo>
pub async fn get_repo_info_by_id(&self, id: &RepoId) -> Result<ALRepoInfo>
pub async fn get_repo( self: &Arc<Self>, org: &str, repo: &str, ) -> Result<Repository>
pub async fn delete_repo(&self, org: &str, repo: &str) -> Result<()>
pub async fn get_storage_for_repo( self: &Arc<Self>, repo: &ALRepoInfo, ) -> Result<Arc<dyn Storage + Send + Sync>>
pub async fn store_gc_results( &self, org: &str, repo: &str, job_run_id: Option<&str>, result: GCSummary, ) -> Result<()>
pub async fn store_expiration_results( &self, org: &str, repo: &str, job_run_id: Option<&str>, result: ExpireResult, ) -> Result<()>
pub async fn get_repo_subscriptions( &self, repo: &RepoId, ) -> Result<impl TryStream<Ok = RepoSubscription, Error = Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ALClient
impl !RefUnwindSafe for ALClient
impl Send for ALClient
impl Sync for ALClient
impl Unpin for ALClient
impl UnsafeUnpin for ALClient
impl !UnwindSafe for ALClient
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.