Struct ContainersApiClient

Source
pub struct ContainersApiClient<C>
where C: Clone + Send + Sync + 'static + Connect,
{ /* private fields */ }

Implementations§

Source§

impl<C> ContainersApiClient<C>
where C: Clone + Send + Sync + Connect,

Source

pub fn new(configuration: Arc<Configuration<C>>) -> ContainersApiClient<C>

Trait Implementations§

Source§

impl<C> ContainersApi for ContainersApiClient<C>
where C: Clone + Send + Sync + Connect,

Source§

fn container_attach_libpod( &self, name: &str, detach_keys: Option<&str>, logs: Option<bool>, stream: Option<bool>, stdout: Option<bool>, stderr: Option<bool>, stdin: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Source§

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

Source§

fn container_checkpoint_libpod( &self, name: &str, keep: Option<bool>, leave_running: Option<bool>, tcp_established: Option<bool>, export: Option<bool>, ignore_root_fs: Option<bool>, ignore_volumes: Option<bool>, pre_checkpoint: Option<bool>, with_previous: Option<bool>, file_locks: Option<bool>, print_stats: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Source§

fn container_create_libpod( &self, create: SpecGenerator, ) -> Pin<Box<dyn Future<Output = Result<ContainerCreateResponse, Error>> + Send>>

Source§

fn container_delete_libpod( &self, name: &str, depend: Option<bool>, force: Option<bool>, ignore: Option<bool>, timeout: Option<i32>, v: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<Vec<LibpodContainersRmReport>, Error>> + Send>>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn container_list_libpod( &self, all: Option<bool>, limit: Option<i32>, namespace: Option<bool>, pod: Option<bool>, size: Option<bool>, sync: Option<bool>, filters: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<ListContainer>, Error>> + Send>>

Source§

fn container_logs_libpod( &self, name: &str, follow: Option<bool>, stdout: Option<bool>, stderr: Option<bool>, since: Option<&str>, until: Option<&str>, timestamps: Option<bool>, tail: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn container_resize_libpod( &self, name: &str, h: Option<i32>, w: Option<i32>, ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send>>

Source§

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

Source§

fn container_restore_libpod( &self, name: &str, name2: Option<&str>, keep: Option<bool>, tcp_established: Option<bool>, import: Option<bool>, ignore_root_fs: Option<bool>, ignore_volumes: Option<bool>, ignore_static_ip: Option<bool>, ignore_static_mac: Option<bool>, file_locks: Option<bool>, print_stats: Option<bool>, pod: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Source§

fn container_show_mounted_libpod( &self, ) -> Pin<Box<dyn Future<Output = Result<HashMap<String, String>, Error>> + Send>>

Source§

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

Source§

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

Source§

fn container_stop_libpod( &self, name: &str, timeout: Option<i32>, ignore: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Source§

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

Source§

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

Source§

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

Source§

fn container_update_libpod( &self, name: &str, restart_policy: Option<&str>, restart_retries: Option<i32>, config: Option<UpdateEntities>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Source§

fn container_wait_libpod( &self, name: &str, condition: Option<Vec<String>>, interval: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<i32, Error>> + Send>>

Source§

fn containers_stats_all_libpod( &self, containers: Option<Vec<String>>, stream: Option<bool>, interval: Option<i32>, ) -> Pin<Box<dyn Future<Output = Result<ContainerStats, Error>> + Send>>

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 image_commit_libpod( &self, container: &str, author: Option<&str>, changes: Option<Vec<String>>, comment: Option<&str>, format: Option<&str>, pause: Option<bool>, squash: Option<bool>, repo: Option<&str>, stream: Option<bool>, tag: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<(), 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 put_container_archive_libpod( &self, name: &str, path: &str, pause: Option<bool>, request: Option<&str>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,