Documentation ¶
Overview ¶
Package lucinotifypb defines the RPC services of luci-notify and the related message types.
Index ¶
- Variables
- func FileDescriptorSet() *descriptorpb.FileDescriptorSet
- func RegisterAlertsServer(s prpc.Registrar, srv AlertsServer)
- func RegisterTreeCloserServer(s prpc.Registrar, srv TreeCloserServer)
- type Alert
- func (*Alert) Descriptor() ([]byte, []int)deprecated
- func (x *Alert) GetBug() int64
- func (x *Alert) GetEtag() string
- func (x *Alert) GetGerritCl() int64
- func (x *Alert) GetModifyTime() *timestamppb.Timestamp
- func (x *Alert) GetName() string
- func (x *Alert) GetSilenceUntil() int64
- func (*Alert) ProtoMessage()
- func (x *Alert) ProtoReflect() protoreflect.Message
- func (x *Alert) Reset()
- func (x *Alert) String() string
- type AlertsClient
- type AlertsServer
- type BatchGetAlertsRequest
- func (*BatchGetAlertsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetAlertsRequest) GetNames() []string
- func (*BatchGetAlertsRequest) ProtoMessage()
- func (x *BatchGetAlertsRequest) ProtoReflect() protoreflect.Message
- func (x *BatchGetAlertsRequest) Reset()
- func (x *BatchGetAlertsRequest) String() string
- type BatchGetAlertsResponse
- func (*BatchGetAlertsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetAlertsResponse) GetAlerts() []*Alert
- func (*BatchGetAlertsResponse) ProtoMessage()
- func (x *BatchGetAlertsResponse) ProtoReflect() protoreflect.Message
- func (x *BatchGetAlertsResponse) Reset()
- func (x *BatchGetAlertsResponse) String() string
- type BatchUpdateAlertsRequest
- func (*BatchUpdateAlertsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchUpdateAlertsRequest) GetRequests() []*UpdateAlertRequest
- func (*BatchUpdateAlertsRequest) ProtoMessage()
- func (x *BatchUpdateAlertsRequest) ProtoReflect() protoreflect.Message
- func (x *BatchUpdateAlertsRequest) Reset()
- func (x *BatchUpdateAlertsRequest) String() string
- type BatchUpdateAlertsResponse
- func (*BatchUpdateAlertsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchUpdateAlertsResponse) GetAlerts() []*Alert
- func (*BatchUpdateAlertsResponse) ProtoMessage()
- func (x *BatchUpdateAlertsResponse) ProtoReflect() protoreflect.Message
- func (x *BatchUpdateAlertsResponse) Reset()
- func (x *BatchUpdateAlertsResponse) String() string
- type CheckTreeCloserRequest
- func (*CheckTreeCloserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckTreeCloserRequest) GetBucket() string
- func (x *CheckTreeCloserRequest) GetBuilder() string
- func (x *CheckTreeCloserRequest) GetProject() string
- func (x *CheckTreeCloserRequest) GetStep() string
- func (*CheckTreeCloserRequest) ProtoMessage()
- func (x *CheckTreeCloserRequest) ProtoReflect() protoreflect.Message
- func (x *CheckTreeCloserRequest) Reset()
- func (x *CheckTreeCloserRequest) String() string
- type CheckTreeCloserResponse
- func (*CheckTreeCloserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckTreeCloserResponse) GetIsTreeCloser() bool
- func (*CheckTreeCloserResponse) ProtoMessage()
- func (x *CheckTreeCloserResponse) ProtoReflect() protoreflect.Message
- func (x *CheckTreeCloserResponse) Reset()
- func (x *CheckTreeCloserResponse) String() string
- type DecoratedAlerts
- type DecoratedTreeCloser
- type MockTreeCloserClient
- type MockTreeCloserClientMockRecorder
- type MockTreeCloserServer
- type MockTreeCloserServerMockRecorder
- type TreeCloserClient
- type TreeCloserServer
- type UnimplementedAlertsServer
- type UnimplementedTreeCloserServer
- type UpdateAlertRequest
- func (*UpdateAlertRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAlertRequest) GetAlert() *Alert
- func (*UpdateAlertRequest) ProtoMessage()
- func (x *UpdateAlertRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAlertRequest) Reset()
- func (x *UpdateAlertRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_go_chromium_org_luci_luci_notify_api_service_v1_alerts_proto protoreflect.FileDescriptor
var File_go_chromium_org_luci_luci_notify_api_service_v1_rpc_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 RegisterAlertsServer ¶
func RegisterAlertsServer(s prpc.Registrar, srv AlertsServer)
func RegisterTreeCloserServer ¶
func RegisterTreeCloserServer(s prpc.Registrar, srv TreeCloserServer)
Types ¶
type Alert ¶
type Alert struct { // The resource name of this alert. // Format: alerts/{key} Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The buganizer bug ID of the bug associated with this alert. // 0 means the alert is not associated with any bug. Bug int64 `protobuf:"varint,3,opt,name=bug,proto3" json:"bug,omitempty"` // The build id of the builder corresponding to the alert that this alert should be ignored until after completion. // In other words, if the latest_failing_build_id (currently in SOM alerts) == silence_until, this alert should be considered 'silenced'. SilenceUntil int64 `protobuf:"varint,4,opt,name=silence_until,json=silenceUntil,proto3" json:"silence_until,omitempty"` // The Gerrit CL number associated with this alert. // 0 means the alert is not associated with any CL. GerritCl int64 `protobuf:"varint,7,opt,name=gerrit_cl,json=gerritCl,proto3" json:"gerrit_cl,omitempty"` // The time the alert was last modified. // // This is automatically set by the server and cannot be modified explicitly // through RPC. ModifyTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=modify_time,json=modifyTime,proto3" json:"modify_time,omitempty"` // This checksum is computed by the server based on the value of other // fields, and may be sent on update and delete requests to ensure the // client has an up-to-date value before proceeding. // Note that these etags are weak - they are only computed based on mutable // fields. Other fields in the alert may be auto-updated but they will not // affect the etag value. // The etag field is optional on update requests, if not provided // the update will succeed. If provided, the update will only succeed if // the etag is an exact match. Etag string `protobuf:"bytes,6,opt,name=etag,proto3" json:"etag,omitempty"` // contains filtered or unexported fields }
The Status of a tree for an interval of time.
func (*Alert) Descriptor
deprecated
func (*Alert) GetGerritCl ¶
func (*Alert) GetModifyTime ¶
func (x *Alert) GetModifyTime() *timestamppb.Timestamp
func (*Alert) GetSilenceUntil ¶
func (*Alert) ProtoMessage ¶
func (*Alert) ProtoMessage()
func (*Alert) ProtoReflect ¶
func (x *Alert) ProtoReflect() protoreflect.Message
type AlertsClient ¶
type AlertsClient interface { // BatchGetAlerts allows getting a number of alerts by resource name. // If no alert exists by the given name an empty alert will be returned. BatchGetAlerts(ctx context.Context, in *BatchGetAlertsRequest, opts ...grpc.CallOption) (*BatchGetAlertsResponse, error) // BatchUpdateAlerts allows updating the mutable data on a batch of alerts. BatchUpdateAlerts(ctx context.Context, in *BatchUpdateAlertsRequest, opts ...grpc.CallOption) (*BatchUpdateAlertsResponse, error) }
AlertsClient is the client API for Alerts service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAlertsClient ¶
func NewAlertsClient(cc grpc.ClientConnInterface) AlertsClient
func NewAlertsPRPCClient ¶
func NewAlertsPRPCClient(client *prpc.Client) AlertsClient
type AlertsServer ¶
type AlertsServer interface { // BatchGetAlerts allows getting a number of alerts by resource name. // If no alert exists by the given name an empty alert will be returned. BatchGetAlerts(context.Context, *BatchGetAlertsRequest) (*BatchGetAlertsResponse, error) // BatchUpdateAlerts allows updating the mutable data on a batch of alerts. BatchUpdateAlerts(context.Context, *BatchUpdateAlertsRequest) (*BatchUpdateAlertsResponse, error) }
AlertsServer is the server API for Alerts service.
type BatchGetAlertsRequest ¶
type BatchGetAlertsRequest struct { // The resource names of the alerts to get. // // Currently by convention the keys match the keys in sheriff-o-matic, but // this is not a requirement. // // Format: alerts/{key} Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` // contains filtered or unexported fields }
func (*BatchGetAlertsRequest) Descriptor
deprecated
func (*BatchGetAlertsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetAlertsRequest.ProtoReflect.Descriptor instead.
func (*BatchGetAlertsRequest) GetNames ¶
func (x *BatchGetAlertsRequest) GetNames() []string
func (*BatchGetAlertsRequest) ProtoMessage ¶
func (*BatchGetAlertsRequest) ProtoMessage()
func (*BatchGetAlertsRequest) ProtoReflect ¶
func (x *BatchGetAlertsRequest) ProtoReflect() protoreflect.Message
func (*BatchGetAlertsRequest) Reset ¶
func (x *BatchGetAlertsRequest) Reset()
func (*BatchGetAlertsRequest) String ¶
func (x *BatchGetAlertsRequest) String() string
type BatchGetAlertsResponse ¶
type BatchGetAlertsResponse struct { // Alerts requested. // The order matches the order of names in the request. Alerts []*Alert `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts,omitempty"` // contains filtered or unexported fields }
func (*BatchGetAlertsResponse) Descriptor
deprecated
func (*BatchGetAlertsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetAlertsResponse.ProtoReflect.Descriptor instead.
func (*BatchGetAlertsResponse) GetAlerts ¶
func (x *BatchGetAlertsResponse) GetAlerts() []*Alert
func (*BatchGetAlertsResponse) ProtoMessage ¶
func (*BatchGetAlertsResponse) ProtoMessage()
func (*BatchGetAlertsResponse) ProtoReflect ¶
func (x *BatchGetAlertsResponse) ProtoReflect() protoreflect.Message
func (*BatchGetAlertsResponse) Reset ¶
func (x *BatchGetAlertsResponse) Reset()
func (*BatchGetAlertsResponse) String ¶
func (x *BatchGetAlertsResponse) String() string
type BatchUpdateAlertsRequest ¶
type BatchUpdateAlertsRequest struct { // The request messages specifying the alerts to update. // A maximum of 1000 alerts can be modified in a batch. Requests []*UpdateAlertRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` // contains filtered or unexported fields }
func (*BatchUpdateAlertsRequest) Descriptor
deprecated
func (*BatchUpdateAlertsRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateAlertsRequest.ProtoReflect.Descriptor instead.
func (*BatchUpdateAlertsRequest) GetRequests ¶
func (x *BatchUpdateAlertsRequest) GetRequests() []*UpdateAlertRequest
func (*BatchUpdateAlertsRequest) ProtoMessage ¶
func (*BatchUpdateAlertsRequest) ProtoMessage()
func (*BatchUpdateAlertsRequest) ProtoReflect ¶
func (x *BatchUpdateAlertsRequest) ProtoReflect() protoreflect.Message
func (*BatchUpdateAlertsRequest) Reset ¶
func (x *BatchUpdateAlertsRequest) Reset()
func (*BatchUpdateAlertsRequest) String ¶
func (x *BatchUpdateAlertsRequest) String() string
type BatchUpdateAlertsResponse ¶
type BatchUpdateAlertsResponse struct { // Alerts updated. // The order matches the order of names in the request. Alerts []*Alert `protobuf:"bytes,1,rep,name=alerts,proto3" json:"alerts,omitempty"` // contains filtered or unexported fields }
func (*BatchUpdateAlertsResponse) Descriptor
deprecated
func (*BatchUpdateAlertsResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateAlertsResponse.ProtoReflect.Descriptor instead.
func (*BatchUpdateAlertsResponse) GetAlerts ¶
func (x *BatchUpdateAlertsResponse) GetAlerts() []*Alert
func (*BatchUpdateAlertsResponse) ProtoMessage ¶
func (*BatchUpdateAlertsResponse) ProtoMessage()
func (*BatchUpdateAlertsResponse) ProtoReflect ¶
func (x *BatchUpdateAlertsResponse) ProtoReflect() protoreflect.Message
func (*BatchUpdateAlertsResponse) Reset ¶
func (x *BatchUpdateAlertsResponse) Reset()
func (*BatchUpdateAlertsResponse) String ¶
func (x *BatchUpdateAlertsResponse) String() string
type CheckTreeCloserRequest ¶
type CheckTreeCloserRequest struct { // Project of the builder Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // Bucket of the builder Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` // Name of the builder Builder string `protobuf:"bytes,3,opt,name=builder,proto3" json:"builder,omitempty"` // Some tree closers are only close if some particular steps failed. Step string `protobuf:"bytes,4,opt,name=step,proto3" json:"step,omitempty"` // contains filtered or unexported fields }
func (*CheckTreeCloserRequest) Descriptor
deprecated
func (*CheckTreeCloserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckTreeCloserRequest.ProtoReflect.Descriptor instead.
func (*CheckTreeCloserRequest) GetBucket ¶
func (x *CheckTreeCloserRequest) GetBucket() string
func (*CheckTreeCloserRequest) GetBuilder ¶
func (x *CheckTreeCloserRequest) GetBuilder() string
func (*CheckTreeCloserRequest) GetProject ¶
func (x *CheckTreeCloserRequest) GetProject() string
func (*CheckTreeCloserRequest) GetStep ¶
func (x *CheckTreeCloserRequest) GetStep() string
func (*CheckTreeCloserRequest) ProtoMessage ¶
func (*CheckTreeCloserRequest) ProtoMessage()
func (*CheckTreeCloserRequest) ProtoReflect ¶
func (x *CheckTreeCloserRequest) ProtoReflect() protoreflect.Message
func (*CheckTreeCloserRequest) Reset ¶
func (x *CheckTreeCloserRequest) Reset()
func (*CheckTreeCloserRequest) String ¶
func (x *CheckTreeCloserRequest) String() string
type CheckTreeCloserResponse ¶
type CheckTreeCloserResponse struct { // Whether this is a tree closer IsTreeCloser bool `protobuf:"varint,1,opt,name=is_tree_closer,json=isTreeCloser,proto3" json:"is_tree_closer,omitempty"` // contains filtered or unexported fields }
func (*CheckTreeCloserResponse) Descriptor
deprecated
func (*CheckTreeCloserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckTreeCloserResponse.ProtoReflect.Descriptor instead.
func (*CheckTreeCloserResponse) GetIsTreeCloser ¶
func (x *CheckTreeCloserResponse) GetIsTreeCloser() bool
func (*CheckTreeCloserResponse) ProtoMessage ¶
func (*CheckTreeCloserResponse) ProtoMessage()
func (*CheckTreeCloserResponse) ProtoReflect ¶
func (x *CheckTreeCloserResponse) ProtoReflect() protoreflect.Message
func (*CheckTreeCloserResponse) Reset ¶
func (x *CheckTreeCloserResponse) Reset()
func (*CheckTreeCloserResponse) String ¶
func (x *CheckTreeCloserResponse) String() string
type DecoratedAlerts ¶
type DecoratedAlerts struct { // Service is the service to decorate. Service AlertsServer // 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 (*DecoratedAlerts) BatchGetAlerts ¶
func (s *DecoratedAlerts) BatchGetAlerts(ctx context.Context, req *BatchGetAlertsRequest) (rsp *BatchGetAlertsResponse, err error)
func (*DecoratedAlerts) BatchUpdateAlerts ¶
func (s *DecoratedAlerts) BatchUpdateAlerts(ctx context.Context, req *BatchUpdateAlertsRequest) (rsp *BatchUpdateAlertsResponse, err error)
type DecoratedTreeCloser ¶
type DecoratedTreeCloser struct { // Service is the service to decorate. Service TreeCloserServer // 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 (*DecoratedTreeCloser) CheckTreeCloser ¶
func (s *DecoratedTreeCloser) CheckTreeCloser(ctx context.Context, req *CheckTreeCloserRequest) (rsp *CheckTreeCloserResponse, err error)
type MockTreeCloserClient ¶
type MockTreeCloserClient struct {
// contains filtered or unexported fields
}
MockTreeCloserClient is a mock of TreeCloserClient interface.
func NewMockTreeCloserClient ¶
func NewMockTreeCloserClient(ctrl *gomock.Controller) *MockTreeCloserClient
NewMockTreeCloserClient creates a new mock instance.
func (*MockTreeCloserClient) CheckTreeCloser ¶
func (m *MockTreeCloserClient) CheckTreeCloser(ctx context.Context, in *CheckTreeCloserRequest, opts ...grpc.CallOption) (*CheckTreeCloserResponse, error)
CheckTreeCloser mocks base method.
func (*MockTreeCloserClient) EXPECT ¶
func (m *MockTreeCloserClient) EXPECT() *MockTreeCloserClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTreeCloserClientMockRecorder ¶
type MockTreeCloserClientMockRecorder struct {
// contains filtered or unexported fields
}
MockTreeCloserClientMockRecorder is the mock recorder for MockTreeCloserClient.
func (*MockTreeCloserClientMockRecorder) CheckTreeCloser ¶
func (mr *MockTreeCloserClientMockRecorder) CheckTreeCloser(ctx, in interface{}, opts ...interface{}) *gomock.Call
CheckTreeCloser indicates an expected call of CheckTreeCloser.
type MockTreeCloserServer ¶
type MockTreeCloserServer struct {
// contains filtered or unexported fields
}
MockTreeCloserServer is a mock of TreeCloserServer interface.
func NewMockTreeCloserServer ¶
func NewMockTreeCloserServer(ctrl *gomock.Controller) *MockTreeCloserServer
NewMockTreeCloserServer creates a new mock instance.
func (*MockTreeCloserServer) CheckTreeCloser ¶
func (m *MockTreeCloserServer) CheckTreeCloser(arg0 context.Context, arg1 *CheckTreeCloserRequest) (*CheckTreeCloserResponse, error)
CheckTreeCloser mocks base method.
func (*MockTreeCloserServer) EXPECT ¶
func (m *MockTreeCloserServer) EXPECT() *MockTreeCloserServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTreeCloserServerMockRecorder ¶
type MockTreeCloserServerMockRecorder struct {
// contains filtered or unexported fields
}
MockTreeCloserServerMockRecorder is the mock recorder for MockTreeCloserServer.
func (*MockTreeCloserServerMockRecorder) CheckTreeCloser ¶
func (mr *MockTreeCloserServerMockRecorder) CheckTreeCloser(arg0, arg1 interface{}) *gomock.Call
CheckTreeCloser indicates an expected call of CheckTreeCloser.
type TreeCloserClient ¶
type TreeCloserClient interface { // Checks if the builder in CheckTreeCloserRequest is tree-closer or not CheckTreeCloser(ctx context.Context, in *CheckTreeCloserRequest, opts ...grpc.CallOption) (*CheckTreeCloserResponse, error) }
TreeCloserClient is the client API for TreeCloser service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTreeCloserClient ¶
func NewTreeCloserClient(cc grpc.ClientConnInterface) TreeCloserClient
func NewTreeCloserPRPCClient ¶
func NewTreeCloserPRPCClient(client *prpc.Client) TreeCloserClient
type TreeCloserServer ¶
type TreeCloserServer interface { // Checks if the builder in CheckTreeCloserRequest is tree-closer or not CheckTreeCloser(context.Context, *CheckTreeCloserRequest) (*CheckTreeCloserResponse, error) }
TreeCloserServer is the server API for TreeCloser service.
type UnimplementedAlertsServer ¶
type UnimplementedAlertsServer struct { }
UnimplementedAlertsServer can be embedded to have forward compatible implementations.
func (*UnimplementedAlertsServer) BatchGetAlerts ¶
func (*UnimplementedAlertsServer) BatchGetAlerts(context.Context, *BatchGetAlertsRequest) (*BatchGetAlertsResponse, error)
func (*UnimplementedAlertsServer) BatchUpdateAlerts ¶
func (*UnimplementedAlertsServer) BatchUpdateAlerts(context.Context, *BatchUpdateAlertsRequest) (*BatchUpdateAlertsResponse, error)
type UnimplementedTreeCloserServer ¶
type UnimplementedTreeCloserServer struct { }
UnimplementedTreeCloserServer can be embedded to have forward compatible implementations.
func (*UnimplementedTreeCloserServer) CheckTreeCloser ¶
func (*UnimplementedTreeCloserServer) CheckTreeCloser(context.Context, *CheckTreeCloserRequest) (*CheckTreeCloserResponse, error)
type UpdateAlertRequest ¶
type UpdateAlertRequest struct { // The alert to update. Alert *Alert `protobuf:"bytes,1,opt,name=alert,proto3" json:"alert,omitempty"` // contains filtered or unexported fields }
func (*UpdateAlertRequest) Descriptor
deprecated
func (*UpdateAlertRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAlertRequest.ProtoReflect.Descriptor instead.
func (*UpdateAlertRequest) GetAlert ¶
func (x *UpdateAlertRequest) GetAlert() *Alert
func (*UpdateAlertRequest) ProtoMessage ¶
func (*UpdateAlertRequest) ProtoMessage()
func (*UpdateAlertRequest) ProtoReflect ¶
func (x *UpdateAlertRequest) ProtoReflect() protoreflect.Message
func (*UpdateAlertRequest) Reset ¶
func (x *UpdateAlertRequest) Reset()
func (*UpdateAlertRequest) String ¶
func (x *UpdateAlertRequest) String() string