OLD | NEW |
1 // Copyright 2015 The Swarming Authors. All rights reserved. | 1 // Copyright 2015 The Swarming Authors. All rights reserved. |
2 // Use of this source code is governed by the Apache v2.0 license that can be | 2 // Use of this source code is governed by the Apache v2.0 license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Schemas for config files in services/luci-config config set. | 5 // Schemas for config files in services/luci-config config set. |
6 // | 6 // |
7 // In this file, "string pattern" is an exact string (can't have a colon) or a | 7 // In this file, "string pattern" is an exact string (can't have a colon) or a |
8 // string that starts with "regex:", followed by a regular expression. In case | 8 // string that starts with "regex:", followed by a regular expression. In case |
9 // of regex, the pattern must match an entire string, as if it was sorrounded by | 9 // of regex, the pattern must match an entire string, as if it was sorrounded by |
10 // ^ and $. | 10 // ^ and $. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 message ProjectsCfg { | 45 message ProjectsCfg { |
46 // All projects served by this instance of Luci. | 46 // All projects served by this instance of Luci. |
47 repeated Project projects = 1; | 47 repeated Project projects = 1; |
48 } | 48 } |
49 | 49 |
50 // Schema of acl.cfg file. | 50 // Schema of acl.cfg file. |
51 message AclCfg { | 51 message AclCfg { |
52 // Name of the group that has access to all services/* config sets. | 52 // Name of the group that has access to all services/* config sets. |
53 optional string service_access_group = 1; | 53 optional string service_access_group = 1; |
54 // Name of the group that has access to all projects/* config sets. | 54 // Name of the group that has access to all projects/* config sets. |
| 55 // Only trusted services should be in this group. |
55 optional string project_access_group = 2; | 56 optional string project_access_group = 2; |
56 } | 57 } |
57 | 58 |
58 // Schema for import.cfg. It specified how to import configuration files from | 59 // Schema for import.cfg. It specified how to import configuration files from |
59 // external sources. | 60 // external sources. |
60 message ImportCfg { | 61 message ImportCfg { |
61 | 62 |
62 message Gitiles { | 63 message Gitiles { |
63 // Request timeout in seconds when requesting commit log. | 64 // Request timeout in seconds when requesting commit log. |
64 optional int32 fetch_log_deadline = 1; | 65 optional int32 fetch_log_deadline = 1; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 message Message { | 146 message Message { |
146 // Textual representation of the message. | 147 // Textual representation of the message. |
147 optional string text = 1; | 148 optional string text = 1; |
148 // If an error, a config is considered invalid. Defaults to INFO. | 149 // If an error, a config is considered invalid. Defaults to INFO. |
149 optional Severity severity = 2; | 150 optional Severity severity = 2; |
150 } | 151 } |
151 // Errors, warnings and other information found during validation. | 152 // Errors, warnings and other information found during validation. |
152 // If at least one error is found, the config is considered invalid. | 153 // If at least one error is found, the config is considered invalid. |
153 repeated Message messages = 1; | 154 repeated Message messages = 1; |
154 } | 155 } |
OLD | NEW |