You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2014/08/13 07:20:01 UTC

git commit: Add ContainerInfo and Volumes protobufs.

Repository: mesos
Updated Branches:
  refs/heads/master abda779d3 -> 13d846034


Add ContainerInfo and Volumes protobufs.

Review: https://reviews.apache.org/r/24349


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/13d84603
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/13d84603
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/13d84603

Branch: refs/heads/master
Commit: 13d8460347074dfd61f53d2c9c29a70294440d35
Parents: abda779
Author: Timothy Chen <tn...@apache.org>
Authored: Tue Aug 12 22:19:27 2014 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Tue Aug 12 22:19:27 2014 -0700

----------------------------------------------------------------------
 include/mesos/mesos.proto | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/13d84603/include/mesos/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index cc9f20e..226ddb4 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -799,3 +799,38 @@ message RateLimits {
   // This is an aggregate value similar to 'aggregate_default_qps'.
   optional uint64 aggregate_default_capacity = 3;
 }
+
+
+/**
+ * Describes a volume mapping either from host to container or vice
+ * versa. Both paths can either refer to a directory or a file.
+ */
+message Volume {
+  // Absolute path pointing to a directory or file in the container.
+  required string container_path = 1;
+
+  // Absolute path pointing to a directory or file on the host.
+  optional string host_path = 2;
+
+  enum Mode {
+    RW = 1; // read-write.
+    RO = 2; // read-only.
+  }
+
+  required Mode mode = 3;
+}
+
+
+/**
+ * Describes a container configuration and allows extensible
+ * configurations for different container implementation.
+ */
+message ContainerInfo {
+  // All container implementation types.
+  enum Type {
+    DOCKER = 1;
+  }
+
+  required Type type = 1;
+  repeated Volume volumes = 2;
+}