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

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

Issue 2765383002: Milo: Move instance configuration to luci-config (Closed)
Patch Set: Review Created 3 years, 8 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
1 // Code generated by protoc-gen-go. 1 // Code generated by protoc-gen-go.
2 // source: github.com/luci/luci-go/milo/common/config/settings.proto 2 // source: github.com/luci/luci-go/milo/common/config/settings.proto
3 // DO NOT EDIT! 3 // DO NOT EDIT!
4 4
5 package config 5 package config
6 6
7 import proto "github.com/golang/protobuf/proto" 7 import proto "github.com/golang/protobuf/proto"
8 import fmt "fmt" 8 import fmt "fmt"
9 import math "math" 9 import math "math"
10 10
11 // Reference imports to suppress errors if they are not otherwise used. 11 // Reference imports to suppress errors if they are not otherwise used.
12 var _ = proto.Marshal 12 var _ = proto.Marshal
13 var _ = fmt.Errorf 13 var _ = fmt.Errorf
14 var _ = math.Inf 14 var _ = math.Inf
15 15
16 // Settings represents the format for the global (service) config for Milo. 16 // Settings represents the format for the global (service) config for Milo.
17 type Settings struct { 17 type Settings struct {
18 » Buildbot *Settings_Buildbot `protobuf:"bytes,1,opt,name=buildbot" json:" buildbot,omitempty"` 18 » Buildbot *Settings_Buildbot `protobuf:"bytes,1,opt,name=buildbot" json:"buildbot,omitempty"`
19 » Buildbucket *Settings_Buildbucket `protobuf:"bytes,2,opt,name=buildbucke t" json:"buildbucket,omitempty"`
20 » Swarming *Settings_Swarming `protobuf:"bytes,3,opt,name=swarming" json:"swarming,omitempty"`
19 } 21 }
20 22
21 func (m *Settings) Reset() { *m = Settings{} } 23 func (m *Settings) Reset() { *m = Settings{} }
22 func (m *Settings) String() string { return proto.CompactTextString(m ) } 24 func (m *Settings) String() string { return proto.CompactTextString(m ) }
23 func (*Settings) ProtoMessage() {} 25 func (*Settings) ProtoMessage() {}
24 func (*Settings) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} } 26 func (*Settings) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
25 27
26 func (m *Settings) GetBuildbot() *Settings_Buildbot { 28 func (m *Settings) GetBuildbot() *Settings_Buildbot {
27 if m != nil { 29 if m != nil {
28 return m.Buildbot 30 return m.Buildbot
29 } 31 }
30 return nil 32 return nil
31 } 33 }
32 34
35 func (m *Settings) GetBuildbucket() *Settings_Buildbucket {
36 if m != nil {
37 return m.Buildbucket
38 }
39 return nil
40 }
41
42 func (m *Settings) GetSwarming() *Settings_Swarming {
43 if m != nil {
44 return m.Swarming
45 }
46 return nil
47 }
48
33 type Settings_Buildbot struct { 49 type Settings_Buildbot struct {
34 // internal_reader is the infra-auth group that is allowed to read inter nal 50 // internal_reader is the infra-auth group that is allowed to read inter nal
35 // buildbot data. 51 // buildbot data.
36 InternalReader string `protobuf:"bytes,1,opt,name=internal_reader,json=i nternalReader" json:"internal_reader,omitempty"` 52 InternalReader string `protobuf:"bytes,1,opt,name=internal_reader,json=i nternalReader" json:"internal_reader,omitempty"`
53 // public_topic is the name of the pubsub topic where public builds come in
54 // from
55 PublicTopic string `protobuf:"bytes,2,opt,name=public_topic,json=publicT opic" json:"public_topic,omitempty"`
56 // internal_topic is the name of the pubsub topic where internal builds
57 // come in from
58 InternalTopic string `protobuf:"bytes,3,opt,name=internal_topic,json=int ernalTopic" json:"internal_topic,omitempty"`
37 } 59 }
38 60
39 func (m *Settings_Buildbot) Reset() { *m = Settings_Buildbot{ } } 61 func (m *Settings_Buildbot) Reset() { *m = Settings_Buildbot{ } }
40 func (m *Settings_Buildbot) String() string { return proto.CompactTex tString(m) } 62 func (m *Settings_Buildbot) String() string { return proto.CompactTex tString(m) }
41 func (*Settings_Buildbot) ProtoMessage() {} 63 func (*Settings_Buildbot) ProtoMessage() {}
42 func (*Settings_Buildbot) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} } 64 func (*Settings_Buildbot) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
43 65
44 func (m *Settings_Buildbot) GetInternalReader() string { 66 func (m *Settings_Buildbot) GetInternalReader() string {
45 if m != nil { 67 if m != nil {
46 return m.InternalReader 68 return m.InternalReader
47 } 69 }
48 return "" 70 return ""
49 } 71 }
50 72
73 func (m *Settings_Buildbot) GetPublicTopic() string {
74 if m != nil {
75 return m.PublicTopic
76 }
77 return ""
78 }
79
80 func (m *Settings_Buildbot) GetInternalTopic() string {
81 if m != nil {
82 return m.InternalTopic
83 }
84 return ""
85 }
86
87 type Settings_Buildbucket struct {
88 // name is the user friendly name of the Buildbucket instance we're poin ting to.
89 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
90 // host is the hostname of the buildbucket instance we're pointing to (s ans schema).
91 Host string `protobuf:"bytes,2,opt,name=host" json:"host,omitempty"`
92 }
93
94 func (m *Settings_Buildbucket) Reset() { *m = Settings_Buildb ucket{} }
95 func (m *Settings_Buildbucket) String() string { return proto.Compact TextString(m) }
96 func (*Settings_Buildbucket) ProtoMessage() {}
97 func (*Settings_Buildbucket) Descriptor() ([]byte, []int) { return fileDescripto r1, []int{0, 1} }
98
99 func (m *Settings_Buildbucket) GetName() string {
100 if m != nil {
101 return m.Name
102 }
103 return ""
104 }
105
106 func (m *Settings_Buildbucket) GetHost() string {
107 if m != nil {
108 return m.Host
109 }
110 return ""
111 }
112
113 type Settings_Swarming struct {
114 // default_host is the hostname of the swarming host Milo defaults to, i f
115 // none is specified. Default host is implicitly an allowed host.
116 DefaultHost string `protobuf:"bytes,1,opt,name=default_host,json=default Host" json:"default_host,omitempty"`
117 // allowed_hosts is a list of whitelist hostnames of swarming instances
118 // that Milo is allowed to talk to. This is specified here for security
119 // reasons, because Milo will hand out its oauth2 token to a swarming ho st.
120 AllowedHosts []string `protobuf:"bytes,2,rep,name=allowed_hosts,json=all owedHosts" json:"allowed_hosts,omitempty"`
121 }
122
123 func (m *Settings_Swarming) Reset() { *m = Settings_Swarming{ } }
124 func (m *Settings_Swarming) String() string { return proto.CompactTex tString(m) }
125 func (*Settings_Swarming) ProtoMessage() {}
126 func (*Settings_Swarming) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 2} }
127
128 func (m *Settings_Swarming) GetDefaultHost() string {
129 if m != nil {
130 return m.DefaultHost
131 }
132 return ""
133 }
134
135 func (m *Settings_Swarming) GetAllowedHosts() []string {
136 if m != nil {
137 return m.AllowedHosts
138 }
139 return nil
140 }
141
51 func init() { 142 func init() {
52 proto.RegisterType((*Settings)(nil), "config.Settings") 143 proto.RegisterType((*Settings)(nil), "config.Settings")
53 proto.RegisterType((*Settings_Buildbot)(nil), "config.Settings.Buildbot" ) 144 proto.RegisterType((*Settings_Buildbot)(nil), "config.Settings.Buildbot" )
145 proto.RegisterType((*Settings_Buildbucket)(nil), "config.Settings.Buildb ucket")
146 proto.RegisterType((*Settings_Swarming)(nil), "config.Settings.Swarming" )
54 } 147 }
55 148
56 func init() { 149 func init() {
57 proto.RegisterFile("github.com/luci/luci-go/milo/common/config/settings. proto", fileDescriptor1) 150 proto.RegisterFile("github.com/luci/luci-go/milo/common/config/settings. proto", fileDescriptor1)
58 } 151 }
59 152
60 var fileDescriptor1 = []byte{ 153 var fileDescriptor1 = []byte{
61 » // 163 bytes of a gzipped FileDescriptorProto 154 » // 307 bytes of a gzipped FileDescriptorProto
62 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0xce, 0xb1, 0x0a, 0xc2, 0x30, 155 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xb1, 0x4e, 0xc3, 0x30,
63 » 0x10, 0x80, 0x61, 0xba, 0x94, 0x1a, 0x41, 0xa1, 0x93, 0x3a, 0x89, 0x8b, 0x2e, 0x26, 0x60, 0x71, 156 » 0x10, 0x86, 0xd5, 0x06, 0x55, 0xe9, 0xa5, 0x05, 0xc9, 0x53, 0xa8, 0x18, 0x0a, 0x08, 0xd1, 0x85,
64 » 0x70, 0xf5, 0x11, 0xe2, 0x03, 0x48, 0x93, 0xc6, 0x78, 0x90, 0xe4, 0x24, 0xbd, 0xf8, 0xfc, 0x42, 157 » 0x44, 0x02, 0x75, 0x60, 0x61, 0x60, 0x62, 0x76, 0xd9, 0xab, 0xc4, 0x71, 0x53, 0x0b, 0xc7, 0x57,
65 » 0xda, 0xb8, 0xdc, 0xf0, 0xdf, 0xc7, 0x71, 0xec, 0x66, 0x81, 0xde, 0x49, 0x71, 0x8d, 0x5e, 0xb8, 158 » 0xc5, 0xb6, 0x3a, 0xf1, 0x72, 0x3c, 0x19, 0xca, 0xc5, 0xa9, 0xba, 0x74, 0x89, 0x4e, 0x5f, 0xbe,
66 » 0xa4, 0x21, 0x8f, 0xb3, 0x45, 0xe1, 0xc1, 0xa1, 0xd0, 0xe8, 0x3d, 0x06, 0xa1, 0x31, 0xbc, 0xc0, 159 » 0x5f, 0xff, 0x9d, 0x0c, 0xef, 0xb5, 0x72, 0x7b, 0x5f, 0x66, 0x02, 0x9b, 0x5c, 0x7b, 0xa1, 0xe8,
67 » 0x8a, 0xd1, 0x10, 0x41, 0xb0, 0x23, 0xff, 0x44, 0x24, 0x6c, 0xeb, 0x29, 0x1f, 0xbe, 0xac, 0x79, 160 » 0xf3, 0x52, 0x63, 0xde, 0x28, 0x8d, 0xb9, 0xc0, 0xa6, 0x41, 0x93, 0x0b, 0x34, 0x3b, 0x55, 0xe7,
68 » 0xcc, 0x9b, 0xf6, 0xca, 0x1a, 0x95, 0xc0, 0x0d, 0x0a, 0x69, 0x53, 0xed, 0xab, 0xd3, 0xf2, 0xb2, 161 » 0x56, 0x3a, 0xa7, 0x4c, 0x6d, 0xb3, 0x43, 0x8b, 0x0e, 0xd9, 0xa4, 0xc7, 0x0f, 0x7f, 0x11, 0xc4,
69 » 0xe5, 0x13, 0xe3, 0xc5, 0xf0, 0xfb, 0x0c, 0xe4, 0x9f, 0xee, 0x3a, 0xd6, 0x94, 0xda, 0x1e, 0xd9, 162 » 0x9b, 0xf0, 0x8b, 0xad, 0x21, 0x2e, 0xbd, 0xd2, 0x55, 0x89, 0x2e, 0x1d, 0x2d, 0x47, 0xab, 0xe4,
70 » 0x1a, 0x02, 0x99, 0x18, 0x7a, 0xf7, 0x8c, 0xa6, 0x1f, 0x4c, 0xcc, 0x97, 0x16, 0x72, 0x55, 0xb2, 163 » 0xf5, 0x36, 0xeb, 0xbd, 0x6c, 0x70, 0xb2, 0xcf, 0x20, 0xf0, 0x93, 0xca, 0x3e, 0x20, 0xe9, 0x67,
71 » 0xcc, 0x55, 0xd5, 0xf9, 0x8d, 0xee, 0x17, 0x00, 0x00, 0xff, 0xff, 0x08, 0x01, 0x23, 0x09, 0xc3, 164 » 0x2f, 0x7e, 0xa4, 0x4b, 0xc7, 0x94, 0xbc, 0xbb, 0x90, 0x24, 0x87, 0x9f, 0x07, 0xba, 0x5a, 0x7b,
72 » 0x00, 0x00, 0x00, 165 » 0x2c, 0xda, 0x46, 0x99, 0x3a, 0x8d, 0x2e, 0xd4, 0x6e, 0x82, 0xc0, 0x4f, 0xea, 0xe2, 0x17, 0xe2,
166 » 0x61, 0x19, 0xf6, 0x0c, 0x37, 0xca, 0x38, 0xd9, 0x9a, 0x42, 0x6f, 0x5b, 0x59, 0x54, 0xb2, 0xa5,
167 » 0x03, 0xa6, 0xfc, 0x7a, 0xc0, 0x9c, 0x28, 0xbb, 0x87, 0xd9, 0xc1, 0x97, 0x5a, 0x89, 0xad, 0xc3,
168 » 0x83, 0x12, 0xb4, 0xec, 0x94, 0x27, 0x3d, 0xfb, 0xee, 0x10, 0x7b, 0x82, 0x53, 0x28, 0x48, 0x11,
169 » 0x49, 0xf3, 0x81, 0x92, 0xb6, 0x58, 0x43, 0x72, 0x76, 0x11, 0x63, 0x70, 0x65, 0x8a, 0x46, 0x86,
170 » 0x5a, 0x9a, 0x3b, 0xb6, 0x47, 0xeb, 0x42, 0x09, 0xcd, 0x0b, 0x0e, 0xf1, 0x70, 0x4b, 0xb7, 0x4c,
171 » 0x25, 0x77, 0x85, 0xd7, 0x6e, 0x4b, 0x5e, 0x9f, 0x4d, 0x02, 0xfb, 0x42, 0xeb, 0xd8, 0x23, 0xcc,
172 » 0x0b, 0xad, 0xf1, 0x28, 0x2b, 0x52, 0x6c, 0x3a, 0x5e, 0x46, 0xab, 0x29, 0x9f, 0x05, 0xd8, 0x39,
173 » 0xb6, 0x9c, 0xd0, 0x9b, 0xbe, 0xfd, 0x07, 0x00, 0x00, 0xff, 0xff, 0x64, 0x80, 0xe8, 0x07, 0x10,
174 » 0x02, 0x00, 0x00,
73 } 175 }
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