luci: go.chromium.org/luci/resultdb/sink/proto/v1 Index | Files

package sinkpb

import "go.chromium.org/luci/resultdb/sink/proto/v1"

Index

Package Files

gen.go pb.discovery.go sink.pb.go sinkserver_dec.go test_result.pb.go

Variables

var (
    TestResultFile_Format_name = map[int32]string{
        0:  "LUCI",
        1:  "CHROMIUM_JSON_TEST_RESULTS",
        2:  "GOOGLE_TEST",
    }
    TestResultFile_Format_value = map[string]int32{
        "LUCI":                       0,
        "CHROMIUM_JSON_TEST_RESULTS": 1,
        "GOOGLE_TEST":                2,
    }
)

Enum value maps for TestResultFile_Format.

var File_go_chromium_org_luci_resultdb_sink_proto_v1_sink_proto protoreflect.FileDescriptor
var File_go_chromium_org_luci_resultdb_sink_proto_v1_test_result_proto protoreflect.FileDescriptor

func FileDescriptorSet Uses

func FileDescriptorSet() *descriptor.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 RegisterSinkServer Uses

func RegisterSinkServer(s prpc.Registrar, srv SinkServer)

type Artifact Uses

type Artifact struct {

    // Types that are assignable to Body:
    //	*Artifact_FilePath
    //	*Artifact_Contents
    Body isArtifact_Body `protobuf_oneof:"body"`
    // Equivalent of luci.resultdb.v1.Artifact.content_type.
    ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
    // contains filtered or unexported fields
}

A local equivalent of luci.resultdb.Artifact message in ../../rpc/v1/artifact.proto. See its comments for details. Does not have a name or artifact_id because they are represented by the TestResult.artifacts map key.

func (*Artifact) Descriptor Uses

func (*Artifact) Descriptor() ([]byte, []int)

Deprecated: Use Artifact.ProtoReflect.Descriptor instead.

func (*Artifact) GetBody Uses

func (m *Artifact) GetBody() isArtifact_Body

func (*Artifact) GetContentType Uses

func (x *Artifact) GetContentType() string

func (*Artifact) GetContents Uses

func (x *Artifact) GetContents() []byte

func (*Artifact) GetFilePath Uses

func (x *Artifact) GetFilePath() string

func (*Artifact) ProtoMessage Uses

func (*Artifact) ProtoMessage()

func (*Artifact) ProtoReflect Uses

func (x *Artifact) ProtoReflect() protoreflect.Message

func (*Artifact) Reset Uses

func (x *Artifact) Reset()

func (*Artifact) String Uses

func (x *Artifact) String() string

type Artifact_Contents Uses

type Artifact_Contents struct {
    // Contents of the artifact. Useful when sending a file from a different
    // machine.
    // TODO(nodir, sajjadm): allow sending contents in chunks.
    Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3,oneof"`
}

type Artifact_FilePath Uses

type Artifact_FilePath struct {
    // Absolute path to the artifact file on the same machine as the
    // ResultSink server.
    FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3,oneof"`
}

type DecoratedSink Uses

