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 // A list of identities that have read-only access to the. An element is one |
| 16 // of: |
| 17 // * "group:<group>", where group is defined on auth server. |
| 18 // * "<email>" |
| 19 // * "<identity>" |
| 20 // |
| 21 // If not specified, only admins and trusted services have access. |
| 22 // Talk to admins to determine the group name appropriate for your project. |
| 23 repeated string access = 2; |
15 } | 24 } |
16 | 25 |
17 // Schema of refs.cfg. | 26 // Schema of refs.cfg. |
18 message RefsCfg { | 27 message RefsCfg { |
19 message Ref { | 28 message Ref { |
20 // Name of the ref. Must start with "refs/". | 29 // Name of the ref. Must start with "refs/". |
21 optional string name = 1; | 30 optional string name = 1; |
22 | 31 |
23 // Path to config directory for the ref. Defaults to "infra/config". | 32 // Path to config directory for the ref. Defaults to "infra/config". |
24 optional string config_path = 3; | 33 optional string config_path = 3; |
25 } | 34 } |
26 // List of refs that have configuration files and need to be fetched into | 35 // List of refs that have configuration files and need to be fetched into |
27 // luci-config. Refs are accessible through get_refs() API endpoint. | 36 // luci-config. Refs are accessible through get_refs() API endpoint. |
28 // A CI service can read all refs of all projects and build them. | 37 // A CI service can read all refs of all projects and build them. |
29 repeated Ref refs = 1; | 38 repeated Ref refs = 1; |
30 } | 39 } |
OLD | NEW |