pub struct PodProvisioningService { /* private fields */ }Expand description
Unified service handler for pod provisioning
Implementations§
Source§impl PodProvisioningService
impl PodProvisioningService
pub async fn new(config: SidecarConfig) -> Result<Self>
Sourcepub fn get_config(&self) -> &SidecarConfig
pub fn get_config(&self) -> &SidecarConfig
Get the service configuration
Sourcepub async fn spawn_pod(&self, request: SpawnPodTool) -> Result<SpawnPodResponse>
pub async fn spawn_pod(&self, request: SpawnPodTool) -> Result<SpawnPodResponse>
Handle spawn pod request
Sourcepub async fn topup_pod(&self, request: TopUpPodTool) -> Result<TopUpPodResponse>
pub async fn topup_pod(&self, request: TopUpPodTool) -> Result<TopUpPodResponse>
Handle top-up pod request
Sourcepub async fn get_offers(
&self,
_request: GetOffersTool,
) -> Result<GetOffersResponse>
pub async fn get_offers( &self, _request: GetOffersTool, ) -> Result<GetOffersResponse>
Handle get offers request
Sourcepub async fn get_pod_status(
&self,
request: GetPodStatusTool,
) -> Result<GetPodStatusResponse>
pub async fn get_pod_status( &self, request: GetPodStatusTool, ) -> Result<GetPodStatusResponse>
Handle get pod status request
Auto Trait Implementations§
impl Freeze for PodProvisioningService
impl !RefUnwindSafe for PodProvisioningService
impl Send for PodProvisioningService
impl Sync for PodProvisioningService
impl Unpin for PodProvisioningService
impl UnsafeUnpin for PodProvisioningService
impl !UnwindSafe for PodProvisioningService
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 more