Skip to main content

Inspector

Struct Inspector 

Source
pub struct Inspector {
    pub no_name: bool,
    pub use_volume_id: bool,
    pub pretty: bool,
    pub no_labels: bool,
    pub use_mount_flag: bool,
    pub tidy: bool,
    pub docker_host: Option<String>,
    pub indent: String,
    pub container_facts: Option<Value>,
    pub image_facts: Option<Value>,
}

Fields§

§no_name: bool§use_volume_id: bool§pretty: bool§no_labels: bool§use_mount_flag: bool§tidy: bool§docker_host: Option<String>§indent: String§container_facts: Option<Value>§image_facts: Option<Value>

Implementations§

Source§

impl Inspector

Source

pub fn parse_hostname(&self, options: &mut Vec<String>)

Source

pub fn parse_user(&self, options: &mut Vec<String>)

Source

pub fn parse_macaddress(&self, options: &mut Vec<String>)

Source

pub fn parse_ipv6(&self, options: &mut Vec<String>)

Source

pub fn parse_ipv4(&self, options: &mut Vec<String>)

Source

pub fn parse_ports(&self, options: &mut Vec<String>)

Source

pub fn parse_volumes(&self, options: &mut Vec<String>)

Source

pub fn parse_entrypoint(&self, options: &mut Vec<String>)

Source

pub fn parse_workdir(&self, options: &mut Vec<String>)

Source

pub fn parse_env(&mut self, options: &mut Vec<String>)

Source§

impl Inspector

Source

pub fn parse_restart(&self, options: &mut Vec<String>)

Source

pub fn parse_labels(&self, options: &mut Vec<String>)

Source

pub fn parse_log(&self, options: &mut Vec<String>)

Source

pub fn parse_devices(&self, options: &mut Vec<String>)

Source

pub fn parse_cap_add(&mut self, options: &mut Vec<String>)

Source

pub fn parse_cap_drop(&mut self, options: &mut Vec<String>)

Source

pub fn parse_volumes_from(&mut self, options: &mut Vec<String>)

Source

pub fn parse_security_opt(&self, options: &mut Vec<String>)

Source

pub fn parse_sysctl(&self, options: &mut Vec<String>)

Source

pub fn parse_group_add(&self, options: &mut Vec<String>)

Source

pub fn parse_runtime(&self, options: &mut Vec<String>)

Source

pub fn parse_init(&self, options: &mut Vec<String>)

Source

pub fn parse_readonly(&self, options: &mut Vec<String>)

Source

pub fn parse_publish_all(&self, options: &mut Vec<String>)

Source

pub fn parse_healthcheck(&self, options: &mut Vec<String>)

Source

pub fn parse_stop_signal(&self, options: &mut Vec<String>)

Source

pub fn parse_stop_timeout(&self, options: &mut Vec<String>)

Source

pub fn parse_storage_opt(&self, options: &mut Vec<String>)

Source

pub fn parse_detach(&self, options: &mut Vec<String>)

Source

pub fn parse_tty(&self, options: &mut Vec<String>)

Source

pub fn parse_autoremove(&self, options: &mut Vec<String>)

Source§

impl Inspector

Source

pub fn parse_network(&self, options: &mut Vec<String>)

Source

pub fn parse_privileged(&self, options: &mut Vec<String>)

Source

pub fn parse_pid(&self, options: &mut Vec<String>)

Source

pub fn parse_ipc(&self, options: &mut Vec<String>)

Source

pub fn parse_uts(&self, options: &mut Vec<String>)

Source

pub fn parse_userns(&self, options: &mut Vec<String>)

Source

pub fn parse_dns(&mut self, options: &mut Vec<String>)

Source

pub fn parse_dns_option(&mut self, options: &mut Vec<String>)

Source

pub fn parse_extra_hosts(&self, options: &mut Vec<String>)

Source

pub fn parse_network_alias(&self, options: &mut Vec<String>)

Source§

impl Inspector

Source

pub fn parse_memory(&self, options: &mut Vec<String>)

Source

pub fn parse_memory_reservation(&self, options: &mut Vec<String>)

Source

pub fn parse_memory_swap(&self, options: &mut Vec<String>)

Source

pub fn parse_memory_swappiness(&self, options: &mut Vec<String>)

Source

pub fn parse_kernel_memory(&self, options: &mut Vec<String>)

Source

pub fn parse_shm_size(&self, options: &mut Vec<String>)

Source

pub fn parse_cpuset(&self, options: &mut Vec<String>)

Source

pub fn parse_ulimit(&self, options: &mut Vec<String>)

Source

pub fn parse_pids_limit(&self, options: &mut Vec<String>)

Source

pub fn parse_oom_kill_disable(&self, options: &mut Vec<String>)

Source

pub fn parse_oom_score_adj(&self, options: &mut Vec<String>)

Source

pub fn parse_blkio_device_read_bps(&self, options: &mut Vec<String>)

Source

pub fn parse_blkio_device_read_iops(&self, options: &mut Vec<String>)

Source

pub fn parse_blkio_device_write_bps(&self, options: &mut Vec<String>)

Source

pub fn parse_blkio_device_write_iops(&self, options: &mut Vec<String>)

Source§

impl Inspector

Source

pub fn quote(&self, s: &str) -> String

Source

pub fn multi_option( &mut self, options: &mut Vec<String>, path: &str, option: &str, )

Source

pub fn is_docker_default(&self, option: &str, value: &str) -> bool

Source§

impl Inspector

Source

pub fn format_cli(&mut self) -> String

Source§

impl Inspector

Source

pub fn new( no_name: bool, use_volume_id: bool, pretty: bool, no_labels: bool, ) -> Self

Source

pub fn set_container_facts(&mut self, raw_json: &str) -> Result<(), Error>

Source

pub async fn inspect(&mut self, container: &str) -> Result<(), Box<dyn Error>>

Source

pub fn get_container_fact(&self, path: &str) -> Option<String>

Source

pub fn get_image_fact(&self, path: &str) -> Option<String>

Source

pub fn get_fact(&self, path: &str, value: Option<&Value>) -> Option<String>

Source

pub fn get_container_fact_list(&self, path: &str) -> Vec<Value>

Source

pub fn get_image_fact_list(&self, path: &str) -> Vec<Value>

Source

pub fn get_fact_list(&self, path: &str, value: Option<&Value>) -> Vec<Value>

Source

pub fn get_container_fact_map(&self, path: &str) -> BTreeMap<String, Value>

Source

pub fn get_image_fact_map(&self, path: &str) -> BTreeMap<String, Value>

Source

pub fn get_fact_map( &self, path: &str, value: Option<&Value>, ) -> BTreeMap<String, Value>

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