Struct lxd::Info
[−]
[src]
pub struct Info { pub architecture: String, pub config: BTreeMap<String, String>, pub devices: BTreeMap<String, BTreeMap<String, String>>, pub ephemeral: bool, pub profiles: Vec<String>, pub created_at: String, pub expanded_config: BTreeMap<String, String>, pub expanded_devices: BTreeMap<String, BTreeMap<String, String>>, pub name: String, pub stateful: bool, pub status: String, pub status_code: usize, pub last_used_at: String, pub state: Option<State>, pub snapshots: Option<Vec<Snapshot>>, }
LXD container information
Fields
architecture: String
config: BTreeMap<String, String>
devices: BTreeMap<String, BTreeMap<String, String>>
ephemeral: bool
profiles: Vec<String>
created_at: String
expanded_config: BTreeMap<String, String>
expanded_devices: BTreeMap<String, BTreeMap<String, String>>
name: String
stateful: bool
status: String
status_code: usize
last_used_at: String
state: Option<State>
snapshots: Option<Vec<Snapshot>>
Methods
impl Info
[src]
fn all(location: Location) -> Result<Vec<Self>>
Retrieve LXD container information from all containers
Arguments
location
- The location of the host
Return
The LXD container information
Errors
Errors that are encountered while retrieving info will be returned
Example
use lxd::{Info, Location}; let info = Info::all(Location::Local).unwrap();
fn new(location: Location, name: &str) -> Result<Self>
Retrieve LXD container information from one container
Arguments
location
- The location of the hostname
- The name of the container
Return
The LXD container information
Errors
Errors that are encountered while retrieving info will be returned
Example
use lxd::{Container, Info, Location}; let mut container = Container::new(Location::Local, "test-info", "ubuntu:16.04").unwrap(); let info = Info::new(Location::Local, "test-info").unwrap();
Trait Implementations
impl Clone for Info
[src]
fn clone(&self) -> Info
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more