Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: milo/common/config/settings.pb.go

Issue 2944153003: [milo] common/config -> api/config (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « milo/common/config/settings.proto ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: github.com/luci/luci-go/milo/common/config/settings.proto
3
4 package config
5
6 import proto "github.com/golang/protobuf/proto"
7 import fmt "fmt"
8 import math "math"
9
10 // Reference imports to suppress errors if they are not otherwise used.
11 var _ = proto.Marshal
12 var _ = fmt.Errorf
13 var _ = math.Inf
14
15 // Settings represents the format for the global (service) config for Milo.
16 type Settings struct {
17 Buildbot *Settings_Buildbot `protobuf:"bytes,1,opt,name=buildbot" json:"buildbot,omitempty"`
18 Buildbucket *Settings_Buildbucket `protobuf:"bytes,2,opt,name=buildbucke t" json:"buildbucket,omitempty"`
19 Swarming *Settings_Swarming `protobuf:"bytes,3,opt,name=swarming" json:"swarming,omitempty"`
20 }
21
22 func (m *Settings) Reset() { *m = Settings{} }
23 func (m *Settings) String() string { return proto.CompactTextString(m ) }
24 func (*Settings) ProtoMessage() {}
25 func (*Settings) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
26
27 func (m *Settings) GetBuildbot() *Settings_Buildbot {
28 if m != nil {
29 return m.Buildbot
30 }
31 return nil
32 }
33
34 func (m *Settings) GetBuildbucket() *Settings_Buildbucket {
35 if m != nil {
36 return m.Buildbucket
37 }
38 return nil
39 }
40
41 func (m *Settings) GetSwarming() *Settings_Swarming {
42 if m != nil {
43 return m.Swarming
44 }
45 return nil
46 }
47
48 type Settings_Buildbot struct {
49 // internal_reader is the infra-auth group that is allowed to read inter nal
50 // buildbot data.
51 InternalReader string `protobuf:"bytes,1,opt,name=internal_reader,json=i nternalReader" json:"internal_reader,omitempty"`
52 // public_subscription is the name of the pubsub topic where public buil ds come in
53 // from
54 PublicSubscription string `protobuf:"bytes,2,opt,name=public_subscriptio n,json=publicSubscription" json:"public_subscription,omitempty"`
55 // internal_subscription is the name of the pubsub topic where internal builds
56 // come in from
57 InternalSubscription string `protobuf:"bytes,3,opt,name=internal_subscri ption,json=internalSubscription" json:"internal_subscription,omitempty"`
58 }
59
60 func (m *Settings_Buildbot) Reset() { *m = Settings_Buildbot{ } }
61 func (m *Settings_Buildbot) String() string { return proto.CompactTex tString(m) }
62 func (*Settings_Buildbot) ProtoMessage() {}
63 func (*Settings_Buildbot) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
64
65 func (m *Settings_Buildbot) GetInternalReader() string {
66 if m != nil {
67 return m.InternalReader
68 }
69 return ""
70 }
71
72 func (m *Settings_Buildbot) GetPublicSubscription() string {
73 if m != nil {
74 return m.PublicSubscription
75 }
76 return ""
77 }
78
79 func (m *Settings_Buildbot) GetInternalSubscription() string {
80 if m != nil {
81 return m.InternalSubscription
82 }
83 return ""
84 }
85
86 type Settings_Buildbucket struct {
87 // name is the user friendly name of the Buildbucket instance we're poin ting to.
88 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
89 // host is the hostname of the buildbucket instance we're pointing to (s ans schema).
90 Host string `protobuf:"bytes,2,opt,name=host" json:"host,omitempty"`
91 }
92
93 func (m *Settings_Buildbucket) Reset() { *m = Settings_Buildb ucket{} }
94 func (m *Settings_Buildbucket) String() string { return proto.Compact TextString(m) }
95 func (*Settings_Buildbucket) ProtoMessage() {}
96 func (*Settings_Buildbucket) Descriptor() ([]byte, []int) { return fileDescripto r1, []int{0, 1} }
97
98 func (m *Settings_Buildbucket) GetName() string {
99 if m != nil {
100 return m.Name
101 }
102 return ""
103 }
104
105 func (m *Settings_Buildbucket) GetHost() string {
106 if m != nil {
107 return m.Host
108 }
109 return ""
110 }
111
112 type Settings_Swarming struct {
113 // default_host is the hostname of the swarming host Milo defaults to, i f
114 // none is specified. Default host is implicitly an allowed host.
115 DefaultHost string `protobuf:"bytes,1,opt,name=default_host,json=default Host" json:"default_host,omitempty"`
116 // allowed_hosts is a whitelist of hostnames of swarming instances
117 // that Milo is allowed to talk to. This is specified here for security
118 // reasons, because Milo will hand out its oauth2 token to a swarming ho st.
119 AllowedHosts []string `protobuf:"bytes,2,rep,name=allowed_hosts,json=all owedHosts" json:"allowed_hosts,omitempty"`
120 }
121
122 func (m *Settings_Swarming) Reset() { *m = Settings_Swarming{ } }
123 func (m *Settings_Swarming) String() string { return proto.CompactTex tString(m) }
124 func (*Settings_Swarming) ProtoMessage() {}
125 func (*Settings_Swarming) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 2} }
126
127 func (m *Settings_Swarming) GetDefaultHost() string {
128 if m != nil {
129 return m.DefaultHost
130 }
131 return ""
132 }
133
134 func (m *Settings_Swarming) GetAllowedHosts() []string {
135 if m != nil {
136 return m.AllowedHosts
137 }
138 return nil
139 }
140
141 func init() {
142 proto.RegisterType((*Settings)(nil), "config.Settings")
143 proto.RegisterType((*Settings_Buildbot)(nil), "config.Settings.Buildbot" )
144 proto.RegisterType((*Settings_Buildbucket)(nil), "config.Settings.Buildb ucket")
145 proto.RegisterType((*Settings_Swarming)(nil), "config.Settings.Swarming" )
146 }
147
148 func init() {
149 proto.RegisterFile("github.com/luci/luci-go/milo/common/config/settings. proto", fileDescriptor1)
150 }
151
152 var fileDescriptor1 = []byte{
153 // 319 bytes of a gzipped FileDescriptorProto
154 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xbf, 0x4e, 0xc3, 0x30,
155 0x10, 0x87, 0xd5, 0x06, 0x55, 0xe9, 0xa5, 0x80, 0x64, 0x40, 0x0a, 0x15, 0x43, 0x81, 0x81, 0x2e,
156 0x24, 0x12, 0x55, 0x07, 0x16, 0x06, 0x26, 0x66, 0xf7, 0x01, 0xaa, 0xc4, 0x71, 0x53, 0x0b, 0xc7,
157 0x57, 0xf9, 0x8f, 0xfa, 0x2c, 0x3c, 0x1d, 0xaf, 0x82, 0xea, 0x38, 0x51, 0x18, 0xba, 0x44, 0xa7,
158 0xdf, 0x7d, 0x5f, 0xee, 0x4e, 0x86, 0xf7, 0x5a, 0xd8, 0xbd, 0x2b, 0x33, 0x86, 0x4d, 0x2e, 0x1d,
159 0x13, 0xfe, 0xf3, 0x5a, 0x63, 0xde, 0x08, 0x89, 0x39, 0xc3, 0xa6, 0x41, 0x95, 0x33, 0x54, 0x3b,
160 0x51, 0xe7, 0x86, 0x5b, 0x2b, 0x54, 0x6d, 0xb2, 0x83, 0x46, 0x8b, 0x64, 0xd2, 0xc6, 0x4f, 0xbf,
161 0x11, 0xc4, 0x9b, 0xd0, 0x22, 0x6b, 0x88, 0x4b, 0x27, 0x64, 0x55, 0xa2, 0x4d, 0x47, 0x8b, 0xd1,
162 0x32, 0x79, 0xbb, 0xcf, 0x5a, 0x2e, 0xeb, 0x98, 0xec, 0x33, 0x00, 0xb4, 0x47, 0xc9, 0x07, 0x24,
163 0x6d, 0xed, 0xd8, 0x37, 0xb7, 0xe9, 0xd8, 0x9b, 0x0f, 0x67, 0x4c, 0xcf, 0xd0, 0xa1, 0x70, 0x1a,
164 0x6b, 0x8e, 0x85, 0x6e, 0x84, 0xaa, 0xd3, 0xe8, 0xcc, 0xd8, 0x4d, 0x00, 0x68, 0x8f, 0xce, 0x7f,
165 0x46, 0x10, 0x77, 0xdb, 0x90, 0x17, 0xb8, 0x16, 0xca, 0x72, 0xad, 0x0a, 0xb9, 0xd5, 0xbc, 0xa8,
166 0xb8, 0xf6, 0x17, 0x4c, 0xe9, 0x55, 0x17, 0x53, 0x9f, 0x92, 0x1c, 0x6e, 0x0e, 0xae, 0x94, 0x82,
167 0x6d, 0x8d, 0x2b, 0x0d, 0xd3, 0xe2, 0x60, 0x05, 0x2a, 0xbf, 0xf4, 0x94, 0x92, 0xb6, 0xb5, 0x19,
168 0x74, 0xc8, 0x0a, 0xee, 0xfa, 0x3f, 0xff, 0x53, 0x22, 0xaf, 0xdc, 0x76, 0xcd, 0xa1, 0x34, 0x5f,
169 0x43, 0x32, 0x38, 0x97, 0x10, 0xb8, 0x50, 0x45, 0xc3, 0xc3, 0x4a, 0xbe, 0x3e, 0x65, 0x7b, 0x34,
170 0x36, 0x4c, 0xf6, 0xf5, 0x9c, 0x42, 0xdc, 0x1d, 0x4a, 0x1e, 0x61, 0x56, 0xf1, 0x5d, 0xe1, 0xa4,
171 0xdd, 0x7a, 0xae, 0x75, 0x93, 0x90, 0x7d, 0xa1, 0xb1, 0xe4, 0x19, 0x2e, 0x0b, 0x29, 0xf1, 0xc8,
172 0x2b, 0x8f, 0x98, 0x74, 0xbc, 0x88, 0x96, 0x53, 0x3a, 0x0b, 0xe1, 0x89, 0x31, 0xe5, 0xc4, 0x3f,
173 0xf8, 0xea, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xb5, 0x17, 0x4f, 0x2d, 0x02, 0x00, 0x00,
174 }
OLDNEW
« no previous file with comments | « milo/common/config/settings.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698