diff --git a/proto/v1alpha2/api.proto b/proto/v1alpha2/api.proto index 48d62bc8c..143a44b33 100644 --- a/proto/v1alpha2/api.proto +++ b/proto/v1alpha2/api.proto @@ -92,6 +92,18 @@ service Results { delete: "/apis/results.tekton.dev/v1alpha2/parents/{name=*/results/*/records/*}" }; } + + rpc GetResultSummary(GetResultRequest) returns (Summary) { + option (google.api.http) = { + get: "/apis/results.tekton.dev/v1alpha2/parents/{name=*/results/*}/summary" + }; + } + + rpc GetResultsListSummary(ResultListSummaryRequest) returns (Summary) { + option (google.api.http) = { + get: "/apis/results.tekton.dev/v1alpha2/parents/{parent=*}/results/summary" + }; + } } service Logs { @@ -163,6 +175,18 @@ message GetResultRequest { }]; } +message ResultListSummaryRequest { + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "tekton.results.v1alpha2/Result" + }]; + + string filter = 2; + + string group_by = 3; +} + message ListResultsRequest { string parent = 1 [ (google.api.field_behavior) = REQUIRED, diff --git a/proto/v1alpha2/resources.proto b/proto/v1alpha2/resources.proto index be8fedbe3..9ec312b6c 100644 --- a/proto/v1alpha2/resources.proto +++ b/proto/v1alpha2/resources.proto @@ -175,4 +175,20 @@ message LogSummary { // Number of bytes received while streaming int64 bytesReceived = 2; -} \ No newline at end of file +} + +message Summary { + // The query that was used to generate this summary + string query = 1; + + // The criteria for grouping + string group_by = 2; + + // The aggregated results of the query. It is a map of the form "group-name" : + // for a non grouped response it is "default": + map data = 3; +} + +message Aggregations { + map aggregations = 1; +} diff --git a/proto/v1alpha2/results_go_proto/api.pb.go b/proto/v1alpha2/results_go_proto/api.pb.go index eae5e329b..8adf896bb 100644 --- a/proto/v1alpha2/results_go_proto/api.pb.go +++ b/proto/v1alpha2/results_go_proto/api.pb.go @@ -254,6 +254,69 @@ func (x *GetResultRequest) GetName() string { return "" } +type ResultListSummaryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` + Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` + GroupBy string `protobuf:"bytes,3,opt,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"` +} + +func (x *ResultListSummaryRequest) Reset() { + *x = ResultListSummaryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_api_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResultListSummaryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResultListSummaryRequest) ProtoMessage() {} + +func (x *ResultListSummaryRequest) ProtoReflect() protoreflect.Message { + mi := &file_api_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResultListSummaryRequest.ProtoReflect.Descriptor instead. +func (*ResultListSummaryRequest) Descriptor() ([]byte, []int) { + return file_api_proto_rawDescGZIP(), []int{4} +} + +func (x *ResultListSummaryRequest) GetParent() string { + if x != nil { + return x.Parent + } + return "" +} + +func (x *ResultListSummaryRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +func (x *ResultListSummaryRequest) GetGroupBy() string { + if x != nil { + return x.GroupBy + } + return "" +} + type ListResultsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -269,7 +332,7 @@ type ListResultsRequest struct { func (x *ListResultsRequest) Reset() { *x = ListResultsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_proto_msgTypes[4] + mi := &file_api_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -282,7 +345,7 @@ func (x *ListResultsRequest) String() string { func (*ListResultsRequest) ProtoMessage() {} func (x *ListResultsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_proto_msgTypes[4] + mi := &file_api_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -295,7 +358,7 @@ func (x *ListResultsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListResultsRequest.ProtoReflect.Descriptor instead. func (*ListResultsRequest) Descriptor() ([]byte, []int) { - return file_api_proto_rawDescGZIP(), []int{4} + return file_api_proto_rawDescGZIP(), []int{5} } func (x *ListResultsRequest) GetParent() string { @@ -345,7 +408,7 @@ type ListResultsResponse struct { func (x *ListResultsResponse) Reset() { *x = ListResultsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_api_proto_msgTypes[5] + mi := &file_api_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -358,7 +421,7 @@ func (x *ListResultsResponse) String() string { func (*ListResultsResponse) ProtoMessage() {} func (x *ListResultsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_proto_msgTypes[5] + mi := &file_api_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -371,7 +434,7 @@ func (x *ListResultsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListResultsResponse.ProtoReflect.Descriptor instead. func (*ListResultsResponse) Descriptor() ([]byte, []int) { - return file_api_proto_rawDescGZIP(), []int{5} + return file_api_proto_rawDescGZIP(), []int{6} } func (x *ListResultsResponse) GetResults() []*Result { @@ -401,7 +464,7 @@ type CreateRecordRequest struct { func (x *CreateRecordRequest) Reset() { *x = CreateRecordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_proto_msgTypes[6] + mi := &file_api_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -414,7 +477,7 @@ func (x *CreateRecordRequest) String() string { func (*CreateRecordRequest) ProtoMessage() {} func (x *CreateRecordRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_proto_msgTypes[6] + mi := &file_api_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -427,7 +490,7 @@ func (x *CreateRecordRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateRecordRequest.ProtoReflect.Descriptor instead. func (*CreateRecordRequest) Descriptor() ([]byte, []int) { - return file_api_proto_rawDescGZIP(), []int{6} + return file_api_proto_rawDescGZIP(), []int{7} } func (x *CreateRecordRequest) GetParent() string { @@ -455,7 +518,7 @@ type DeleteRecordRequest struct { func (x *DeleteRecordRequest) Reset() { *x = DeleteRecordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_proto_msgTypes[7] + mi := &file_api_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -468,7 +531,7 @@ func (x *DeleteRecordRequest) String() string { func (*DeleteRecordRequest) ProtoMessage() {} func (x *DeleteRecordRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_proto_msgTypes[7] + mi := &file_api_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -481,7 +544,7 @@ func (x *DeleteRecordRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteRecordRequest.ProtoReflect.Descriptor instead. func (*DeleteRecordRequest) Descriptor() ([]byte, []int) { - return file_api_proto_rawDescGZIP(), []int{7} + return file_api_proto_rawDescGZIP(), []int{8} } func (x *DeleteRecordRequest) GetName() string { @@ -507,7 +570,7 @@ type UpdateRecordRequest struct { func (x *UpdateRecordRequest) Reset() { *x = UpdateRecordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_proto_msgTypes[8] + mi := &file_api_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -520,7 +583,7 @@ func (x *UpdateRecordRequest) String() string { func (*UpdateRecordRequest) ProtoMessage() {} func (x *UpdateRecordRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_proto_msgTypes[8] + mi := &file_api_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -533,7 +596,7 @@ func (x *UpdateRecordRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateRecordRequest.ProtoReflect.Descriptor instead. func (*UpdateRecordRequest) Descriptor() ([]byte, []int) { - return file_api_proto_rawDescGZIP(), []int{8} + return file_api_proto_rawDescGZIP(), []int{9} } func (x *UpdateRecordRequest) GetRecord() *Record { @@ -568,7 +631,7 @@ type GetRecordRequest struct { func (x *GetRecordRequest) Reset() { *x = GetRecordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_proto_msgTypes[9] + mi := &file_api_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -581,7 +644,7 @@ func (x *GetRecordRequest) String() string { func (*GetRecordRequest) ProtoMessage() {} func (x *GetRecordRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_proto_msgTypes[9] + mi := &file_api_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -594,7 +657,7 @@ func (x *GetRecordRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetRecordRequest.ProtoReflect.Descriptor instead. func (*GetRecordRequest) Descriptor() ([]byte, []int) { - return file_api_proto_rawDescGZIP(), []int{9} + return file_api_proto_rawDescGZIP(), []int{10} } func (x *GetRecordRequest) GetName() string { @@ -619,7 +682,7 @@ type ListRecordsRequest struct { func (x *ListRecordsRequest) Reset() { *x = ListRecordsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_proto_msgTypes[10] + mi := &file_api_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -632,7 +695,7 @@ func (x *ListRecordsRequest) String() string { func (*ListRecordsRequest) ProtoMessage() {} func (x *ListRecordsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_proto_msgTypes[10] + mi := &file_api_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -645,7 +708,7 @@ func (x *ListRecordsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListRecordsRequest.ProtoReflect.Descriptor instead. func (*ListRecordsRequest) Descriptor() ([]byte, []int) { - return file_api_proto_rawDescGZIP(), []int{10} + return file_api_proto_rawDescGZIP(), []int{11} } func (x *ListRecordsRequest) GetParent() string { @@ -695,7 +758,7 @@ type ListRecordsResponse struct { func (x *ListRecordsResponse) Reset() { *x = ListRecordsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_api_proto_msgTypes[11] + mi := &file_api_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -708,7 +771,7 @@ func (x *ListRecordsResponse) String() string { func (*ListRecordsResponse) ProtoMessage() {} func (x *ListRecordsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_proto_msgTypes[11] + mi := &file_api_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -721,7 +784,7 @@ func (x *ListRecordsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListRecordsResponse.ProtoReflect.Descriptor instead. func (*ListRecordsResponse) Descriptor() ([]byte, []int) { - return file_api_proto_rawDescGZIP(), []int{11} + return file_api_proto_rawDescGZIP(), []int{12} } func (x *ListRecordsResponse) GetRecords() []*Record { @@ -750,7 +813,7 @@ type GetLogRequest struct { func (x *GetLogRequest) Reset() { *x = GetLogRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_proto_msgTypes[12] + mi := &file_api_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -763,7 +826,7 @@ func (x *GetLogRequest) String() string { func (*GetLogRequest) ProtoMessage() {} func (x *GetLogRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_proto_msgTypes[12] + mi := &file_api_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -776,7 +839,7 @@ func (x *GetLogRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetLogRequest.ProtoReflect.Descriptor instead. func (*GetLogRequest) Descriptor() ([]byte, []int) { - return file_api_proto_rawDescGZIP(), []int{12} + return file_api_proto_rawDescGZIP(), []int{13} } func (x *GetLogRequest) GetName() string { @@ -798,7 +861,7 @@ type DeleteLogRequest struct { func (x *DeleteLogRequest) Reset() { *x = DeleteLogRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_proto_msgTypes[13] + mi := &file_api_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -811,7 +874,7 @@ func (x *DeleteLogRequest) String() string { func (*DeleteLogRequest) ProtoMessage() {} func (x *DeleteLogRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_proto_msgTypes[13] + mi := &file_api_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -824,7 +887,7 @@ func (x *DeleteLogRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteLogRequest.ProtoReflect.Descriptor instead. func (*DeleteLogRequest) Descriptor() ([]byte, []int) { - return file_api_proto_rawDescGZIP(), []int{13} + return file_api_proto_rawDescGZIP(), []int{14} } func (x *DeleteLogRequest) GetName() string { @@ -883,7 +946,16 @@ var file_api_proto_rawDesc = []byte{ 0x01, 0x28, 0x09, 0x42, 0x26, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x20, 0x0a, 0x1e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x22, 0xc3, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x65, 0x22, 0x8d, 0x01, 0x0a, 0x18, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x4c, 0x69, 0x73, 0x74, + 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, + 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x26, + 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x20, 0x12, 0x1e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, + 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, + 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x42, + 0x79, 0x22, 0xc3, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x26, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x20, 0x12, 0x1e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, @@ -964,7 +1036,7 @@ var file_api_proto_rawDesc = []byte{ 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x23, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x4c, 0x6f, 0x67, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xdd, 0x0d, 0x0a, 0x07, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xca, 0x10, 0x0a, 0x07, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0xab, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2c, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x43, 0x72, 0x65, @@ -1074,50 +1146,72 @@ var file_api_proto_rawDesc = []byte{ 0x74, 0x6f, 0x6e, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x2a, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x32, 0xe2, 0x04, 0x0a, 0x04, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x9c, - 0x01, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x12, 0x26, 0x2e, 0x74, 0x65, 0x6b, 0x74, - 0x6f, 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, - 0x74, 0x74, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x22, 0x52, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x64, 0x65, 0x76, - 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x2a, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x30, 0x01, 0x12, 0xbb, 0x01, - 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x2b, 0x2e, 0x74, 0x65, 0x6b, + 0x64, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xad, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x29, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, - 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x64, 0x65, 0x76, - 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x73, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x2a, 0x2f, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x58, 0x0a, 0x09, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x1c, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, - 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x32, 0x2e, 0x4c, 0x6f, 0x67, 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, + 0x70, 0x68, 0x61, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, + 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x22, 0x4c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x46, 0x12, + 0x44, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x74, + 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, + 0x3d, 0x2a, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x75, + 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0xba, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, + 0x31, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, + 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x53, 0x75, 0x6d, + 0x6d, 0x61, 0x72, 0x79, 0x22, 0x4c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x46, 0x12, 0x44, 0x2f, 0x61, + 0x70, 0x69, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x74, 0x65, 0x6b, 0x74, + 0x6f, 0x6e, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, + 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x73, 0x75, 0x6d, 0x6d, 0x61, + 0x72, 0x79, 0x32, 0xe2, 0x04, 0x0a, 0x04, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x9c, 0x01, 0x0a, 0x06, + 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x12, 0x26, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, - 0x2e, 0x4c, 0x6f, 0x67, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x22, 0x06, 0xda, 0x41, 0x03, - 0x6c, 0x6f, 0x67, 0x28, 0x01, 0x12, 0xa2, 0x01, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x4c, 0x6f, 0x67, 0x12, 0x29, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x52, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x2a, 0x43, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x64, 0x65, 0x76, 0x2f, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x73, - 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x2a, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, - 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x63, - 0x64, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, - 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x74, 0x74, 0x70, + 0x42, 0x6f, 0x64, 0x79, 0x22, 0x52, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, + 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x2a, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x2a, + 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x30, 0x01, 0x12, 0xbb, 0x01, 0x0a, 0x08, 0x4c, + 0x69, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x2b, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, + 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x54, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x2a, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, + 0x2f, 0x2a, 0x7d, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x58, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x12, 0x1c, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, + 0x4c, 0x6f, 0x67, 0x1a, 0x23, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x4c, 0x6f, + 0x67, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x22, 0x06, 0xda, 0x41, 0x03, 0x6c, 0x6f, 0x67, + 0x28, 0x01, 0x12, 0xa2, 0x01, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4c, 0x6f, 0x67, + 0x12, 0x29, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, + 0x70, 0x74, 0x79, 0x22, 0x52, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x45, 0x2a, 0x43, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x73, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x6e, + 0x61, 0x6d, 0x65, 0x3d, 0x2a, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x2a, 0x2f, + 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x63, 0x64, 0x2f, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, 0x67, 0x6f, + 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1132,68 +1226,74 @@ func file_api_proto_rawDescGZIP() []byte { return file_api_proto_rawDescData } -var file_api_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_api_proto_msgTypes = make([]protoimpl.MessageInfo, 15) var file_api_proto_goTypes = []interface{}{ - (*CreateResultRequest)(nil), // 0: tekton.results.v1alpha2.CreateResultRequest - (*DeleteResultRequest)(nil), // 1: tekton.results.v1alpha2.DeleteResultRequest - (*UpdateResultRequest)(nil), // 2: tekton.results.v1alpha2.UpdateResultRequest - (*GetResultRequest)(nil), // 3: tekton.results.v1alpha2.GetResultRequest - (*ListResultsRequest)(nil), // 4: tekton.results.v1alpha2.ListResultsRequest - (*ListResultsResponse)(nil), // 5: tekton.results.v1alpha2.ListResultsResponse - (*CreateRecordRequest)(nil), // 6: tekton.results.v1alpha2.CreateRecordRequest - (*DeleteRecordRequest)(nil), // 7: tekton.results.v1alpha2.DeleteRecordRequest - (*UpdateRecordRequest)(nil), // 8: tekton.results.v1alpha2.UpdateRecordRequest - (*GetRecordRequest)(nil), // 9: tekton.results.v1alpha2.GetRecordRequest - (*ListRecordsRequest)(nil), // 10: tekton.results.v1alpha2.ListRecordsRequest - (*ListRecordsResponse)(nil), // 11: tekton.results.v1alpha2.ListRecordsResponse - (*GetLogRequest)(nil), // 12: tekton.results.v1alpha2.GetLogRequest - (*DeleteLogRequest)(nil), // 13: tekton.results.v1alpha2.DeleteLogRequest - (*Result)(nil), // 14: tekton.results.v1alpha2.Result - (*Record)(nil), // 15: tekton.results.v1alpha2.Record - (*fieldmaskpb.FieldMask)(nil), // 16: google.protobuf.FieldMask - (*Log)(nil), // 17: tekton.results.v1alpha2.Log - (*emptypb.Empty)(nil), // 18: google.protobuf.Empty - (*httpbody.HttpBody)(nil), // 19: google.api.HttpBody - (*LogSummary)(nil), // 20: tekton.results.v1alpha2.LogSummary + (*CreateResultRequest)(nil), // 0: tekton.results.v1alpha2.CreateResultRequest + (*DeleteResultRequest)(nil), // 1: tekton.results.v1alpha2.DeleteResultRequest + (*UpdateResultRequest)(nil), // 2: tekton.results.v1alpha2.UpdateResultRequest + (*GetResultRequest)(nil), // 3: tekton.results.v1alpha2.GetResultRequest + (*ResultListSummaryRequest)(nil), // 4: tekton.results.v1alpha2.ResultListSummaryRequest + (*ListResultsRequest)(nil), // 5: tekton.results.v1alpha2.ListResultsRequest + (*ListResultsResponse)(nil), // 6: tekton.results.v1alpha2.ListResultsResponse + (*CreateRecordRequest)(nil), // 7: tekton.results.v1alpha2.CreateRecordRequest + (*DeleteRecordRequest)(nil), // 8: tekton.results.v1alpha2.DeleteRecordRequest + (*UpdateRecordRequest)(nil), // 9: tekton.results.v1alpha2.UpdateRecordRequest + (*GetRecordRequest)(nil), // 10: tekton.results.v1alpha2.GetRecordRequest + (*ListRecordsRequest)(nil), // 11: tekton.results.v1alpha2.ListRecordsRequest + (*ListRecordsResponse)(nil), // 12: tekton.results.v1alpha2.ListRecordsResponse + (*GetLogRequest)(nil), // 13: tekton.results.v1alpha2.GetLogRequest + (*DeleteLogRequest)(nil), // 14: tekton.results.v1alpha2.DeleteLogRequest + (*Result)(nil), // 15: tekton.results.v1alpha2.Result + (*Record)(nil), // 16: tekton.results.v1alpha2.Record + (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask + (*Log)(nil), // 18: tekton.results.v1alpha2.Log + (*emptypb.Empty)(nil), // 19: google.protobuf.Empty + (*Summary)(nil), // 20: tekton.results.v1alpha2.Summary + (*httpbody.HttpBody)(nil), // 21: google.api.HttpBody + (*LogSummary)(nil), // 22: tekton.results.v1alpha2.LogSummary } var file_api_proto_depIdxs = []int32{ - 14, // 0: tekton.results.v1alpha2.CreateResultRequest.result:type_name -> tekton.results.v1alpha2.Result - 14, // 1: tekton.results.v1alpha2.UpdateResultRequest.result:type_name -> tekton.results.v1alpha2.Result - 14, // 2: tekton.results.v1alpha2.ListResultsResponse.results:type_name -> tekton.results.v1alpha2.Result - 15, // 3: tekton.results.v1alpha2.CreateRecordRequest.record:type_name -> tekton.results.v1alpha2.Record - 15, // 4: tekton.results.v1alpha2.UpdateRecordRequest.record:type_name -> tekton.results.v1alpha2.Record - 16, // 5: tekton.results.v1alpha2.UpdateRecordRequest.update_mask:type_name -> google.protobuf.FieldMask - 15, // 6: tekton.results.v1alpha2.ListRecordsResponse.records:type_name -> tekton.results.v1alpha2.Record + 15, // 0: tekton.results.v1alpha2.CreateResultRequest.result:type_name -> tekton.results.v1alpha2.Result + 15, // 1: tekton.results.v1alpha2.UpdateResultRequest.result:type_name -> tekton.results.v1alpha2.Result + 15, // 2: tekton.results.v1alpha2.ListResultsResponse.results:type_name -> tekton.results.v1alpha2.Result + 16, // 3: tekton.results.v1alpha2.CreateRecordRequest.record:type_name -> tekton.results.v1alpha2.Record + 16, // 4: tekton.results.v1alpha2.UpdateRecordRequest.record:type_name -> tekton.results.v1alpha2.Record + 17, // 5: tekton.results.v1alpha2.UpdateRecordRequest.update_mask:type_name -> google.protobuf.FieldMask + 16, // 6: tekton.results.v1alpha2.ListRecordsResponse.records:type_name -> tekton.results.v1alpha2.Record 0, // 7: tekton.results.v1alpha2.Results.CreateResult:input_type -> tekton.results.v1alpha2.CreateResultRequest 2, // 8: tekton.results.v1alpha2.Results.UpdateResult:input_type -> tekton.results.v1alpha2.UpdateResultRequest 3, // 9: tekton.results.v1alpha2.Results.GetResult:input_type -> tekton.results.v1alpha2.GetResultRequest 1, // 10: tekton.results.v1alpha2.Results.DeleteResult:input_type -> tekton.results.v1alpha2.DeleteResultRequest - 4, // 11: tekton.results.v1alpha2.Results.ListResults:input_type -> tekton.results.v1alpha2.ListResultsRequest - 6, // 12: tekton.results.v1alpha2.Results.CreateRecord:input_type -> tekton.results.v1alpha2.CreateRecordRequest - 8, // 13: tekton.results.v1alpha2.Results.UpdateRecord:input_type -> tekton.results.v1alpha2.UpdateRecordRequest - 9, // 14: tekton.results.v1alpha2.Results.GetRecord:input_type -> tekton.results.v1alpha2.GetRecordRequest - 10, // 15: tekton.results.v1alpha2.Results.ListRecords:input_type -> tekton.results.v1alpha2.ListRecordsRequest - 7, // 16: tekton.results.v1alpha2.Results.DeleteRecord:input_type -> tekton.results.v1alpha2.DeleteRecordRequest - 12, // 17: tekton.results.v1alpha2.Logs.GetLog:input_type -> tekton.results.v1alpha2.GetLogRequest - 10, // 18: tekton.results.v1alpha2.Logs.ListLogs:input_type -> tekton.results.v1alpha2.ListRecordsRequest - 17, // 19: tekton.results.v1alpha2.Logs.UpdateLog:input_type -> tekton.results.v1alpha2.Log - 13, // 20: tekton.results.v1alpha2.Logs.DeleteLog:input_type -> tekton.results.v1alpha2.DeleteLogRequest - 14, // 21: tekton.results.v1alpha2.Results.CreateResult:output_type -> tekton.results.v1alpha2.Result - 14, // 22: tekton.results.v1alpha2.Results.UpdateResult:output_type -> tekton.results.v1alpha2.Result - 14, // 23: tekton.results.v1alpha2.Results.GetResult:output_type -> tekton.results.v1alpha2.Result - 18, // 24: tekton.results.v1alpha2.Results.DeleteResult:output_type -> google.protobuf.Empty - 5, // 25: tekton.results.v1alpha2.Results.ListResults:output_type -> tekton.results.v1alpha2.ListResultsResponse - 15, // 26: tekton.results.v1alpha2.Results.CreateRecord:output_type -> tekton.results.v1alpha2.Record - 15, // 27: tekton.results.v1alpha2.Results.UpdateRecord:output_type -> tekton.results.v1alpha2.Record - 15, // 28: tekton.results.v1alpha2.Results.GetRecord:output_type -> tekton.results.v1alpha2.Record - 11, // 29: tekton.results.v1alpha2.Results.ListRecords:output_type -> tekton.results.v1alpha2.ListRecordsResponse - 18, // 30: tekton.results.v1alpha2.Results.DeleteRecord:output_type -> google.protobuf.Empty - 19, // 31: tekton.results.v1alpha2.Logs.GetLog:output_type -> google.api.HttpBody - 11, // 32: tekton.results.v1alpha2.Logs.ListLogs:output_type -> tekton.results.v1alpha2.ListRecordsResponse - 20, // 33: tekton.results.v1alpha2.Logs.UpdateLog:output_type -> tekton.results.v1alpha2.LogSummary - 18, // 34: tekton.results.v1alpha2.Logs.DeleteLog:output_type -> google.protobuf.Empty - 21, // [21:35] is the sub-list for method output_type - 7, // [7:21] is the sub-list for method input_type + 5, // 11: tekton.results.v1alpha2.Results.ListResults:input_type -> tekton.results.v1alpha2.ListResultsRequest + 7, // 12: tekton.results.v1alpha2.Results.CreateRecord:input_type -> tekton.results.v1alpha2.CreateRecordRequest + 9, // 13: tekton.results.v1alpha2.Results.UpdateRecord:input_type -> tekton.results.v1alpha2.UpdateRecordRequest + 10, // 14: tekton.results.v1alpha2.Results.GetRecord:input_type -> tekton.results.v1alpha2.GetRecordRequest + 11, // 15: tekton.results.v1alpha2.Results.ListRecords:input_type -> tekton.results.v1alpha2.ListRecordsRequest + 8, // 16: tekton.results.v1alpha2.Results.DeleteRecord:input_type -> tekton.results.v1alpha2.DeleteRecordRequest + 3, // 17: tekton.results.v1alpha2.Results.GetResultSummary:input_type -> tekton.results.v1alpha2.GetResultRequest + 4, // 18: tekton.results.v1alpha2.Results.GetResultsListSummary:input_type -> tekton.results.v1alpha2.ResultListSummaryRequest + 13, // 19: tekton.results.v1alpha2.Logs.GetLog:input_type -> tekton.results.v1alpha2.GetLogRequest + 11, // 20: tekton.results.v1alpha2.Logs.ListLogs:input_type -> tekton.results.v1alpha2.ListRecordsRequest + 18, // 21: tekton.results.v1alpha2.Logs.UpdateLog:input_type -> tekton.results.v1alpha2.Log + 14, // 22: tekton.results.v1alpha2.Logs.DeleteLog:input_type -> tekton.results.v1alpha2.DeleteLogRequest + 15, // 23: tekton.results.v1alpha2.Results.CreateResult:output_type -> tekton.results.v1alpha2.Result + 15, // 24: tekton.results.v1alpha2.Results.UpdateResult:output_type -> tekton.results.v1alpha2.Result + 15, // 25: tekton.results.v1alpha2.Results.GetResult:output_type -> tekton.results.v1alpha2.Result + 19, // 26: tekton.results.v1alpha2.Results.DeleteResult:output_type -> google.protobuf.Empty + 6, // 27: tekton.results.v1alpha2.Results.ListResults:output_type -> tekton.results.v1alpha2.ListResultsResponse + 16, // 28: tekton.results.v1alpha2.Results.CreateRecord:output_type -> tekton.results.v1alpha2.Record + 16, // 29: tekton.results.v1alpha2.Results.UpdateRecord:output_type -> tekton.results.v1alpha2.Record + 16, // 30: tekton.results.v1alpha2.Results.GetRecord:output_type -> tekton.results.v1alpha2.Record + 12, // 31: tekton.results.v1alpha2.Results.ListRecords:output_type -> tekton.results.v1alpha2.ListRecordsResponse + 19, // 32: tekton.results.v1alpha2.Results.DeleteRecord:output_type -> google.protobuf.Empty + 20, // 33: tekton.results.v1alpha2.Results.GetResultSummary:output_type -> tekton.results.v1alpha2.Summary + 20, // 34: tekton.results.v1alpha2.Results.GetResultsListSummary:output_type -> tekton.results.v1alpha2.Summary + 21, // 35: tekton.results.v1alpha2.Logs.GetLog:output_type -> google.api.HttpBody + 12, // 36: tekton.results.v1alpha2.Logs.ListLogs:output_type -> tekton.results.v1alpha2.ListRecordsResponse + 22, // 37: tekton.results.v1alpha2.Logs.UpdateLog:output_type -> tekton.results.v1alpha2.LogSummary + 19, // 38: tekton.results.v1alpha2.Logs.DeleteLog:output_type -> google.protobuf.Empty + 23, // [23:39] is the sub-list for method output_type + 7, // [7:23] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name 7, // [7:7] is the sub-list for extension extendee 0, // [0:7] is the sub-list for field type_name @@ -1255,7 +1355,7 @@ func file_api_proto_init() { } } file_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListResultsRequest); i { + switch v := v.(*ResultListSummaryRequest); i { case 0: return &v.state case 1: @@ -1267,7 +1367,7 @@ func file_api_proto_init() { } } file_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListResultsResponse); i { + switch v := v.(*ListResultsRequest); i { case 0: return &v.state case 1: @@ -1279,7 +1379,7 @@ func file_api_proto_init() { } } file_api_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRecordRequest); i { + switch v := v.(*ListResultsResponse); i { case 0: return &v.state case 1: @@ -1291,7 +1391,7 @@ func file_api_proto_init() { } } file_api_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteRecordRequest); i { + switch v := v.(*CreateRecordRequest); i { case 0: return &v.state case 1: @@ -1303,7 +1403,7 @@ func file_api_proto_init() { } } file_api_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateRecordRequest); i { + switch v := v.(*DeleteRecordRequest); i { case 0: return &v.state case 1: @@ -1315,7 +1415,7 @@ func file_api_proto_init() { } } file_api_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRecordRequest); i { + switch v := v.(*UpdateRecordRequest); i { case 0: return &v.state case 1: @@ -1327,7 +1427,7 @@ func file_api_proto_init() { } } file_api_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRecordsRequest); i { + switch v := v.(*GetRecordRequest); i { case 0: return &v.state case 1: @@ -1339,7 +1439,7 @@ func file_api_proto_init() { } } file_api_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRecordsResponse); i { + switch v := v.(*ListRecordsRequest); i { case 0: return &v.state case 1: @@ -1351,7 +1451,7 @@ func file_api_proto_init() { } } file_api_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLogRequest); i { + switch v := v.(*ListRecordsResponse); i { case 0: return &v.state case 1: @@ -1363,6 +1463,18 @@ func file_api_proto_init() { } } file_api_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetLogRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteLogRequest); i { case 0: return &v.state @@ -1381,7 +1493,7 @@ func file_api_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_api_proto_rawDesc, NumEnums: 0, - NumMessages: 14, + NumMessages: 15, NumExtensions: 0, NumServices: 2, }, diff --git a/proto/v1alpha2/results_go_proto/api.pb.gw.go b/proto/v1alpha2/results_go_proto/api.pb.gw.go index 404d9586d..710d4a7d9 100644 --- a/proto/v1alpha2/results_go_proto/api.pb.gw.go +++ b/proto/v1alpha2/results_go_proto/api.pb.gw.go @@ -701,6 +701,128 @@ func local_request_Results_DeleteRecord_0(ctx context.Context, marshaler runtime } +func request_Results_GetResultSummary_0(ctx context.Context, marshaler runtime.Marshaler, client ResultsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetResultRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := client.GetResultSummary(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Results_GetResultSummary_0(ctx context.Context, marshaler runtime.Marshaler, server ResultsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetResultRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := server.GetResultSummary(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Results_GetResultsListSummary_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} +) + +func request_Results_GetResultsListSummary_0(ctx context.Context, marshaler runtime.Marshaler, client ResultsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ResultListSummaryRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["parent"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent") + } + + protoReq.Parent, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Results_GetResultsListSummary_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetResultsListSummary(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Results_GetResultsListSummary_0(ctx context.Context, marshaler runtime.Marshaler, server ResultsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq ResultListSummaryRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["parent"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent") + } + + protoReq.Parent, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Results_GetResultsListSummary_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetResultsListSummary(ctx, &protoReq) + return msg, metadata, err + +} + func request_Logs_GetLog_0(ctx context.Context, marshaler runtime.Marshaler, client LogsClient, req *http.Request, pathParams map[string]string) (Logs_GetLogClient, runtime.ServerMetadata, error) { var protoReq GetLogRequest var metadata runtime.ServerMetadata @@ -1113,6 +1235,56 @@ func RegisterResultsHandlerServer(ctx context.Context, mux *runtime.ServeMux, se }) + mux.Handle("GET", pattern_Results_GetResultSummary_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/tekton.results.v1alpha2.Results/GetResultSummary", runtime.WithHTTPPathPattern("/apis/results.tekton.dev/v1alpha2/parents/{name=*/results/*}/summary")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Results_GetResultSummary_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Results_GetResultSummary_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Results_GetResultsListSummary_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/tekton.results.v1alpha2.Results/GetResultsListSummary", runtime.WithHTTPPathPattern("/apis/results.tekton.dev/v1alpha2/parents/{parent=*}/results/summary")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Results_GetResultsListSummary_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Results_GetResultsListSummary_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1440,6 +1612,50 @@ func RegisterResultsHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl }) + mux.Handle("GET", pattern_Results_GetResultSummary_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/tekton.results.v1alpha2.Results/GetResultSummary", runtime.WithHTTPPathPattern("/apis/results.tekton.dev/v1alpha2/parents/{name=*/results/*}/summary")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Results_GetResultSummary_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Results_GetResultSummary_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Results_GetResultsListSummary_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/tekton.results.v1alpha2.Results/GetResultsListSummary", runtime.WithHTTPPathPattern("/apis/results.tekton.dev/v1alpha2/parents/{parent=*}/results/summary")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Results_GetResultsListSummary_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Results_GetResultsListSummary_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1463,6 +1679,10 @@ var ( pattern_Results_ListRecords_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 2, 4, 1, 0, 4, 3, 5, 5, 2, 6}, []string{"apis", "results.tekton.dev", "v1alpha2", "parents", "results", "parent", "records"}, "")) pattern_Results_DeleteRecord_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 2, 4, 1, 0, 2, 5, 1, 0, 4, 5, 5, 6}, []string{"apis", "results.tekton.dev", "v1alpha2", "parents", "results", "records", "name"}, "")) + + pattern_Results_GetResultSummary_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 2, 4, 1, 0, 4, 3, 5, 5, 2, 6}, []string{"apis", "results.tekton.dev", "v1alpha2", "parents", "results", "name", "summary"}, "")) + + pattern_Results_GetResultsListSummary_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 2, 6}, []string{"apis", "results.tekton.dev", "v1alpha2", "parents", "parent", "results", "summary"}, "")) ) var ( @@ -1485,6 +1705,10 @@ var ( forward_Results_ListRecords_0 = runtime.ForwardResponseMessage forward_Results_DeleteRecord_0 = runtime.ForwardResponseMessage + + forward_Results_GetResultSummary_0 = runtime.ForwardResponseMessage + + forward_Results_GetResultsListSummary_0 = runtime.ForwardResponseMessage ) // RegisterLogsHandlerFromEndpoint is same as RegisterLogsHandler but diff --git a/proto/v1alpha2/results_go_proto/api_grpc.pb.go b/proto/v1alpha2/results_go_proto/api_grpc.pb.go index 3dbee4202..f8fda5534 100644 --- a/proto/v1alpha2/results_go_proto/api_grpc.pb.go +++ b/proto/v1alpha2/results_go_proto/api_grpc.pb.go @@ -35,16 +35,18 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Results_CreateResult_FullMethodName = "/tekton.results.v1alpha2.Results/CreateResult" - Results_UpdateResult_FullMethodName = "/tekton.results.v1alpha2.Results/UpdateResult" - Results_GetResult_FullMethodName = "/tekton.results.v1alpha2.Results/GetResult" - Results_DeleteResult_FullMethodName = "/tekton.results.v1alpha2.Results/DeleteResult" - Results_ListResults_FullMethodName = "/tekton.results.v1alpha2.Results/ListResults" - Results_CreateRecord_FullMethodName = "/tekton.results.v1alpha2.Results/CreateRecord" - Results_UpdateRecord_FullMethodName = "/tekton.results.v1alpha2.Results/UpdateRecord" - Results_GetRecord_FullMethodName = "/tekton.results.v1alpha2.Results/GetRecord" - Results_ListRecords_FullMethodName = "/tekton.results.v1alpha2.Results/ListRecords" - Results_DeleteRecord_FullMethodName = "/tekton.results.v1alpha2.Results/DeleteRecord" + Results_CreateResult_FullMethodName = "/tekton.results.v1alpha2.Results/CreateResult" + Results_UpdateResult_FullMethodName = "/tekton.results.v1alpha2.Results/UpdateResult" + Results_GetResult_FullMethodName = "/tekton.results.v1alpha2.Results/GetResult" + Results_DeleteResult_FullMethodName = "/tekton.results.v1alpha2.Results/DeleteResult" + Results_ListResults_FullMethodName = "/tekton.results.v1alpha2.Results/ListResults" + Results_CreateRecord_FullMethodName = "/tekton.results.v1alpha2.Results/CreateRecord" + Results_UpdateRecord_FullMethodName = "/tekton.results.v1alpha2.Results/UpdateRecord" + Results_GetRecord_FullMethodName = "/tekton.results.v1alpha2.Results/GetRecord" + Results_ListRecords_FullMethodName = "/tekton.results.v1alpha2.Results/ListRecords" + Results_DeleteRecord_FullMethodName = "/tekton.results.v1alpha2.Results/DeleteRecord" + Results_GetResultSummary_FullMethodName = "/tekton.results.v1alpha2.Results/GetResultSummary" + Results_GetResultsListSummary_FullMethodName = "/tekton.results.v1alpha2.Results/GetResultsListSummary" ) // ResultsClient is the client API for Results service. @@ -61,6 +63,8 @@ type ResultsClient interface { GetRecord(ctx context.Context, in *GetRecordRequest, opts ...grpc.CallOption) (*Record, error) ListRecords(ctx context.Context, in *ListRecordsRequest, opts ...grpc.CallOption) (*ListRecordsResponse, error) DeleteRecord(ctx context.Context, in *DeleteRecordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + GetResultSummary(ctx context.Context, in *GetResultRequest, opts ...grpc.CallOption) (*Summary, error) + GetResultsListSummary(ctx context.Context, in *ResultListSummaryRequest, opts ...grpc.CallOption) (*Summary, error) } type resultsClient struct { @@ -161,6 +165,24 @@ func (c *resultsClient) DeleteRecord(ctx context.Context, in *DeleteRecordReques return out, nil } +func (c *resultsClient) GetResultSummary(ctx context.Context, in *GetResultRequest, opts ...grpc.CallOption) (*Summary, error) { + out := new(Summary) + err := c.cc.Invoke(ctx, Results_GetResultSummary_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *resultsClient) GetResultsListSummary(ctx context.Context, in *ResultListSummaryRequest, opts ...grpc.CallOption) (*Summary, error) { + out := new(Summary) + err := c.cc.Invoke(ctx, Results_GetResultsListSummary_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // ResultsServer is the server API for Results service. // All implementations must embed UnimplementedResultsServer // for forward compatibility @@ -175,6 +197,8 @@ type ResultsServer interface { GetRecord(context.Context, *GetRecordRequest) (*Record, error) ListRecords(context.Context, *ListRecordsRequest) (*ListRecordsResponse, error) DeleteRecord(context.Context, *DeleteRecordRequest) (*emptypb.Empty, error) + GetResultSummary(context.Context, *GetResultRequest) (*Summary, error) + GetResultsListSummary(context.Context, *ResultListSummaryRequest) (*Summary, error) mustEmbedUnimplementedResultsServer() } @@ -212,6 +236,12 @@ func (UnimplementedResultsServer) ListRecords(context.Context, *ListRecordsReque func (UnimplementedResultsServer) DeleteRecord(context.Context, *DeleteRecordRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteRecord not implemented") } +func (UnimplementedResultsServer) GetResultSummary(context.Context, *GetResultRequest) (*Summary, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetResultSummary not implemented") +} +func (UnimplementedResultsServer) GetResultsListSummary(context.Context, *ResultListSummaryRequest) (*Summary, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetResultsListSummary not implemented") +} func (UnimplementedResultsServer) mustEmbedUnimplementedResultsServer() {} // UnsafeResultsServer may be embedded to opt out of forward compatibility for this service. @@ -405,6 +435,42 @@ func _Results_DeleteRecord_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } +func _Results_GetResultSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetResultRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResultsServer).GetResultSummary(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Results_GetResultSummary_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResultsServer).GetResultSummary(ctx, req.(*GetResultRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Results_GetResultsListSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResultListSummaryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ResultsServer).GetResultsListSummary(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Results_GetResultsListSummary_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ResultsServer).GetResultsListSummary(ctx, req.(*ResultListSummaryRequest)) + } + return interceptor(ctx, in, info, handler) +} + // Results_ServiceDesc is the grpc.ServiceDesc for Results service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -452,6 +518,14 @@ var Results_ServiceDesc = grpc.ServiceDesc{ MethodName: "DeleteRecord", Handler: _Results_DeleteRecord_Handler, }, + { + MethodName: "GetResultSummary", + Handler: _Results_GetResultSummary_Handler, + }, + { + MethodName: "GetResultsListSummary", + Handler: _Results_GetResultsListSummary_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "api.proto", diff --git a/proto/v1alpha2/results_go_proto/resources.pb.go b/proto/v1alpha2/results_go_proto/resources.pb.go index b73132158..a2e2dcd84 100644 --- a/proto/v1alpha2/results_go_proto/resources.pb.go +++ b/proto/v1alpha2/results_go_proto/resources.pb.go @@ -647,6 +647,120 @@ func (x *LogSummary) GetBytesReceived() int64 { return 0 } +type Summary struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The query that was used to generate this summary + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + // The criteria for grouping + GroupBy string `protobuf:"bytes,2,opt,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"` + // The aggregated results of the query. It is a map of the form "group-name" : + // for a non grouped response it is "default": + Data map[string]*Aggregations `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *Summary) Reset() { + *x = Summary{} + if protoimpl.UnsafeEnabled { + mi := &file_resources_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Summary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Summary) ProtoMessage() {} + +func (x *Summary) ProtoReflect() protoreflect.Message { + mi := &file_resources_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Summary.ProtoReflect.Descriptor instead. +func (*Summary) Descriptor() ([]byte, []int) { + return file_resources_proto_rawDescGZIP(), []int{6} +} + +func (x *Summary) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + +func (x *Summary) GetGroupBy() string { + if x != nil { + return x.GroupBy + } + return "" +} + +func (x *Summary) GetData() map[string]*Aggregations { + if x != nil { + return x.Data + } + return nil +} + +type Aggregations struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Aggregations map[string]string `protobuf:"bytes,1,rep,name=aggregations,proto3" json:"aggregations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *Aggregations) Reset() { + *x = Aggregations{} + if protoimpl.UnsafeEnabled { + mi := &file_resources_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Aggregations) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Aggregations) ProtoMessage() {} + +func (x *Aggregations) ProtoReflect() protoreflect.Message { + mi := &file_resources_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Aggregations.ProtoReflect.Descriptor instead. +func (*Aggregations) Descriptor() ([]byte, []int) { + return file_resources_proto_rawDescGZIP(), []int{7} +} + +func (x *Aggregations) GetAggregations() map[string]string { + if x != nil { + return x.Aggregations + } + return nil +} + var File_resources_proto protoreflect.FileDescriptor var file_resources_proto_rawDesc = []byte{ @@ -772,12 +886,36 @@ var file_resources_proto_rawDesc = []byte{ 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x64, 0x65, 0x76, 0x2f, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x06, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, - 0x62, 0x79, 0x74, 0x65, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x42, 0x3d, 0x5a, - 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x65, 0x6b, 0x74, - 0x6f, 0x6e, 0x63, 0x64, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x73, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x22, 0xda, 0x01, + 0x0a, 0x07, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, + 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x62, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x12, 0x3e, 0x0a, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, + 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x32, 0x2e, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x5e, 0x0a, 0x09, 0x44, 0x61, + 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3b, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, + 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0x32, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xac, 0x01, 0x0a, 0x0c, 0x41, + 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5b, 0x0a, 0x0c, 0x61, + 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x37, 0x2e, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x73, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2e, 0x41, 0x67, 0x67, 0x72, + 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x61, 0x67, 0x67, 0x72, + 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3f, 0x0a, 0x11, 0x41, 0x67, 0x67, 0x72, + 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x3d, 0x5a, 0x3b, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x65, 0x6b, 0x74, 0x6f, 0x6e, 0x63, 0x64, + 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x5f, + 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -793,7 +931,7 @@ func file_resources_proto_rawDescGZIP() []byte { } var file_resources_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_resources_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_resources_proto_goTypes = []interface{}{ (RecordSummary_Status)(0), // 0: tekton.results.v1alpha2.RecordSummary.Status (*Result)(nil), // 1: tekton.results.v1alpha2.Result @@ -802,31 +940,38 @@ var file_resources_proto_goTypes = []interface{}{ (*RecordSummary)(nil), // 4: tekton.results.v1alpha2.RecordSummary (*Log)(nil), // 5: tekton.results.v1alpha2.Log (*LogSummary)(nil), // 6: tekton.results.v1alpha2.LogSummary - nil, // 7: tekton.results.v1alpha2.Result.AnnotationsEntry - nil, // 8: tekton.results.v1alpha2.RecordSummary.AnnotationsEntry - (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp + (*Summary)(nil), // 7: tekton.results.v1alpha2.Summary + (*Aggregations)(nil), // 8: tekton.results.v1alpha2.Aggregations + nil, // 9: tekton.results.v1alpha2.Result.AnnotationsEntry + nil, // 10: tekton.results.v1alpha2.RecordSummary.AnnotationsEntry + nil, // 11: tekton.results.v1alpha2.Summary.DataEntry + nil, // 12: tekton.results.v1alpha2.Aggregations.AggregationsEntry + (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp } var file_resources_proto_depIdxs = []int32{ - 9, // 0: tekton.results.v1alpha2.Result.created_time:type_name -> google.protobuf.Timestamp - 9, // 1: tekton.results.v1alpha2.Result.create_time:type_name -> google.protobuf.Timestamp - 9, // 2: tekton.results.v1alpha2.Result.updated_time:type_name -> google.protobuf.Timestamp - 9, // 3: tekton.results.v1alpha2.Result.update_time:type_name -> google.protobuf.Timestamp - 7, // 4: tekton.results.v1alpha2.Result.annotations:type_name -> tekton.results.v1alpha2.Result.AnnotationsEntry + 13, // 0: tekton.results.v1alpha2.Result.created_time:type_name -> google.protobuf.Timestamp + 13, // 1: tekton.results.v1alpha2.Result.create_time:type_name -> google.protobuf.Timestamp + 13, // 2: tekton.results.v1alpha2.Result.updated_time:type_name -> google.protobuf.Timestamp + 13, // 3: tekton.results.v1alpha2.Result.update_time:type_name -> google.protobuf.Timestamp + 9, // 4: tekton.results.v1alpha2.Result.annotations:type_name -> tekton.results.v1alpha2.Result.AnnotationsEntry 4, // 5: tekton.results.v1alpha2.Result.summary:type_name -> tekton.results.v1alpha2.RecordSummary 3, // 6: tekton.results.v1alpha2.Record.data:type_name -> tekton.results.v1alpha2.Any - 9, // 7: tekton.results.v1alpha2.Record.created_time:type_name -> google.protobuf.Timestamp - 9, // 8: tekton.results.v1alpha2.Record.create_time:type_name -> google.protobuf.Timestamp - 9, // 9: tekton.results.v1alpha2.Record.updated_time:type_name -> google.protobuf.Timestamp - 9, // 10: tekton.results.v1alpha2.Record.update_time:type_name -> google.protobuf.Timestamp - 9, // 11: tekton.results.v1alpha2.RecordSummary.start_time:type_name -> google.protobuf.Timestamp - 9, // 12: tekton.results.v1alpha2.RecordSummary.end_time:type_name -> google.protobuf.Timestamp + 13, // 7: tekton.results.v1alpha2.Record.created_time:type_name -> google.protobuf.Timestamp + 13, // 8: tekton.results.v1alpha2.Record.create_time:type_name -> google.protobuf.Timestamp + 13, // 9: tekton.results.v1alpha2.Record.updated_time:type_name -> google.protobuf.Timestamp + 13, // 10: tekton.results.v1alpha2.Record.update_time:type_name -> google.protobuf.Timestamp + 13, // 11: tekton.results.v1alpha2.RecordSummary.start_time:type_name -> google.protobuf.Timestamp + 13, // 12: tekton.results.v1alpha2.RecordSummary.end_time:type_name -> google.protobuf.Timestamp 0, // 13: tekton.results.v1alpha2.RecordSummary.status:type_name -> tekton.results.v1alpha2.RecordSummary.Status - 8, // 14: tekton.results.v1alpha2.RecordSummary.annotations:type_name -> tekton.results.v1alpha2.RecordSummary.AnnotationsEntry - 15, // [15:15] is the sub-list for method output_type - 15, // [15:15] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name + 10, // 14: tekton.results.v1alpha2.RecordSummary.annotations:type_name -> tekton.results.v1alpha2.RecordSummary.AnnotationsEntry + 11, // 15: tekton.results.v1alpha2.Summary.data:type_name -> tekton.results.v1alpha2.Summary.DataEntry + 12, // 16: tekton.results.v1alpha2.Aggregations.aggregations:type_name -> tekton.results.v1alpha2.Aggregations.AggregationsEntry + 8, // 17: tekton.results.v1alpha2.Summary.DataEntry.value:type_name -> tekton.results.v1alpha2.Aggregations + 18, // [18:18] is the sub-list for method output_type + 18, // [18:18] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name } func init() { file_resources_proto_init() } @@ -907,6 +1052,30 @@ func file_resources_proto_init() { return nil } } + file_resources_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Summary); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_resources_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Aggregations); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -914,7 +1083,7 @@ func file_resources_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_resources_proto_rawDesc, NumEnums: 1, - NumMessages: 8, + NumMessages: 12, NumExtensions: 0, NumServices: 0, },