Trait PodsApi

Source
pub trait PodsApi: Send + Sync {
Show 19 methods // Required methods fn generate_kube_libpod( &self, names: Vec<String>, service: Option<bool>, type: Option<&str>, replicas: Option<i32>, no_trunc: Option<bool>, podman_only: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<PathBuf, Error>> + Send>>; fn generate_systemd_libpod( &self, name: &str, use_name: Option<bool>, new: Option<bool>, no_header: Option<bool>, start_timeout: Option<i32>, stop_timeout: Option<i32>, restart_policy: Option<&str>, container_prefix: Option<&str>, pod_prefix: Option<&str>, separator: Option<&str>, restart_sec: Option<i32>, wants: Option<Vec<String>>, after: Option<Vec<String>>, requires: Option<Vec<String>>, additional_env_variables: Option<Vec<String>>, ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>, Error>> + Send>>; fn kube_apply_libpod( &self, ca_cert_file: Option<&str>, kube_config: Option<&str>, namespace: Option<&str>, service: Option<bool>, file: Option<&str>, request: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<PathBuf, Error>> + Send>>; fn play_kube_down_libpod( &self, force: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<PlayKubeReport, Error>> + Send>>; fn play_kube_libpod( &self, annotations: Option<&str>, log_driver: Option<&str>, log_options: Option<Vec<String>>, network: Option<Vec<String>>, no_hosts: Option<bool>, no_trunc: Option<bool>, publish_ports: Option<Vec<String>>, publish_all_ports: Option<bool>, replace: Option<bool>, service_container: Option<bool>, start: Option<bool>, static_ips: Option<Vec<String>>, static_macs: Option<Vec<String>>, tls_verify: Option<bool>, userns: Option<&str>, wait: Option<bool>, request: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<PlayKubeReport, Error>> + Send>>; fn pod_create_libpod( &self, create: Option<PodSpecGenerator>, ) -> Pin<Box<dyn Future<Output = Result<IdResponse, Error>> + Send>>; fn pod_delete_libpod( &self, name: &str, force: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<PodRmReport, Error>> + Send>>; fn pod_exists_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>; fn pod_inspect_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<InspectPodData, Error>> + Send>>; fn pod_kill_libpod( &self, name: &str, signal: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<PodKillReport, Error>> + Send>>; fn pod_list_libpod( &self, filters: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<ListPodsReport>, Error>> + Send>>; fn pod_pause_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<PodPauseReport, Error>> + Send>>; fn pod_prune_libpod( &self, ) -> Pin<Box<dyn Future<Output = Result<PodPruneReport, Error>> + Send>>; fn pod_restart_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<PodRestartReport, Error>> + Send>>; fn pod_start_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<PodStartReport, Error>> + Send>>; fn pod_stats_all_libpod( &self, all: Option<bool>, names_or_ids: Option<Vec<String>>, ) -> Pin<Box<dyn Future<Output = Result<Vec<PodStatsReport>, Error>> + Send>>; fn pod_stop_libpod( &self, name: &str, t: Option<i32>, ) -> Pin<Box<dyn Future<Output = Result<PodStopReport, Error>> + Send>>; fn pod_top_libpod( &self, name: &str, stream: Option<bool>, delay: Option<i32>, ps_args: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<PodTopOkBody, Error>> + Send>>; fn pod_unpause_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<PodUnpauseReport, Error>> + Send>>;
}

Required Methods§

Source

fn generate_kube_libpod( &self, names: Vec<String>, service: Option<bool>, type: Option<&str>, replicas: Option<i32>, no_trunc: Option<bool>, podman_only: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<PathBuf, Error>> + Send>>

Source

fn generate_systemd_libpod( &self, name: &str, use_name: Option<bool>, new: Option<bool>, no_header: Option<bool>, start_timeout: Option<i32>, stop_timeout: Option<i32>, restart_policy: Option<&str>, container_prefix: Option<&str>, pod_prefix: Option<&str>, separator: Option<&str>, restart_sec: Option<i32>, wants: Option<Vec<String>>, after: Option<Vec<String>>, requires: Option<Vec<String>>, additional_env_variables: Option<Vec<String>>, ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>, Error>> + Send>>

Source

fn kube_apply_libpod( &self, ca_cert_file: Option<&str>, kube_config: Option<&str>, namespace: Option<&str>, service: Option<bool>, file: Option<&str>, request: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<PathBuf, Error>> + Send>>

Source

fn play_kube_down_libpod( &self, force: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<PlayKubeReport, Error>> + Send>>

Source

fn play_kube_libpod( &self, annotations: Option<&str>, log_driver: Option<&str>, log_options: Option<Vec<String>>, network: Option<Vec<String>>, no_hosts: Option<bool>, no_trunc: Option<bool>, publish_ports: Option<Vec<String>>, publish_all_ports: Option<bool>, replace: Option<bool>, service_container: Option<bool>, start: Option<bool>, static_ips: Option<Vec<String>>, static_macs: Option<Vec<String>>, tls_verify: Option<bool>, userns: Option<&str>, wait: Option<bool>, request: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<PlayKubeReport, Error>> + Send>>

Source

fn pod_create_libpod( &self, create: Option<PodSpecGenerator>, ) -> Pin<Box<dyn Future<Output = Result<IdResponse, Error>> + Send>>

Source

fn pod_delete_libpod( &self, name: &str, force: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<PodRmReport, Error>> + Send>>

Source

fn pod_exists_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Source

fn pod_inspect_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<InspectPodData, Error>> + Send>>

Source

fn pod_kill_libpod( &self, name: &str, signal: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<PodKillReport, Error>> + Send>>

Source

fn pod_list_libpod( &self, filters: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<ListPodsReport>, Error>> + Send>>

Source

fn pod_pause_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<PodPauseReport, Error>> + Send>>

Source

fn pod_prune_libpod( &self, ) -> Pin<Box<dyn Future<Output = Result<PodPruneReport, Error>> + Send>>

Source

fn pod_restart_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<PodRestartReport, Error>> + Send>>

Source

fn pod_start_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<PodStartReport, Error>> + Send>>

Source

fn pod_stats_all_libpod( &self, all: Option<bool>, names_or_ids: Option<Vec<String>>, ) -> Pin<Box<dyn Future<Output = Result<Vec<PodStatsReport>, Error>> + Send>>

Source

fn pod_stop_libpod( &self, name: &str, t: Option<i32>, ) -> Pin<Box<dyn Future<Output = Result<PodStopReport, Error>> + Send>>

Source

fn pod_top_libpod( &self, name: &str, stream: Option<bool>, delay: Option<i32>, ps_args: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<PodTopOkBody, Error>> + Send>>

Source

fn pod_unpause_libpod( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Result<PodUnpauseReport, Error>> + Send>>

Implementors§

Source§

impl<C> PodsApi for PodsApiClient<C>
where C: Clone + Send + Sync + Connect,