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

Unified Diff: milo/common/config/settings.pb.go

Issue 2765383002: Milo: Move instance configuration to luci-config (Closed)
Patch Set: Review Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « milo/common/config/settings.proto ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/common/config/settings.pb.go
diff --git a/milo/common/config/settings.pb.go b/milo/common/config/settings.pb.go
index e503b3878ab6a31362a5fe7188999c67c4488413..347be8067f4abe09845c776700d65c2378fc9dee 100644
--- a/milo/common/config/settings.pb.go
+++ b/milo/common/config/settings.pb.go
@@ -15,7 +15,9 @@ var _ = math.Inf
// Settings represents the format for the global (service) config for Milo.
type Settings struct {
- Buildbot *Settings_Buildbot `protobuf:"bytes,1,opt,name=buildbot" json:"buildbot,omitempty"`
+ Buildbot *Settings_Buildbot `protobuf:"bytes,1,opt,name=buildbot" json:"buildbot,omitempty"`
+ Buildbucket *Settings_Buildbucket `protobuf:"bytes,2,opt,name=buildbucket" json:"buildbucket,omitempty"`
+ Swarming *Settings_Swarming `protobuf:"bytes,3,opt,name=swarming" json:"swarming,omitempty"`
}
func (m *Settings) Reset() { *m = Settings{} }
@@ -30,10 +32,30 @@ func (m *Settings) GetBuildbot() *Settings_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
+}
+
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" json:"internal_reader,omitempty"`
+ // public_topic is the name of the pubsub topic where public builds come in
+ // from
+ PublicTopic string `protobuf:"bytes,2,opt,name=public_topic,json=publicTopic" json:"public_topic,omitempty"`
+ // internal_topic is the name of the pubsub topic where internal builds
+ // come in from
+ InternalTopic string `protobuf:"bytes,3,opt,name=internal_topic,json=internalTopic" json:"internal_topic,omitempty"`
}
func (m *Settings_Buildbot) Reset() { *m = Settings_Buildbot{} }
@@ -48,9 +70,80 @@ func (m *Settings_Buildbot) GetInternalReader() string {
return ""
}
+func (m *Settings_Buildbot) GetPublicTopic() string {
+ if m != nil {
+ return m.PublicTopic
+ }
+ return ""
+}
+
+func (m *Settings_Buildbot) GetInternalTopic() string {
+ if m != nil {
+ return m.InternalTopic
+ }
+ 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" 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" json:"host,omitempty"`
+}
+
+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 fileDescriptor1, []int{0, 1} }
+
+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 ""
+}
+
+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" json:"default_host,omitempty"`
+ // allowed_hosts is a list of whitelist 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" json:"allowed_hosts,omitempty"`
+}
+
+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 fileDescriptor1, []int{0, 2} }
+
+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
+}
+
func init() {
proto.RegisterType((*Settings)(nil), "config.Settings")
proto.RegisterType((*Settings_Buildbot)(nil), "config.Settings.Buildbot")
+ proto.RegisterType((*Settings_Buildbucket)(nil), "config.Settings.Buildbucket")
+ proto.RegisterType((*Settings_Swarming)(nil), "config.Settings.Swarming")
}
func init() {
@@ -58,16 +151,25 @@ func init() {
}
var fileDescriptor1 = []byte{
- // 163 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0xce, 0xb1, 0x0a, 0xc2, 0x30,
- 0x10, 0x80, 0x61, 0xba, 0x94, 0x1a, 0x41, 0xa1, 0x93, 0x3a, 0x89, 0x8b, 0x2e, 0x26, 0x60, 0x71,
- 0x70, 0xf5, 0x11, 0xe2, 0x03, 0x48, 0x93, 0xc6, 0x78, 0x90, 0xe4, 0x24, 0xbd, 0xf8, 0xfc, 0x42,
- 0xda, 0xb8, 0xdc, 0xf0, 0xdf, 0xc7, 0x71, 0xec, 0x66, 0x81, 0xde, 0x49, 0x71, 0x8d, 0x5e, 0xb8,
- 0xa4, 0x21, 0x8f, 0xb3, 0x45, 0xe1, 0xc1, 0xa1, 0xd0, 0xe8, 0x3d, 0x06, 0xa1, 0x31, 0xbc, 0xc0,
- 0x8a, 0xd1, 0x10, 0x41, 0xb0, 0x23, 0xff, 0x44, 0x24, 0x6c, 0xeb, 0x29, 0x1f, 0xbe, 0xac, 0x79,
- 0xcc, 0x9b, 0xf6, 0xca, 0x1a, 0x95, 0xc0, 0x0d, 0x0a, 0x69, 0x53, 0xed, 0xab, 0xd3, 0xf2, 0xb2,
- 0xe5, 0x13, 0xe3, 0xc5, 0xf0, 0xfb, 0x0c, 0xe4, 0x9f, 0xee, 0x3a, 0xd6, 0x94, 0xda, 0x1e, 0xd9,
- 0x1a, 0x02, 0x99, 0x18, 0x7a, 0xf7, 0x8c, 0xa6, 0x1f, 0x4c, 0xcc, 0x97, 0x16, 0x72, 0x55, 0xb2,
- 0xcc, 0x55, 0xd5, 0xf9, 0x8d, 0xee, 0x17, 0x00, 0x00, 0xff, 0xff, 0x08, 0x01, 0x23, 0x09, 0xc3,
- 0x00, 0x00, 0x00,
+ // 307 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xb1, 0x4e, 0xc3, 0x30,
+ 0x10, 0x86, 0xd5, 0x06, 0x55, 0xe9, 0xa5, 0x05, 0xc9, 0x53, 0xa8, 0x18, 0x0a, 0x08, 0xd1, 0x85,
+ 0x44, 0x02, 0x75, 0x60, 0x61, 0x60, 0x62, 0x76, 0xd9, 0xab, 0xc4, 0x71, 0x53, 0x0b, 0xc7, 0x57,
+ 0xc5, 0xb6, 0x3a, 0xf1, 0x72, 0x3c, 0x19, 0xca, 0xc5, 0xa9, 0xba, 0x74, 0x89, 0x4e, 0x5f, 0xbe,
+ 0x5f, 0xff, 0x9d, 0x0c, 0xef, 0xb5, 0x72, 0x7b, 0x5f, 0x66, 0x02, 0x9b, 0x5c, 0x7b, 0xa1, 0xe8,
+ 0xf3, 0x52, 0x63, 0xde, 0x28, 0x8d, 0xb9, 0xc0, 0xa6, 0x41, 0x93, 0x0b, 0x34, 0x3b, 0x55, 0xe7,
+ 0x56, 0x3a, 0xa7, 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x52, 0x6c, 0x3a, 0x5e, 0x46, 0xab, 0x29, 0x9f, 0x05, 0xd8, 0x39,
+ 0xb6, 0x9c, 0xd0, 0x9b, 0xbe, 0xfd, 0x07, 0x00, 0x00, 0xff, 0xff, 0x64, 0x80, 0xe8, 0x07, 0x10,
+ 0x02, 0x00, 0x00,
}
« 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