Repository: mesos Updated Branches: refs/heads/master b62c6e6be -> dedd1ed69
Added AppcImageManifest protobuf. Review: https://reviews.apache.org/r/37308 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/28d3041e Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/28d3041e Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/28d3041e Branch: refs/heads/master Commit: 28d3041e6f31d55c321917a44d7f500469513282 Parents: e90c448 Author: Jiang Yan Xu <[email protected]> Authored: Mon Aug 10 10:51:44 2015 -0700 Committer: Jiang Yan Xu <[email protected]> Committed: Thu Aug 13 15:15:19 2015 -0700 ---------------------------------------------------------------------- include/mesos/mesos.proto | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/28d3041e/include/mesos/mesos.proto ---------------------------------------------------------------------- diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto index 7e2d66c..62bb3e7 100644 --- a/include/mesos/mesos.proto +++ b/include/mesos/mesos.proto @@ -1387,3 +1387,36 @@ message DiscoveryInfo { optional Ports ports = 6; optional Labels labels = 7; } + + +/** +* Protobuf for the Appc image manifest JSON schema: +* https://github.com/appc/spec/blob/master/spec/aci.md#image-manifest-schema +* Where possible, any field required in the schema is required in the protobuf +* but some cannot be expressed, e.g., a repeated string that has at least one +* element. Further validation should be performed after parsing the JSON into +* the protobuf. +* This version of Appc protobuf is based on Appc spec version 0.6.1. +* TODO(xujyan): This protobuf currently defines a subset of fields in the spec +* that Mesos makes use of to avoid confusion. New fields are going to be added +* when Mesos starts to support them. +*/ +message AppcImageManifest { + required string acKind = 1; + required string acVersion = 2; + required string name = 3; + + message Label { + required string name = 1; + required string value = 2; + } + + repeated Label labels = 4; + + message Annotation { + required string name = 1; + required string value = 2; + } + + repeated Annotation annotations = 5; +}
