/
settings.pb.go
381 lines (339 loc) · 14.5 KB
/
settings.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/milo/api/config/settings.proto
package config
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Settings represents the format for the global (service) config for Milo.
type Settings struct {
Buildbot *Settings_Buildbot `protobuf:"bytes,1,opt,name=buildbot,proto3" json:"buildbot,omitempty"`
Buildbucket *Settings_Buildbucket `protobuf:"bytes,2,opt,name=buildbucket,proto3" json:"buildbucket,omitempty"`
Swarming *Settings_Swarming `protobuf:"bytes,3,opt,name=swarming,proto3" json:"swarming,omitempty"`
// source_acls instructs Milo to provide Git/Gerrit data
// (e.g., blamelist) to some of its users on entire subdomains or individual
// repositories (Gerrit "projects").
//
// Multiple records are allowed, but each host and project must appear only in
// one record.
SourceAcls []*Settings_SourceAcls `protobuf:"bytes,4,rep,name=source_acls,json=sourceAcls,proto3" json:"source_acls,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Settings) Reset() { *m = Settings{} }
func (m *Settings) String() string { return proto.CompactTextString(m) }
func (*Settings) ProtoMessage() {}
func (*Settings) Descriptor() ([]byte, []int) {
return fileDescriptor_98dd5cb9562385c0, []int{0}
}
func (m *Settings) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Settings.Unmarshal(m, b)
}
func (m *Settings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Settings.Marshal(b, m, deterministic)
}
func (m *Settings) XXX_Merge(src proto.Message) {
xxx_messageInfo_Settings.Merge(m, src)
}
func (m *Settings) XXX_Size() int {
return xxx_messageInfo_Settings.Size(m)
}
func (m *Settings) XXX_DiscardUnknown() {
xxx_messageInfo_Settings.DiscardUnknown(m)
}
var xxx_messageInfo_Settings proto.InternalMessageInfo
func (m *Settings) GetBuildbot() *Settings_Buildbot {
if m != nil {
return m.Buildbot
}
return nil
}
func (m *Settings) GetBuildbucket() *Settings_Buildbucket {
if m != nil {
return m.Buildbucket
}
return nil
}
func (m *Settings) GetSwarming() *Settings_Swarming {
if m != nil {
return m.Swarming
}
return nil
}
func (m *Settings) GetSourceAcls() []*Settings_SourceAcls {
if m != nil {
return m.SourceAcls
}
return nil
}
type Settings_Buildbot struct {
// internal_reader is the infra-auth group that is allowed to read internal
// buildbot data.
InternalReader string `protobuf:"bytes,1,opt,name=internal_reader,json=internalReader,proto3" json:"internal_reader,omitempty"`
// public_subscription is the name of the pubsub topic where public builds come in
// from
PublicSubscription string `protobuf:"bytes,2,opt,name=public_subscription,json=publicSubscription,proto3" json:"public_subscription,omitempty"`
// internal_subscription is the name of the pubsub topic where internal builds
// come in from
InternalSubscription string `protobuf:"bytes,3,opt,name=internal_subscription,json=internalSubscription,proto3" json:"internal_subscription,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Settings_Buildbot) Reset() { *m = Settings_Buildbot{} }
func (m *Settings_Buildbot) String() string { return proto.CompactTextString(m) }
func (*Settings_Buildbot) ProtoMessage() {}
func (*Settings_Buildbot) Descriptor() ([]byte, []int) {
return fileDescriptor_98dd5cb9562385c0, []int{0, 0}
}
func (m *Settings_Buildbot) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Settings_Buildbot.Unmarshal(m, b)
}
func (m *Settings_Buildbot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Settings_Buildbot.Marshal(b, m, deterministic)
}
func (m *Settings_Buildbot) XXX_Merge(src proto.Message) {
xxx_messageInfo_Settings_Buildbot.Merge(m, src)
}
func (m *Settings_Buildbot) XXX_Size() int {
return xxx_messageInfo_Settings_Buildbot.Size(m)
}
func (m *Settings_Buildbot) XXX_DiscardUnknown() {
xxx_messageInfo_Settings_Buildbot.DiscardUnknown(m)
}
var xxx_messageInfo_Settings_Buildbot proto.InternalMessageInfo
func (m *Settings_Buildbot) GetInternalReader() string {
if m != nil {
return m.InternalReader
}
return ""
}
func (m *Settings_Buildbot) GetPublicSubscription() string {
if m != nil {
return m.PublicSubscription
}
return ""
}
func (m *Settings_Buildbot) GetInternalSubscription() string {
if m != nil {
return m.InternalSubscription
}
return ""
}
type Settings_Buildbucket struct {
// name is the user friendly name of the Buildbucket instance we're pointing to.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// host is the hostname of the buildbucket instance we're pointing to (sans schema).
Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
// project is the name of the Google Cloud project that the pubsub topic
// belongs to.
Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Settings_Buildbucket) Reset() { *m = Settings_Buildbucket{} }
func (m *Settings_Buildbucket) String() string { return proto.CompactTextString(m) }
func (*Settings_Buildbucket) ProtoMessage() {}
func (*Settings_Buildbucket) Descriptor() ([]byte, []int) {
return fileDescriptor_98dd5cb9562385c0, []int{0, 1}
}
func (m *Settings_Buildbucket) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Settings_Buildbucket.Unmarshal(m, b)
}
func (m *Settings_Buildbucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Settings_Buildbucket.Marshal(b, m, deterministic)
}
func (m *Settings_Buildbucket) XXX_Merge(src proto.Message) {
xxx_messageInfo_Settings_Buildbucket.Merge(m, src)
}
func (m *Settings_Buildbucket) XXX_Size() int {
return xxx_messageInfo_Settings_Buildbucket.Size(m)
}
func (m *Settings_Buildbucket) XXX_DiscardUnknown() {
xxx_messageInfo_Settings_Buildbucket.DiscardUnknown(m)
}
var xxx_messageInfo_Settings_Buildbucket proto.InternalMessageInfo
func (m *Settings_Buildbucket) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Settings_Buildbucket) GetHost() string {
if m != nil {
return m.Host
}
return ""
}
func (m *Settings_Buildbucket) GetProject() string {
if m != nil {
return m.Project
}
return ""
}
type Settings_Swarming struct {
// default_host is the hostname of the swarming host Milo defaults to, if
// none is specified. Default host is implicitly an allowed host.
DefaultHost string `protobuf:"bytes,1,opt,name=default_host,json=defaultHost,proto3" json:"default_host,omitempty"`
// allowed_hosts is a whitelist of hostnames of swarming instances
// that Milo is allowed to talk to. This is specified here for security
// reasons, because Milo will hand out its oauth2 token to a swarming host.
AllowedHosts []string `protobuf:"bytes,2,rep,name=allowed_hosts,json=allowedHosts,proto3" json:"allowed_hosts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Settings_Swarming) Reset() { *m = Settings_Swarming{} }
func (m *Settings_Swarming) String() string { return proto.CompactTextString(m) }
func (*Settings_Swarming) ProtoMessage() {}
func (*Settings_Swarming) Descriptor() ([]byte, []int) {
return fileDescriptor_98dd5cb9562385c0, []int{0, 2}
}
func (m *Settings_Swarming) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Settings_Swarming.Unmarshal(m, b)
}
func (m *Settings_Swarming) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Settings_Swarming.Marshal(b, m, deterministic)
}
func (m *Settings_Swarming) XXX_Merge(src proto.Message) {
xxx_messageInfo_Settings_Swarming.Merge(m, src)
}
func (m *Settings_Swarming) XXX_Size() int {
return xxx_messageInfo_Settings_Swarming.Size(m)
}
func (m *Settings_Swarming) XXX_DiscardUnknown() {
xxx_messageInfo_Settings_Swarming.DiscardUnknown(m)
}
var xxx_messageInfo_Settings_Swarming proto.InternalMessageInfo
func (m *Settings_Swarming) GetDefaultHost() string {
if m != nil {
return m.DefaultHost
}
return ""
}
func (m *Settings_Swarming) GetAllowedHosts() []string {
if m != nil {
return m.AllowedHosts
}
return nil
}
// SourceAcls grants read access on a set of Git/Gerrit hosts or projects.
type Settings_SourceAcls struct {
// host grants read access on all project at this host.
//
// For more granularity, use the project field instead.
//
// For *.googlesource.com domains, host should not be a Gerrit host,
// i.e. it shouldn't be <subdomain>-review.googlesource.com.
Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
// project is a URL to a Git repository.
//
// Read access is granted on both git data and Gerrit CLs of this project.
//
// For *.googlesource.com Git repositories:
// URL Path should not start with '/a/' (forced authentication).
// URL Path should not end with '.git' (redundant).
Projects []string `protobuf:"bytes,2,rep,name=projects,proto3" json:"projects,omitempty"`
// readers are allowed to read git/gerrit data from targets.
//
// Three types of identity strings are supported:
// * Emails. For example: "someuser@example.com"
// * Chrome-infra-auth Groups. For example: "group:committers"
// * Auth service identities. For example: "kind:name"
//
// Required.
Readers []string `protobuf:"bytes,3,rep,name=readers,proto3" json:"readers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Settings_SourceAcls) Reset() { *m = Settings_SourceAcls{} }
func (m *Settings_SourceAcls) String() string { return proto.CompactTextString(m) }
func (*Settings_SourceAcls) ProtoMessage() {}
func (*Settings_SourceAcls) Descriptor() ([]byte, []int) {
return fileDescriptor_98dd5cb9562385c0, []int{0, 3}
}
func (m *Settings_SourceAcls) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Settings_SourceAcls.Unmarshal(m, b)
}
func (m *Settings_SourceAcls) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Settings_SourceAcls.Marshal(b, m, deterministic)
}
func (m *Settings_SourceAcls) XXX_Merge(src proto.Message) {
xxx_messageInfo_Settings_SourceAcls.Merge(m, src)
}
func (m *Settings_SourceAcls) XXX_Size() int {
return xxx_messageInfo_Settings_SourceAcls.Size(m)
}
func (m *Settings_SourceAcls) XXX_DiscardUnknown() {
xxx_messageInfo_Settings_SourceAcls.DiscardUnknown(m)
}
var xxx_messageInfo_Settings_SourceAcls proto.InternalMessageInfo
func (m *Settings_SourceAcls) GetHosts() []string {
if m != nil {
return m.Hosts
}
return nil
}
func (m *Settings_SourceAcls) GetProjects() []string {
if m != nil {
return m.Projects
}
return nil
}
func (m *Settings_SourceAcls) GetReaders() []string {
if m != nil {
return m.Readers
}
return nil
}
func init() {
proto.RegisterType((*Settings)(nil), "milo.Settings")
proto.RegisterType((*Settings_Buildbot)(nil), "milo.Settings.Buildbot")
proto.RegisterType((*Settings_Buildbucket)(nil), "milo.Settings.Buildbucket")
proto.RegisterType((*Settings_Swarming)(nil), "milo.Settings.Swarming")
proto.RegisterType((*Settings_SourceAcls)(nil), "milo.Settings.SourceAcls")
}
func init() {
proto.RegisterFile("github.com/TriggerMail/luci-go/milo/api/config/settings.proto", fileDescriptor_98dd5cb9562385c0)
}
var fileDescriptor_98dd5cb9562385c0 = []byte{
// 396 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xbf, 0x8e, 0xd4, 0x30,
0x10, 0xc6, 0x95, 0xcb, 0xde, 0x91, 0x9d, 0x1c, 0x20, 0x99, 0x43, 0x84, 0x54, 0x0b, 0x14, 0x6c,
0x95, 0x48, 0x97, 0x0e, 0xd1, 0xb0, 0x15, 0x1d, 0x92, 0xb7, 0x41, 0x34, 0x91, 0xe3, 0x78, 0xb3,
0x06, 0x27, 0x8e, 0xfc, 0x47, 0xfb, 0x0c, 0x3c, 0x02, 0x6f, 0x8b, 0xe2, 0xd8, 0x21, 0x9c, 0xb6,
0x9b, 0x99, 0xef, 0xf7, 0x7d, 0xb6, 0x47, 0x86, 0xaa, 0x93, 0x05, 0x3d, 0x2b, 0xd9, 0x73, 0xdb,
0x17, 0x52, 0x75, 0xa5, 0xb0, 0x94, 0x97, 0x3d, 0x17, 0xb2, 0x24, 0x23, 0x2f, 0xa9, 0x1c, 0x4e,
0xbc, 0x2b, 0x35, 0x33, 0x86, 0x0f, 0x9d, 0x2e, 0x46, 0x25, 0x8d, 0x44, 0x9b, 0x49, 0x7f, 0xff,
0xfb, 0x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