dockers 0.1.6

A rust docker library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use docker::{Client, Method};

pub trait Info: Client {
    fn get_info(&self) -> Result<String, String> {
        let api_endpoint = "/info";
        let method = Method::GET;

        Ok(self
            .get_response_from_api(api_endpoint, method, None, None)
            .unwrap()
            .body)
    }
}