summaryrefslogtreecommitdiffstats
path: root/src/transport.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport.rs')
-rw-r--r--src/transport.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport.rs b/src/transport.rs
index 728215e..4ea78c9 100644
--- a/src/transport.rs
+++ b/src/transport.rs
@@ -1,3 +1,5 @@
+//! Transports for communicating with the docker daemon
+
extern crate hyper;
extern crate mime;
extern crate unix_socket;
@@ -29,6 +31,7 @@ impl<'a> Body<'a> {
}
}
+/// Primary interface for communicating with docker daemon
pub trait Transport {
fn request(&mut self, method: Method, endpoint: &str, body: Option<Body>) -> Result<String>;
fn stream(&mut self, method: Method, endpoint: &str, body: Option<Body>) -> Result<Box<Read>>;