wasmcloud_provider_blobstore_s3

Struct BlobstoreS3Provider

source
pub struct BlobstoreS3Provider { /* private fields */ }
Expand description

Blobstore S3 provider

This struct will be the target of generated implementations (via wit-provider-bindgen) for the blobstore provider WIT contract

Implementations§

Trait Implementations§

source§

impl Clone for BlobstoreS3Provider

source§

fn clone(&self) -> BlobstoreS3Provider

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for BlobstoreS3Provider

source§

fn default() -> BlobstoreS3Provider

Returns the “default value” for a type. Read more
source§

impl Handler<Option<Context>> for BlobstoreS3Provider

source§

async fn clear_container( &self, cx: Option<Context>, name: String, ) -> Result<Result<(), String>>

source§

async fn container_exists( &self, cx: Option<Context>, name: String, ) -> Result<Result<bool, String>>

source§

async fn create_container( &self, cx: Option<Context>, name: String, ) -> Result<Result<(), String>>

source§

async fn delete_container( &self, cx: Option<Context>, name: String, ) -> Result<Result<(), String>>

source§

async fn get_container_info( &self, cx: Option<Context>, name: String, ) -> Result<Result<ContainerMetadata, String>>

source§

async fn list_container_objects( &self, cx: Option<Context>, name: String, limit: Option<u64>, offset: Option<u64>, ) -> Result<Result<(Pin<Box<dyn Stream<Item = Vec<String>> + Send>>, Pin<Box<dyn Future<Output = Result<(), String>> + Send>>), String>>

source§

async fn copy_object( &self, cx: Option<Context>, src: ObjectId, dest: ObjectId, ) -> Result<Result<(), String>>

source§

async fn delete_object( &self, cx: Option<Context>, id: ObjectId, ) -> Result<Result<(), String>>

source§

async fn delete_objects( &self, cx: Option<Context>, container: String, objects: Vec<String>, ) -> Result<Result<(), String>>

source§

async fn get_container_data( &self, cx: Option<Context>, id: ObjectId, start: u64, end: u64, ) -> Result<Result<(Pin<Box<dyn Stream<Item = Bytes> + Send>>, Pin<Box<dyn Future<Output = Result<(), String>> + Send>>), String>>

source§

async fn get_object_info( &self, cx: Option<Context>, id: ObjectId, ) -> Result<Result<ObjectMetadata, String>>

source§

async fn has_object( &self, cx: Option<Context>, id: ObjectId, ) -> Result<Result<bool, String>>

source§

async fn move_object( &self, cx: Option<Context>, src: ObjectId, dest: ObjectId, ) -> Result<Result<(), String>>

source§

async fn write_container_data( &self, cx: Option<Context>, id: ObjectId, data: Pin<Box<dyn Stream<Item = Bytes> + Send>>, ) -> Result<Result<Pin<Box<dyn Future<Output = Result<(), String>> + Send>>, String>>

source§

impl Provider for BlobstoreS3Provider

Handle provider control commands put_link (new component link command), del_link (remove link command), and shutdown

Provider should perform any operations needed for a new link, including setting up per-component resources, and checking authorization. If the link is allowed, return true, otherwise return false to deny the link.

Handle notification that a link is dropped: close the connection

source§

async fn shutdown(&self) -> Result<()>

Handle shutdown request by closing all connections

source§

fn init( &self, init_config: impl ProviderInitConfig, ) -> impl Future<Output = Result<(), E>> + Send

Initialize the provider Read more
source§

fn on_config_update( &self, update: impl ProviderConfigUpdate, ) -> impl Future<Output = Result<(), E>> + Send

Process a configuration update for the provider Read more
Receive and handle a link that has been established on the lattice where this provider is the source. Read more
Notify the provider that the link is dropped where the provider is the source
source§

fn health_request( &self, _arg: &HealthCheckRequest, ) -> impl Future<Output = Result<HealthCheckResponse, E>> + Send

Perform health check. Called at regular intervals by host Default implementation always returns healthy

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromRef<T> for T
where T: Clone,

source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
source§

impl<T> FutureExt for T

source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T