Documentation ¶
Index ¶
- Variables
- func FileDescriptorSet() *descriptorpb.FileDescriptorSet
- func RegisterUIServer(s prpc.Registrar, srv UIServer)
- type DecoratedUI
- type QueryTestVariantsRequest
- func (*QueryTestVariantsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTestVariantsRequest) GetInvocations() []string
- func (x *QueryTestVariantsRequest) GetPageSize() int32
- func (x *QueryTestVariantsRequest) GetPageToken() string
- func (x *QueryTestVariantsRequest) GetPredicate() *TestVariantPredicate
- func (*QueryTestVariantsRequest) ProtoMessage()
- func (x *QueryTestVariantsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryTestVariantsRequest) Reset()
- func (x *QueryTestVariantsRequest) String() string
- type QueryTestVariantsResponse
- func (*QueryTestVariantsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTestVariantsResponse) GetNextPageToken() string
- func (x *QueryTestVariantsResponse) GetTestVariants() []*TestVariant
- func (*QueryTestVariantsResponse) ProtoMessage()
- func (x *QueryTestVariantsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryTestVariantsResponse) Reset()
- func (x *QueryTestVariantsResponse) String() string
- type TestResultBundle
- type TestVariant
- func (*TestVariant) Descriptor() ([]byte, []int)deprecated
- func (x *TestVariant) GetExonerations() []*v1.TestExoneration
- func (x *TestVariant) GetResults() []*TestResultBundle
- func (x *TestVariant) GetStatus() TestVariantStatus
- func (x *TestVariant) GetTestId() string
- func (x *TestVariant) GetTestMetadata() *v1.TestMetadata
- func (x *TestVariant) GetVariant() *v1.Variant
- func (x *TestVariant) GetVariantHash() string
- func (*TestVariant) ProtoMessage()
- func (x *TestVariant) ProtoReflect() protoreflect.Message
- func (x *TestVariant) Reset()
- func (x *TestVariant) String() string
- type TestVariantPredicate
- func (*TestVariantPredicate) Descriptor() ([]byte, []int)deprecated
- func (x *TestVariantPredicate) GetStatus() TestVariantStatus
- func (*TestVariantPredicate) ProtoMessage()
- func (x *TestVariantPredicate) ProtoReflect() protoreflect.Message
- func (x *TestVariantPredicate) Reset()
- func (x *TestVariantPredicate) String() string
- type TestVariantStatus
- func (TestVariantStatus) Descriptor() protoreflect.EnumDescriptor
- func (x TestVariantStatus) Enum() *TestVariantStatus
- func (TestVariantStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestVariantStatus) Number() protoreflect.EnumNumber
- func (x TestVariantStatus) String() string
- func (TestVariantStatus) Type() protoreflect.EnumType
- type UIClient
- type UIServer
- type UnimplementedUIServer
Constants ¶
This section is empty.
Variables ¶
var ( TestVariantStatus_name = map[int32]string{ 0: "TEST_VARIANT_STATUS_UNSPECIFIED", 10: "UNEXPECTED", 20: "UNEXPECTEDLY_SKIPPED", 30: "FLAKY", 40: "EXONERATED", 50: "EXPECTED", } TestVariantStatus_value = map[string]int32{ "TEST_VARIANT_STATUS_UNSPECIFIED": 0, "UNEXPECTED": 10, "UNEXPECTEDLY_SKIPPED": 20, "FLAKY": 30, "EXONERATED": 40, "EXPECTED": 50, } )
Enum value maps for TestVariantStatus.
var File_go_chromium_org_luci_resultdb_internal_proto_ui_ui_proto protoreflect.FileDescriptor
Functions ¶
func FileDescriptorSet ¶
func FileDescriptorSet() *descriptorpb.FileDescriptorSet
FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.
Will not return nil.
Do NOT modify the returned descriptor.
func RegisterUIServer ¶
Types ¶
type DecoratedUI ¶
type DecoratedUI struct { // Service is the service to decorate. Service UIServer // Prelude is called for each method before forwarding the call to Service. // If Prelude returns an error, then the call is skipped and the error is // processed via the Postlude (if one is defined), or it is returned directly. Prelude func(ctx context.Context, methodName string, req proto.Message) (context.Context, error) // Postlude is called for each method after Service has processed the call, or // after the Prelude has returned an error. This takes the the Service's // response proto (which may be nil) and/or any error. The decorated // service will return the response (possibly mutated) and error that Postlude // returns. Postlude func(ctx context.Context, methodName string, rsp proto.Message, err error) error }
func (*DecoratedUI) QueryTestVariants ¶
func (s *DecoratedUI) QueryTestVariants(ctx context.Context, req *QueryTestVariantsRequest) (rsp *QueryTestVariantsResponse, err error)
type QueryTestVariantsRequest ¶
type QueryTestVariantsRequest struct { // Retrieve test variants included in these invocations, directly or indirectly // (via Invocation.included_invocations). // // Specifying multiple invocations is equivalent to querying one invocation // that includes these. Invocations []string `protobuf:"bytes,2,rep,name=invocations,proto3" json:"invocations,omitempty"` // A test variant must satisfy this predicate. Predicate *TestVariantPredicate `protobuf:"bytes,6,opt,name=predicate,proto3" json:"predicate,omitempty"` // The maximum number of test variants to return. // // The service may return fewer than this value. // If unspecified, at most 100 test variants will be returned. // The maximum value is 1000; values above 1000 will be coerced to 1000. PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous `QueryTestVariants` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `QueryTestVariants` MUST // match the call that provided the page token. PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
A request message for QueryTestVariants RPC. Next id: 7.
func (*QueryTestVariantsRequest) Descriptor
deprecated
func (*QueryTestVariantsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryTestVariantsRequest.ProtoReflect.Descriptor instead.
func (*QueryTestVariantsRequest) GetInvocations ¶
func (x *QueryTestVariantsRequest) GetInvocations() []string
func (*QueryTestVariantsRequest) GetPageSize ¶
func (x *QueryTestVariantsRequest) GetPageSize() int32
func (*QueryTestVariantsRequest) GetPageToken ¶
func (x *QueryTestVariantsRequest) GetPageToken() string
func (*QueryTestVariantsRequest) GetPredicate ¶
func (x *QueryTestVariantsRequest) GetPredicate() *TestVariantPredicate
func (*QueryTestVariantsRequest) ProtoMessage ¶
func (*QueryTestVariantsRequest) ProtoMessage()
func (*QueryTestVariantsRequest) ProtoReflect ¶
func (x *QueryTestVariantsRequest) ProtoReflect() protoreflect.Message
func (*QueryTestVariantsRequest) Reset ¶
func (x *QueryTestVariantsRequest) Reset()
func (*QueryTestVariantsRequest) String ¶
func (x *QueryTestVariantsRequest) String() string
type QueryTestVariantsResponse ¶
type QueryTestVariantsResponse struct { // Matched test variants. // Ordered by TestVariantStatus, test_id, then variant_hash TestVariants []*TestVariant `protobuf:"bytes,1,rep,name=test_variants,json=testVariants,proto3" json:"test_variants,omitempty"` // A token, which can be sent as `page_token` to retrieve the next page. // If this field is omitted, there were no subsequent pages at the time of // request. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
A response message for QueryTestVariants RPC.
func (*QueryTestVariantsResponse) Descriptor
deprecated
func (*QueryTestVariantsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryTestVariantsResponse.ProtoReflect.Descriptor instead.
func (*QueryTestVariantsResponse) GetNextPageToken ¶
func (x *QueryTestVariantsResponse) GetNextPageToken() string
func (*QueryTestVariantsResponse) GetTestVariants ¶
func (x *QueryTestVariantsResponse) GetTestVariants() []*TestVariant
func (*QueryTestVariantsResponse) ProtoMessage ¶
func (*QueryTestVariantsResponse) ProtoMessage()
func (*QueryTestVariantsResponse) ProtoReflect ¶
func (x *QueryTestVariantsResponse) ProtoReflect() protoreflect.Message
func (*QueryTestVariantsResponse) Reset ¶
func (x *QueryTestVariantsResponse) Reset()
func (*QueryTestVariantsResponse) String ¶
func (x *QueryTestVariantsResponse) String() string
type TestResultBundle ¶
type TestResultBundle struct { // Result of the test variant execution. Result *v1.TestResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
Outcomes of an execution of the test variant.
func (*TestResultBundle) Descriptor
deprecated
func (*TestResultBundle) Descriptor() ([]byte, []int)
Deprecated: Use TestResultBundle.ProtoReflect.Descriptor instead.
func (*TestResultBundle) GetResult ¶
func (x *TestResultBundle) GetResult() *v1.TestResult
func (*TestResultBundle) ProtoMessage ¶
func (*TestResultBundle) ProtoMessage()
func (*TestResultBundle) ProtoReflect ¶
func (x *TestResultBundle) ProtoReflect() protoreflect.Message
func (*TestResultBundle) Reset ¶
func (x *TestResultBundle) Reset()
func (*TestResultBundle) String ¶
func (x *TestResultBundle) String() string
type TestVariant ¶
type TestVariant struct { // A unique identifier of the test in a LUCI project. // Regex: ^[[::print::]]{1,256}$ // // Refer to luci.resultdb.v1.TestResult.test_id for details. TestId string `protobuf:"bytes,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"` // Description of one specific way of running the test, // e.g. a specific bucket, builder and a test suite. Variant *v1.Variant `protobuf:"bytes,2,opt,name=variant,proto3" json:"variant,omitempty"` // Hash of the variant. // hex(sha256(sorted(”.join('%s:%s\n' for k, v in variant.items())))). VariantHash string `protobuf:"bytes,3,opt,name=variant_hash,json=variantHash,proto3" json:"variant_hash,omitempty"` // Status of the test variant. Status TestVariantStatus `protobuf:"varint,4,opt,name=status,proto3,enum=luci.resultdb.internal.ui.TestVariantStatus" json:"status,omitempty"` // Outcomes of the test variant. Results []*TestResultBundle `protobuf:"bytes,5,rep,name=results,proto3" json:"results,omitempty"` // Test exonerations if any test variant is exonerated. Exonerations []*v1.TestExoneration `protobuf:"bytes,6,rep,name=exonerations,proto3" json:"exonerations,omitempty"` // Information about the test at the time of its execution. // // All test results of the same test variant should report the same test // metadata. This RPC relies on this rule and returns test metadata from // *arbitrary* result of the test variant. TestMetadata *v1.TestMetadata `protobuf:"bytes,7,opt,name=test_metadata,json=testMetadata,proto3" json:"test_metadata,omitempty"` // contains filtered or unexported fields }
Represents a matching test variant with its outcomes.
func (*TestVariant) Descriptor
deprecated
func (*TestVariant) Descriptor() ([]byte, []int)
Deprecated: Use TestVariant.ProtoReflect.Descriptor instead.
func (*TestVariant) GetExonerations ¶
func (x *TestVariant) GetExonerations() []*v1.TestExoneration
func (*TestVariant) GetResults ¶
func (x *TestVariant) GetResults() []*TestResultBundle
func (*TestVariant) GetStatus ¶
func (x *TestVariant) GetStatus() TestVariantStatus
func (*TestVariant) GetTestId ¶
func (x *TestVariant) GetTestId() string
func (*TestVariant) GetTestMetadata ¶
func (x *TestVariant) GetTestMetadata() *v1.TestMetadata
func (*TestVariant) GetVariant ¶
func (x *TestVariant) GetVariant() *v1.Variant
func (*TestVariant) GetVariantHash ¶
func (x *TestVariant) GetVariantHash() string
func (*TestVariant) ProtoMessage ¶
func (*TestVariant) ProtoMessage()
func (*TestVariant) ProtoReflect ¶
func (x *TestVariant) ProtoReflect() protoreflect.Message
func (*TestVariant) Reset ¶
func (x *TestVariant) Reset()
func (*TestVariant) String ¶
func (x *TestVariant) String() string
type TestVariantPredicate ¶
type TestVariantPredicate struct { // A test variant must have this status. Status TestVariantStatus `protobuf:"varint,1,opt,name=status,proto3,enum=luci.resultdb.internal.ui.TestVariantStatus" json:"status,omitempty"` // contains filtered or unexported fields }
Represents a function TestVariant -> bool. Empty message matches all test variants.
func (*TestVariantPredicate) Descriptor
deprecated
func (*TestVariantPredicate) Descriptor() ([]byte, []int)
Deprecated: Use TestVariantPredicate.ProtoReflect.Descriptor instead.
func (*TestVariantPredicate) GetStatus ¶
func (x *TestVariantPredicate) GetStatus() TestVariantStatus
func (*TestVariantPredicate) ProtoMessage ¶
func (*TestVariantPredicate) ProtoMessage()
func (*TestVariantPredicate) ProtoReflect ¶
func (x *TestVariantPredicate) ProtoReflect() protoreflect.Message
func (*TestVariantPredicate) Reset ¶
func (x *TestVariantPredicate) Reset()
func (*TestVariantPredicate) String ¶
func (x *TestVariantPredicate) String() string
type TestVariantStatus ¶
type TestVariantStatus int32
Status of a test variant.
const ( // a test variant must not have this status. // This is only used when filtering variants. TestVariantStatus_TEST_VARIANT_STATUS_UNSPECIFIED TestVariantStatus = 0 // The test variant has no exonerations, and all results are unexpected. TestVariantStatus_UNEXPECTED TestVariantStatus = 10 // The test variant has no exonerations, and all results are unexpectedly skipped. TestVariantStatus_UNEXPECTEDLY_SKIPPED TestVariantStatus = 20 // The test variant has no exonerations, and has both expected and unexpected // results. TestVariantStatus_FLAKY TestVariantStatus = 30 // The test variant has one or more test exonerations. TestVariantStatus_EXONERATED TestVariantStatus = 40 // The test variant has no exonerations, and all results are expected. TestVariantStatus_EXPECTED TestVariantStatus = 50 )
func (TestVariantStatus) Descriptor ¶
func (TestVariantStatus) Descriptor() protoreflect.EnumDescriptor
func (TestVariantStatus) Enum ¶
func (x TestVariantStatus) Enum() *TestVariantStatus
func (TestVariantStatus) EnumDescriptor
deprecated
func (TestVariantStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestVariantStatus.Descriptor instead.
func (TestVariantStatus) Number ¶
func (x TestVariantStatus) Number() protoreflect.EnumNumber
func (TestVariantStatus) String ¶
func (x TestVariantStatus) String() string
func (TestVariantStatus) Type ¶
func (TestVariantStatus) Type() protoreflect.EnumType
type UIClient ¶
type UIClient interface { // Retrieves test variants from an invocation, recursively. // Supports invocation inclusions. // For displaying test variants in the UI. QueryTestVariants(ctx context.Context, in *QueryTestVariantsRequest, opts ...grpc.CallOption) (*QueryTestVariantsResponse, error) }
UIClient is the client API for UI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUIClient ¶
func NewUIClient(cc grpc.ClientConnInterface) UIClient
func NewUIPRPCClient ¶
type UIServer ¶
type UIServer interface { // Retrieves test variants from an invocation, recursively. // Supports invocation inclusions. // For displaying test variants in the UI. QueryTestVariants(context.Context, *QueryTestVariantsRequest) (*QueryTestVariantsResponse, error) }
UIServer is the server API for UI service.
type UnimplementedUIServer ¶
type UnimplementedUIServer struct { }
UnimplementedUIServer can be embedded to have forward compatible implementations.
func (*UnimplementedUIServer) QueryTestVariants ¶
func (*UnimplementedUIServer) QueryTestVariants(context.Context, *QueryTestVariantsRequest) (*QueryTestVariantsResponse, error)