Added Image to Volume as one of the sources. Review: https://reviews.apache.org/r/37055
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d9443935 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d9443935 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d9443935 Branch: refs/heads/master Commit: d9443935557a9254d68625fadd1c6e5d0f268a3f Parents: ddfab61 Author: Jie Yu <[email protected]> Authored: Mon Aug 3 16:07:33 2015 -0700 Committer: Jie Yu <[email protected]> Committed: Fri Aug 7 16:54:10 2015 -0700 ---------------------------------------------------------------------- include/mesos/mesos.proto | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/d9443935/include/mesos/mesos.proto ---------------------------------------------------------------------- diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto index 3e55089..80f56ac 100644 --- a/include/mesos/mesos.proto +++ b/include/mesos/mesos.proto @@ -1228,19 +1228,26 @@ message Image { * 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 or a path - // relative to the container work directory. - optional string host_path = 2; - enum Mode { RW = 1; // read-write. RO = 2; // read-only. } required Mode mode = 3; + + // Absolute path pointing to a directory or file in the container. + required string container_path = 1; + + // The following specifies the source of this volume. At most one of + // the following should be set. + + // Absolute path pointing to a directory or file on the host or a + // path relative to the container work directory. + optional string host_path = 2; + + // The source of the volume is an Image which describes a root + // filesystem which will be provisioned by Mesos. + optional Image image = 4; }
