Struct PodsApiClient

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

Implementations§

Source§

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

Source

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

Trait Implementations§

Source§

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

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>>

Auto Trait Implementations§

§

impl<C> Freeze for PodsApiClient<C>

§

impl<C> !RefUnwindSafe for PodsApiClient<C>

§

impl<C> Send for PodsApiClient<C>

§

impl<C> Sync for PodsApiClient<C>

§

impl<C> Unpin for PodsApiClient<C>

§

impl<C> !UnwindSafe for PodsApiClient<C>

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,