pub struct ProvisioningService<A, B, C, D>{ /* private fields */ }Implementations§
Source§impl<A, B, C, D> ProvisioningService<A, B, C, D>
impl<A, B, C, D> ProvisioningService<A, B, C, D>
pub fn new( do_client: Arc<DigitalOceanClient>, account_repo: Arc<A>, bot_repo: Arc<B>, config_repo: Arc<C>, droplet_repo: Arc<D>, encryption: Arc<SecretsEncryption>, openclaw_image: String, control_plane_url: String, customizer_repo_url: String, customizer_ref: String, customizer_workspace_dir: String, customizer_agent_name: String, customizer_owner_name: String, customizer_skip_qmd: bool, customizer_skip_cron: bool, customizer_skip_git: bool, customizer_skip_heartbeat: bool, ) -> Self
pub async fn create_bot( &self, account_id: Uuid, name: String, persona: Persona, config: BotConfig, ) -> Result<Bot, ProvisioningError>
pub async fn destroy_bot(&self, bot_id: Uuid) -> Result<(), ProvisioningError>
pub async fn pause_bot(&self, bot_id: Uuid) -> Result<(), ProvisioningError>
pub async fn resume_bot(&self, bot_id: Uuid) -> Result<(), ProvisioningError>
pub async fn redeploy_bot(&self, bot_id: Uuid) -> Result<(), ProvisioningError>
pub async fn sync_droplet_status( &self, bot_id: Uuid, ) -> Result<(), ProvisioningError>
Auto Trait Implementations§
impl<A, B, C, D> Freeze for ProvisioningService<A, B, C, D>
impl<A, B, C, D> !RefUnwindSafe for ProvisioningService<A, B, C, D>
impl<A, B, C, D> Send for ProvisioningService<A, B, C, D>
impl<A, B, C, D> Sync for ProvisioningService<A, B, C, D>
impl<A, B, C, D> Unpin for ProvisioningService<A, B, C, D>
impl<A, B, C, D> !UnwindSafe for ProvisioningService<A, B, C, D>
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