OLD | NEW |
1 // Copyright 2014 The Swarming Authors. All rights reserved. | 1 // Copyright 2014 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 some of config files in projects/<project_id> config sets. | 5 // Schemas for some of config files in projects/<project_id> config sets. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 package config_service; | 9 package config_service; |
10 | 10 |
11 // Schema for project.cfg | 11 // Schema for project.cfg |
12 message ProjectCfg { | 12 message ProjectCfg { |
13 // Full name of the project. | 13 // Full name of the project. |
14 optional string name = 1; | 14 optional string name = 1; |
| 15 // Name of a group defined at auth service that has read-only access to the |
| 16 // project. If not specified, only admins and trusted services have access. |
| 17 // Talk to admins to determine the group name appropriate for your project. |
| 18 optional string access = 2; |
15 } | 19 } |
16 | 20 |
17 // Schema of refs.cfg. | 21 // Schema of refs.cfg. |
18 message RefsCfg { | 22 message RefsCfg { |
19 message Ref { | 23 message Ref { |
20 // Name of the ref. Must start with "refs/". | 24 // Name of the ref. Must start with "refs/". |
21 optional string name = 1; | 25 optional string name = 1; |
22 | 26 |
23 // Path to config directory for the ref. Defaults to "infra/config". | 27 // Path to config directory for the ref. Defaults to "infra/config". |
24 optional string config_path = 3; | 28 optional string config_path = 3; |
25 } | 29 } |
26 // List of refs that have configuration files and need to be fetched into | 30 // List of refs that have configuration files and need to be fetched into |
27 // luci-config. Refs are accessible through get_refs() API endpoint. | 31 // luci-config. Refs are accessible through get_refs() API endpoint. |
28 // A CI service can read all refs of all projects and build them. | 32 // A CI service can read all refs of all projects and build them. |
29 repeated Ref refs = 1; | 33 repeated Ref refs = 1; |
30 } | 34 } |
OLD | NEW |