Skip to content

Instantly share code, notes, and snippets.

@stack72
Created August 21, 2023 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stack72/5b0b09bb8fff24c0bfe73feadd33efe2 to your computer and use it in GitHub Desktop.
Save stack72/5b0b09bb8fff24c0bfe73feadd33efe2 to your computer and use it in GitHub Desktop.
#[async_trait]
impl ContainerEngine for PodmanEngine {
async fn ping(&self) -> CliResult<()> {
let ping_info = self.podman.ping().await?;
dbg!(&ping_info);
Ok(())
}
async fn missing_containers(&self) -> Result<Vec<String>, SiCliError> {
todo!()
}
async fn download_missing_containers(&self, _missing_containers: Vec<String>) -> CliResult<()> {
todo!()
}
async fn get_container_details(&self) -> CliResult<Vec<ContainerReleaseInfo>> {
todo!()
}
async fn cleanup_image(&self, _name: String) -> CliResult<()> {
todo!()
}
async fn get_container_logs(&self, _name: String, _log_lines: usize) -> CliResult<bool> {
todo!()
}
async fn get_existing_container(&self, _name: String) -> CliResult<Option<SiContainerSummary>> {
todo!()
}
async fn delete_container(&self, _id: String, _name: String) -> CliResult<()> {
todo!()
}
async fn downloaded_systeminit_containers_list(
&self,
) -> Result<Vec<SiImageSummary>, SiCliError> {
todo!()
}
async fn start_container(&self, _id: String) -> CliResult<()> {
todo!()
}
async fn stop_container(&self, _id: String) -> CliResult<()> {
todo!()
}
async fn create_otelcol(&self, _name: String, _image: String) -> CliResult<()> {
todo!()
}
async fn create_jaeger(&self, _name: String, _image: String) -> CliResult<()> {
todo!()
}
async fn create_nats(&self, _name: String, _image: String) -> CliResult<()> {
todo!()
}
async fn create_postgres(&self, _name: String, _image: String) -> CliResult<()> {
todo!()
}
async fn create_council(&self, _name: String, _image: String) -> CliResult<()> {
todo!()
}
async fn create_veritech(
&self,
_name: String,
_image: String,
_credentials: &mut Vec<String>,
_data_dir: PathBuf,
_with_debug_logs: bool,
) -> CliResult<()> {
todo!()
}
async fn create_pinga(
&self,
_name: String,
_image: String,
_data_dir: PathBuf,
) -> CliResult<()> {
todo!()
}
async fn create_sdf(&self, _name: String, _image: String, _data_dir: PathBuf) -> CliResult<()> {
todo!()
}
async fn create_web(
&self,
_name: String,
_image: String,
_host_port: u32,
_host_ip: String,
) -> CliResult<()> {
todo!()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment