pub struct DeploymentService;Implementations§
Source§impl DeploymentService
impl DeploymentService
Sourcepub fn new() -> DeploymentService
pub fn new() -> DeploymentService
Create a new deployment service
Sourcepub fn test_connection(&self, config: &DeployConfig) -> Result<(), Error>
pub fn test_connection(&self, config: &DeployConfig) -> Result<(), Error>
Sourcepub fn create_backup(&self, config: &DeployConfig) -> Result<(), Error>
pub fn create_backup(&self, config: &DeployConfig) -> Result<(), Error>
Sourcepub fn upload_package(
&self,
config: &DeployConfig,
package_path: &Path,
) -> Result<(), Error>
pub fn upload_package( &self, config: &DeployConfig, package_path: &Path, ) -> Result<(), Error>
Upload package to remote system
§Arguments
config- Deployment configurationpackage_path- Local path to package file
Sourcepub async fn deploy(
&self,
config: &DeployConfig,
package_path: &Path,
strategy: DeployStrategy,
) -> Result<DeployResult, Error>
pub async fn deploy( &self, config: &DeployConfig, package_path: &Path, strategy: DeployStrategy, ) -> Result<DeployResult, Error>
Deploy package using specified strategy
§Arguments
config- Deployment configurationpackage_path- Local path to package filestrategy- Deployment strategy to use
Sourcepub async fn health_check(&self, config: &DeployConfig) -> Result<bool, Error>
pub async fn health_check(&self, config: &DeployConfig) -> Result<bool, Error>
Sourcepub fn run_remote_command(
&self,
config: &DeployConfig,
command: &str,
) -> Result<String, Error>
pub fn run_remote_command( &self, config: &DeployConfig, command: &str, ) -> Result<String, Error>
Run command on remote system via SSH
§Arguments
config- Deployment configurationcommand- Command to execute
Sourcepub fn get_service_status(&self, config: &DeployConfig) -> Result<String, Error>
pub fn get_service_status(&self, config: &DeployConfig) -> Result<String, Error>
Sourcepub fn list_backups(&self, config: &DeployConfig) -> Result<Vec<String>, Error>
pub fn list_backups(&self, config: &DeployConfig) -> Result<Vec<String>, Error>
Trait Implementations§
Source§impl Default for DeploymentService
impl Default for DeploymentService
Source§fn default() -> DeploymentService
fn default() -> DeploymentService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeploymentService
impl RefUnwindSafe for DeploymentService
impl Send for DeploymentService
impl Sync for DeploymentService
impl Unpin for DeploymentService
impl UnsafeUnpin for DeploymentService
impl UnwindSafe for DeploymentService
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