(
&self,
environment: &EnvironmentRequest,
infra_ctx: &InfrastructureContext,
)
| 116 | } |
| 117 | |
| 118 | fn pause_environment( |
| 119 | &self, |
| 120 | environment: &EnvironmentRequest, |
| 121 | infra_ctx: &InfrastructureContext, |
| 122 | ) -> Result<(), Box<EngineError>> { |
| 123 | let mut env = environment |
| 124 | .to_environment_domain( |
| 125 | infra_ctx.context(), |
| 126 | infra_ctx.cloud_provider(), |
| 127 | infra_ctx.container_registry(), |
| 128 | infra_ctx.kubernetes(), |
| 129 | ) |
| 130 | .unwrap(); |
| 131 | |
| 132 | env.action = qovery_engine::infrastructure::models::cloud_provider::service::Action::Pause; |
| 133 | EnvironmentTask::deploy_environment(env, infra_ctx, &|| AbortStatus::None) |
| 134 | } |
| 135 | |
| 136 | fn delete_environment( |
| 137 | &self, |
no test coverage detected