type DecoratedSink struct {
    // Service is the service to decorate.
    Service SinkServer
    // 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 (*DecoratedSink) ReportTestResults Uses

func (s *DecoratedSink) ReportTestResults(ctx context.Context, req *ReportTestResultsRequest) (rsp *ReportTestResultsResponse, err error)

type ReportTestResultsRequest Uses

type ReportTestResultsRequest struct {

    // Test results to report.
    TestResults []*TestResult `protobuf:"bytes,1,rep,name=test_results,json=testResults,proto3" json:"test_results,omitempty"`
    // contains filtered or unexported fields
}

func (*ReportTestResultsRequest) Descriptor Uses

func (*ReportTestResultsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReportTestResultsRequest.ProtoReflect.Descriptor instead.

func (*ReportTestResultsRequest) GetTestResults Uses

func (x *ReportTestResultsRequest) GetTestResults() []*TestResult

func (*ReportTestResultsRequest) ProtoMessage Uses

func (*ReportTestResultsRequest) ProtoMessage()

func (*ReportTestResultsRequest) ProtoReflect Uses

func (x *ReportTestResultsRequest) ProtoReflect() protoreflect.Message

func (*ReportTestResultsRequest) Reset Uses

func (x *ReportTestResultsRequest) Reset()

func (*ReportTestResultsRequest) String Uses

func (x *ReportTestResultsRequest) String() string

type ReportTestResultsResponse Uses

type ReportTestResultsResponse struct {

    // List of unique identifiers that can be used to link to these results
    // or requested via luci.resultdb.v1.ResultDB service.
    TestResultNames []string `protobuf:"bytes,1,rep,name=test_result_names,json=testResultNames,proto3" json:"test_result_names,omitempty"`
    // contains filtered or unexported fields
}

func (*ReportTestResultsResponse) Descriptor Uses

func (*ReportTestResultsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReportTestResultsResponse.ProtoReflect.Descriptor instead.

func (*ReportTestResultsResponse) GetTestResultNames Uses

func (x *ReportTestResultsResponse) GetTestResultNames() []string

func (*ReportTestResultsResponse) ProtoMessage Uses

func (*ReportTestResultsResponse) ProtoMessage()

func (*ReportTestResultsResponse) ProtoReflect Uses

func (x *ReportTestResultsResponse) ProtoReflect() protoreflect.Message

func (*ReportTestResultsResponse) Reset Uses

func (x *ReportTestResultsResponse) Reset()

func (*ReportTestResultsResponse) String Uses

func (x *ReportTestResultsResponse) String() string

type SinkClient Uses

type SinkClient interface {
    // Reports test results.
    ReportTestResults(ctx context.Context, in *ReportTestResultsRequest, opts ...grpc.CallOption) (*ReportTestResultsResponse, error)
}

SinkClient is the client API for Sink service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSinkClient Uses

func NewSinkClient(cc grpc.ClientConnInterface) SinkClient

func NewSinkPRPCClient Uses

func NewSinkPRPCClient(client *prpc.Client) SinkClient

type SinkServer Uses

type SinkServer interface {
    // Reports test results.
    ReportTestResults(context.Context, *ReportTestResultsRequest) (*ReportTestResultsResponse, error)
}

SinkServer is the server API for Sink service.

type TestResult Uses

type TestResult struct {

    // Equivalent of luci.resultdb.v1.TestResult.TestId.
    TestId string `protobuf:"bytes,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
    // Equivalent of luci.resultdb.v1.TestResult.result_id.
    //
    // If omitted, a random, unique ID is generated..
    ResultId string `protobuf:"bytes,2,opt,name=result_id,json=resultId,proto3" json:"result_id,omitempty"`
    // Equivalent of luci.resultdb.v1.TestResult.expected.
    Expected bool `protobuf:"varint,3,opt,name=expected,proto3" json:"expected,omitempty"`
    // Equivalent of luci.resultdb.v1.TestResult.status.
    Status v1.TestStatus `protobuf:"varint,4,opt,name=status,proto3,enum=luci.resultdb.v1.TestStatus" json:"status,omitempty"`
    // Equivalent of luci.resultdb.v1.TestResult.summary_html.
    SummaryHtml string `protobuf:"bytes,5,opt,name=summary_html,json=summaryHtml,proto3" json:"summary_html,omitempty"`
    // Equivalent of luci.resultdb.v1.TestResult.start_time.
    StartTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
    // Equivalent of luci.resultdb.v1.TestResult.duration.
    Duration *duration.Duration `protobuf:"bytes,7,opt,name=duration,proto3" json:"duration,omitempty"`
    // Equivalent of luci.resultdb.v1.TestResult.tags.
    Tags []*v1.StringPair `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"`
    // Artifacts to upload and associate with this test result.
    // The map key is an artifact id.
    Artifacts map[string]*Artifact `protobuf:"bytes,9,rep,name=artifacts,proto3" json:"artifacts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // Equivalent of luci.resultdb.v1.TestResult.test_location.
    TestLocation *v1.TestLocation `protobuf:"bytes,10,opt,name=test_location,json=testLocation,proto3" json:"test_location,omitempty"`
    // contains filtered or unexported fields
}

A local equivalent of luci.resultdb.TestResult message in ../../v1/test_result.proto. See its comments for details.

func (*TestResult) Descriptor Uses

func (*TestResult) Descriptor() ([]byte, []int)

Deprecated: Use TestResult.ProtoReflect.Descriptor instead.

func (*TestResult) GetArtifacts Uses

func (x *TestResult) GetArtifacts() map[string]*Artifact

func (*TestResult) GetDuration Uses

func (x *TestResult) GetDuration() *duration.Duration

func (*TestResult) GetExpected Uses

func (x *TestResult) GetExpected() bool

func (*TestResult) GetResultId Uses

func (x *TestResult) GetResultId() string

func (*TestResult) GetStartTime Uses

func (x *TestResult) GetStartTime() *timestamp.Timestamp

func (*TestResult) GetStatus Uses

func (x *TestResult) GetStatus() v1.TestStatus

func (*TestResult) GetSummaryHtml Uses

func (x *TestResult) GetSummaryHtml() string

func (*TestResult) GetTags Uses

func (x *TestResult) GetTags() []*v1.StringPair

func (*TestResult) GetTestId Uses

func (x *TestResult) GetTestId() string

func (*TestResult) GetTestLocation Uses

func (x *TestResult) GetTestLocation() *v1.TestLocation

func (*TestResult) ProtoMessage Uses

func (*TestResult) ProtoMessage()

func (*TestResult) ProtoReflect Uses

func (x *TestResult) ProtoReflect() protoreflect.Message

func (*TestResult) Reset Uses

func (x *TestResult) Reset()

func (*TestResult) String Uses

func (x *TestResult) String() string

type TestResultFile Uses

type TestResultFile struct {

    // Absolute OS-native path to the results file on the same machine as the
    // ResultSink server.
    Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    // Format of the file.
    Format TestResultFile_Format `protobuf:"varint,2,opt,name=format,proto3,enum=luci.resultsink.v1.TestResultFile_Format" json:"format,omitempty"`
    // contains filtered or unexported fields
}

A file with test results.

func (*TestResultFile) Descriptor Uses

func (*TestResultFile) Descriptor() ([]byte, []int)

Deprecated: Use TestResultFile.ProtoReflect.Descriptor instead.

func (*TestResultFile) GetFormat Uses

func (x *TestResultFile) GetFormat() TestResultFile_Format

func (*TestResultFile) GetPath Uses

func (x *TestResultFile) GetPath() string

func (*TestResultFile) ProtoMessage Uses

func (*TestResultFile) ProtoMessage()

func (*TestResultFile) ProtoReflect Uses

func (x *TestResultFile) ProtoReflect() protoreflect.Message

func (*TestResultFile) Reset Uses

func (x *TestResultFile) Reset()

func (*TestResultFile) String Uses

func (x *TestResultFile) String() string

type TestResultFile_Format Uses

type TestResultFile_Format int32

A result file format.

const (
    // The file is a sequence of TestResult JSON objects (not a JSON Array).
    // The default format.
    TestResultFile_LUCI TestResultFile_Format = 0
    // Chromium's JSON Test Results format
    // https://chromium.googlesource.com/chromium/src/+/master/docs/testing/json_test_results_format.md
    TestResultFile_CHROMIUM_JSON_TEST_RESULTS TestResultFile_Format = 1
    // GTest format.
    // Not well documented.
    // Implementation:
    // https://cs.chromium.org/chromium/src/base/test/launcher/test_results_tracker.cc
    TestResultFile_GOOGLE_TEST TestResultFile_Format = 2
)

func (TestResultFile_Format) Descriptor Uses

func (TestResultFile_Format) Descriptor() protoreflect.EnumDescriptor

func (TestResultFile_Format) Enum Uses

func (x TestResultFile_Format) Enum() *TestResultFile_Format

func (TestResultFile_Format) EnumDescriptor Uses

func (TestResultFile_Format) EnumDescriptor() ([]byte, []int)

Deprecated: Use TestResultFile_Format.Descriptor instead.

func (TestResultFile_Format) Number Uses

func (x TestResultFile_Format) Number() protoreflect.EnumNumber

func (TestResultFile_Format) String Uses

func (x TestResultFile_Format) String() string

func (TestResultFile_Format) Type Uses

func (TestResultFile_Format) Type() protoreflect.EnumType

type UnimplementedSinkServer Uses

type UnimplementedSinkServer struct {
}

UnimplementedSinkServer can be embedded to have forward compatible implementations.

func (*UnimplementedSinkServer) ReportTestResults Uses

func (*UnimplementedSinkServer) ReportTestResults(context.Context, *ReportTestResultsRequest) (*ReportTestResultsResponse, error)

Package sinkpb imports 15 packages (graph) and is imported by 1 packages. Updated 2020-07-15. Refresh now. Tools for package owners.