| Index: milo/api/proto/buildbot.pb.go
|
| diff --git a/milo/api/proto/buildbot.pb.go b/milo/api/proto/buildbot.pb.go
|
| index 28988f8f2d933671cdcae031ea258937180ecfbf..151be0c69000ea9e34393a8450e40296e99ab928 100644
|
| --- a/milo/api/proto/buildbot.pb.go
|
| +++ b/milo/api/proto/buildbot.pb.go
|
| @@ -13,6 +13,8 @@ It has these top-level messages:
|
| CompressedMasterJSON
|
| BuildbotBuildRequest
|
| BuildbotBuildJSON
|
| + BuildbotBuildsRequest
|
| + BuildbotBuildsJSON
|
| */
|
| package milo
|
|
|
| @@ -94,11 +96,45 @@ func (m *BuildbotBuildJSON) String() string { return proto.CompactTex
|
| func (*BuildbotBuildJSON) ProtoMessage() {}
|
| func (*BuildbotBuildJSON) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
|
|
| +// The request for multiple build on a builder.
|
| +type BuildbotBuildsRequest struct {
|
| + Master string `protobuf:"bytes,1,opt,name=master" json:"master,omitempty"`
|
| + Builder string `protobuf:"bytes,2,opt,name=builder" json:"builder,omitempty"`
|
| + // Limit to the number of builds to return (default: 20).
|
| + Limit int32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
|
| + // Include ongoing builds (default: false).
|
| + IncludeCurrent bool `protobuf:"varint,4,opt,name=include_current,json=includeCurrent" json:"include_current,omitempty"`
|
| +}
|
| +
|
| +func (m *BuildbotBuildsRequest) Reset() { *m = BuildbotBuildsRequest{} }
|
| +func (m *BuildbotBuildsRequest) String() string { return proto.CompactTextString(m) }
|
| +func (*BuildbotBuildsRequest) ProtoMessage() {}
|
| +func (*BuildbotBuildsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
| +
|
| +// The response message for multiple builds in a builder.
|
| +type BuildbotBuildsJSON struct {
|
| + Builds []*BuildbotBuildJSON `protobuf:"bytes,1,rep,name=builds" json:"builds,omitempty"`
|
| +}
|
| +
|
| +func (m *BuildbotBuildsJSON) Reset() { *m = BuildbotBuildsJSON{} }
|
| +func (m *BuildbotBuildsJSON) String() string { return proto.CompactTextString(m) }
|
| +func (*BuildbotBuildsJSON) ProtoMessage() {}
|
| +func (*BuildbotBuildsJSON) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
| +
|
| +func (m *BuildbotBuildsJSON) GetBuilds() []*BuildbotBuildJSON {
|
| + if m != nil {
|
| + return m.Builds
|
| + }
|
| + return nil
|
| +}
|
| +
|
| func init() {
|
| proto.RegisterType((*MasterRequest)(nil), "milo.MasterRequest")
|
| proto.RegisterType((*CompressedMasterJSON)(nil), "milo.CompressedMasterJSON")
|
| proto.RegisterType((*BuildbotBuildRequest)(nil), "milo.BuildbotBuildRequest")
|
| proto.RegisterType((*BuildbotBuildJSON)(nil), "milo.BuildbotBuildJSON")
|
| + proto.RegisterType((*BuildbotBuildsRequest)(nil), "milo.BuildbotBuildsRequest")
|
| + proto.RegisterType((*BuildbotBuildsJSON)(nil), "milo.BuildbotBuildsJSON")
|
| }
|
|
|
| // Reference imports to suppress errors if they are not otherwise used.
|
| @@ -114,6 +150,7 @@ const _ = grpc.SupportPackageIsVersion3
|
| type BuildbotClient interface {
|
| GetCompressedMasterJSON(ctx context.Context, in *MasterRequest, opts ...grpc.CallOption) (*CompressedMasterJSON, error)
|
| GetBuildbotBuildJSON(ctx context.Context, in *BuildbotBuildRequest, opts ...grpc.CallOption) (*BuildbotBuildJSON, error)
|
| + GetBuildbotBuildsJSON(ctx context.Context, in *BuildbotBuildsRequest, opts ...grpc.CallOption) (*BuildbotBuildsJSON, error)
|
| }
|
| type buildbotPRPCClient struct {
|
| client *prpc.Client
|
| @@ -141,6 +178,15 @@ func (c *buildbotPRPCClient) GetBuildbotBuildJSON(ctx context.Context, in *Build
|
| return out, nil
|
| }
|
|
|
| +func (c *buildbotPRPCClient) GetBuildbotBuildsJSON(ctx context.Context, in *BuildbotBuildsRequest, opts ...grpc.CallOption) (*BuildbotBuildsJSON, error) {
|
| + out := new(BuildbotBuildsJSON)
|
| + err := c.client.Call(ctx, "milo.Buildbot", "GetBuildbotBuildsJSON", in, out, opts...)
|
| + if err != nil {
|
| + return nil, err
|
| + }
|
| + return out, nil
|
| +}
|
| +
|
| type buildbotClient struct {
|
| cc *grpc.ClientConn
|
| }
|
| @@ -167,11 +213,21 @@ func (c *buildbotClient) GetBuildbotBuildJSON(ctx context.Context, in *BuildbotB
|
| return out, nil
|
| }
|
|
|
| +func (c *buildbotClient) GetBuildbotBuildsJSON(ctx context.Context, in *BuildbotBuildsRequest, opts ...grpc.CallOption) (*BuildbotBuildsJSON, error) {
|
| + out := new(BuildbotBuildsJSON)
|
| + err := grpc.Invoke(ctx, "/milo.Buildbot/GetBuildbotBuildsJSON", in, out, c.cc, opts...)
|
| + if err != nil {
|
| + return nil, err
|
| + }
|
| + return out, nil
|
| +}
|
| +
|
| // Server API for Buildbot service
|
|
|
| type BuildbotServer interface {
|
| GetCompressedMasterJSON(context.Context, *MasterRequest) (*CompressedMasterJSON, error)
|
| GetBuildbotBuildJSON(context.Context, *BuildbotBuildRequest) (*BuildbotBuildJSON, error)
|
| + GetBuildbotBuildsJSON(context.Context, *BuildbotBuildsRequest) (*BuildbotBuildsJSON, error)
|
| }
|
|
|
| func RegisterBuildbotServer(s prpc.Registrar, srv BuildbotServer) {
|
| @@ -214,6 +270,24 @@ func _Buildbot_GetBuildbotBuildJSON_Handler(srv interface{}, ctx context.Context
|
| return interceptor(ctx, in, info, handler)
|
| }
|
|
|
| +func _Buildbot_GetBuildbotBuildsJSON_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
| + in := new(BuildbotBuildsRequest)
|
| + if err := dec(in); err != nil {
|
| + return nil, err
|
| + }
|
| + if interceptor == nil {
|
| + return srv.(BuildbotServer).GetBuildbotBuildsJSON(ctx, in)
|
| + }
|
| + info := &grpc.UnaryServerInfo{
|
| + Server: srv,
|
| + FullMethod: "/milo.Buildbot/GetBuildbotBuildsJSON",
|
| + }
|
| + handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
| + return srv.(BuildbotServer).GetBuildbotBuildsJSON(ctx, req.(*BuildbotBuildsRequest))
|
| + }
|
| + return interceptor(ctx, in, info, handler)
|
| +}
|
| +
|
| var _Buildbot_serviceDesc = grpc.ServiceDesc{
|
| ServiceName: "milo.Buildbot",
|
| HandlerType: (*BuildbotServer)(nil),
|
| @@ -226,6 +300,10 @@ var _Buildbot_serviceDesc = grpc.ServiceDesc{
|
| MethodName: "GetBuildbotBuildJSON",
|
| Handler: _Buildbot_GetBuildbotBuildJSON_Handler,
|
| },
|
| + {
|
| + MethodName: "GetBuildbotBuildsJSON",
|
| + Handler: _Buildbot_GetBuildbotBuildsJSON_Handler,
|
| + },
|
| },
|
| Streams: []grpc.StreamDesc{},
|
| Metadata: fileDescriptor0,
|
| @@ -236,26 +314,31 @@ func init() {
|
| }
|
|
|
| var fileDescriptor0 = []byte{
|
| - // 324 bytes of a gzipped FileDescriptorProto
|
| - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x51, 0xb1, 0x4e, 0xc3, 0x30,
|
| - 0x10, 0x25, 0x6d, 0x55, 0xd2, 0x03, 0x06, 0x4c, 0x45, 0xa3, 0x30, 0x80, 0xc2, 0x00, 0x0b, 0x8e,
|
| - 0x54, 0x04, 0x1f, 0x00, 0x03, 0x12, 0xa2, 0x45, 0x0a, 0xec, 0xc8, 0x69, 0xdc, 0x60, 0x29, 0x8e,
|
| - 0x43, 0x63, 0xaf, 0xfc, 0x0e, 0xbf, 0x49, 0x72, 0x8e, 0x8b, 0x2a, 0xb2, 0x24, 0xf7, 0xfc, 0xde,
|
| - 0xf9, 0xde, 0x3d, 0xc3, 0x5d, 0x2e, 0xf4, 0xa7, 0x49, 0xe9, 0x4a, 0xc9, 0xb8, 0x30, 0x2b, 0x81,
|
| - 0x9f, 0x9b, 0x5c, 0xc5, 0x52, 0x14, 0x2a, 0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7f, 0x7e, 0xe6, 0x3f, 0x1e, 0xf8, 0x4e, 0x49, 0x5e, 0x60, 0xf6,
|
| - 0xc4, 0x75, 0x6f, 0x3e, 0x27, 0xb4, 0x7d, 0x04, 0xba, 0x13, 0x70, 0x18, 0xda, 0xc3, 0xbe, 0x86,
|
| - 0x68, 0x8f, 0x2c, 0x60, 0xda, 0xdc, 0xf6, 0xdf, 0x46, 0xd7, 0xd5, 0x17, 0x43, 0x38, 0xeb, 0xe1,
|
| - 0xec, 0x75, 0xe9, 0x18, 0xb3, 0xbe, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x9f, 0x70, 0x41, 0x6c,
|
| - 0x45, 0x02, 0x00, 0x00,
|
| + // 414 bytes of a gzipped FileDescriptorProto
|
| + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x92, 0x4d, 0x8f, 0xd3, 0x30,
|
| + 0x10, 0x86, 0xc9, 0xb6, 0x5b, 0xb2, 0xc3, 0x97, 0x30, 0x59, 0x36, 0x4a, 0x0f, 0xa0, 0x70, 0x28,
|
| + 0x17, 0x12, 0xa9, 0x08, 0x7e, 0x00, 0x15, 0x42, 0x42, 0xb4, 0x20, 0xc3, 0xbd, 0xca, 0x87, 0x1b,
|
| + 0x2c, 0xc5, 0x71, 0x48, 0xec, 0x2b, 0x67, 0xfe, 0x32, 0x37, 0xdc, 0x71, 0x5c, 0x11, 0x1a, 0x2e,
|
| + 0x7b, 0x49, 0x3c, 0x33, 0xaf, 0x5f, 0x3f, 0x33, 0x36, 0xbc, 0xa9, 0xb8, 0xfa, 0xae, 0xf3, 0xa4,
|
| + 0x90, 0x22, 0xad, 0x75, 0xc1, 0xf1, 0xf3, 0xaa, 0x92, 0xa9, 0xe0, 0xb5, 0x4c, 0xb3, 0x96, 0xa7,
|
| + 0x6d, 0x27, 0x95, 0x4c, 0x73, 0xcd, 0xeb, 0x32, 0x97, 0x2a, 0xc1, 0x90, 0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