wasmcloud_provider_wadm

Struct WadmProvider

Source
pub struct WadmProvider { /* private fields */ }

Implementations§

Source§

impl WadmProvider

Source

pub async fn run() -> Result<()>

Source

pub fn from_host_data(host_data: &HostData) -> WadmProvider

Build a WadmProvider from HostData

Trait Implementations§

Source§

impl Clone for WadmProvider

Source§

fn clone(&self) -> WadmProvider

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 WadmProvider

Source§

fn default() -> Self

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

impl Handler<Option<Context>> for WadmProvider

Source§

async fn deploy_model( &self, ctx: Option<Context>, model_name: String, version: Option<String>, lattice: Option<String>, ) -> Result<Result<String, String>>

Deploys a model to the WADM system. If no lattice is provided, the default lattice name ‘default’ is used.
Source§

async fn undeploy_model( &self, ctx: Option<Context>, model_name: String, lattice: Option<String>, non_destructive: bool, ) -> Result<Result<(), String>>

Undeploys a model from the WADM system.
Source§

async fn put_model( &self, ctx: Option<Context>, model: String, lattice: Option<String>, ) -> Result<Result<(String, String), String>>

Stores the application manifest for later deploys. Model is the full YAML or JSON string in this case Returns the model name and version respectively.
Source§

async fn put_manifest( &self, ctx: Option<Context>, manifest: OamManifest, lattice: Option<String>, ) -> Result<Result<(String, String), String>>

Store an oam manifest directly for later deploys.
Source§

async fn get_model_history( &self, ctx: Option<Context>, model_name: String, lattice: Option<String>, ) -> Result<Result<Vec<VersionInfo>, String>>

Retrieves the history of a given model name.
Source§

async fn get_model_status( &self, ctx: Option<Context>, model_name: String, lattice: Option<String>, ) -> Result<Result<Status, String>>

Retrieves the status of a given model by name.
Source§

async fn get_model_details( &self, ctx: Option<Context>, model_name: String, version: Option<String>, lattice: Option<String>, ) -> Result<Result<OamManifest, String>>

Retrieves details on a given model.
Source§

async fn delete_model_version( &self, ctx: Option<Context>, model_name: String, version: Option<String>, lattice: Option<String>, ) -> Result<Result<bool, String>>

Deletes a model version from the WADM system.
Source§

async fn get_models( &self, ctx: Option<Context>, lattice: Option<String>, ) -> Result<Result<Vec<ModelSummary>, String>>

Retrieves all application manifests.
Source§

impl Provider for WadmProvider

Source§

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

Handle shutdown request by closing all connections

Receive and handle a link that has been established on the lattice where this provider is the target. 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
Notify the provider that the link is dropped where the provider is the target
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
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 u8)

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

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> 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> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
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> 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