adminpb

package
v0.0.0-...-527d38f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package adminpb defines the LUCI Analysis management interface.

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_luci_analysis_internal_admin_proto_admin_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 RegisterAdminServer

func RegisterAdminServer(s prpc.Registrar, srv AdminServer)

Types

type AdminClient

type AdminClient interface {
	// Initiates backfill of test results in the test_results BigQuery table.
	BackfillTestResults(ctx context.Context, in *BackfillTestResultsRequest, opts ...grpc.CallOption) (*BackfillTestResultsResponse, error)
}

AdminClient is the client API for Admin service.

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

func NewAdminClient

func NewAdminClient(cc grpc.ClientConnInterface) AdminClient

func NewAdminPRPCClient

func NewAdminPRPCClient(client *prpc.Client) AdminClient

type AdminServer

type AdminServer interface {
	// Initiates backfill of test results in the test_results BigQuery table.
	BackfillTestResults(context.Context, *BackfillTestResultsRequest) (*BackfillTestResultsResponse, error)
}

AdminServer is the server API for Admin service.

type BackfillTestResultsRequest

type BackfillTestResultsRequest struct {

	// The first day to backfill (inclusive).
	StartDay *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_day,json=startDay,proto3" json:"start_day,omitempty"`
	// The last day to backfill (exclusive).
	EndDay *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_day,json=endDay,proto3" json:"end_day,omitempty"`
	// contains filtered or unexported fields
}

A request to backfill the test_results BigQuery table.

func (*BackfillTestResultsRequest) Descriptor deprecated

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

Deprecated: Use BackfillTestResultsRequest.ProtoReflect.Descriptor instead.

func (*BackfillTestResultsRequest) GetEndDay

func (*BackfillTestResultsRequest) GetStartDay

func (*BackfillTestResultsRequest) ProtoMessage

func (*BackfillTestResultsRequest) ProtoMessage()

func (*BackfillTestResultsRequest) ProtoReflect

func (*BackfillTestResultsRequest) Reset

func (x *BackfillTestResultsRequest) Reset()

func (*BackfillTestResultsRequest) String

func (x *BackfillTestResultsRequest) String() string

type BackfillTestResultsResponse

type BackfillTestResultsResponse struct {

	// The number of days for which backfill was scheduled.
	DaysScheduled int32 `protobuf:"varint,1,opt,name=days_scheduled,json=daysScheduled,proto3" json:"days_scheduled,omitempty"`
	// contains filtered or unexported fields
}

A response for BackfillTestResults RPC.

func (*BackfillTestResultsResponse) Descriptor deprecated

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

Deprecated: Use BackfillTestResultsResponse.ProtoReflect.Descriptor instead.

func (*BackfillTestResultsResponse) GetDaysScheduled

func (x *BackfillTestResultsResponse) GetDaysScheduled() int32

func (*BackfillTestResultsResponse) ProtoMessage

func (*BackfillTestResultsResponse) ProtoMessage()

func (*BackfillTestResultsResponse) ProtoReflect

func (*BackfillTestResultsResponse) Reset

func (x *BackfillTestResultsResponse) Reset()

func (*BackfillTestResultsResponse) String

func (x *BackfillTestResultsResponse) String() string

type DecoratedAdmin

type DecoratedAdmin struct {
	// Service is the service to decorate.
	Service AdminServer
	// 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 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 (*DecoratedAdmin) BackfillTestResults

func (s *DecoratedAdmin) BackfillTestResults(ctx context.Context, req *BackfillTestResultsRequest) (rsp *BackfillTestResultsResponse, err error)

type UnimplementedAdminServer

type UnimplementedAdminServer struct {
}

UnimplementedAdminServer can be embedded to have forward compatible implementations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL