pub struct S3Provider { /* private fields */ }Expand description
S3 provider for configuration synchronization
Implementations§
Source§impl S3Provider
impl S3Provider
Sourcepub async fn new_with_provider(provider_name: &str) -> Result<Self>
pub async fn new_with_provider(provider_name: &str) -> Result<Self>
Create a new S3 provider instance with a specific provider name
Sourcepub async fn upload_configs(
&self,
files: &[ConfigFile],
encrypted: bool,
) -> Result<()>
pub async fn upload_configs( &self, files: &[ConfigFile], encrypted: bool, ) -> Result<()>
Upload configuration files to S3
Sourcepub async fn download_configs(&self, encrypted: bool) -> Result<Vec<ConfigFile>>
pub async fn download_configs(&self, encrypted: bool) -> Result<Vec<ConfigFile>>
Download configuration files from S3
Sourcepub async fn list_configs(&self) -> Result<Vec<String>>
pub async fn list_configs(&self) -> Result<Vec<String>>
List available configuration files in S3 (for future use)
Sourcepub async fn delete_configs(&self, filenames: &[String]) -> Result<()>
pub async fn delete_configs(&self, filenames: &[String]) -> Result<()>
Delete configuration files from S3 (for future use)
Auto Trait Implementations§
impl Freeze for S3Provider
impl !RefUnwindSafe for S3Provider
impl Send for S3Provider
impl Sync for S3Provider
impl Unpin for S3Provider
impl !UnwindSafe for S3Provider
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.