Documentation ¶
Overview ¶
Package migrationpb contains RPC definitions for the monorail migration service.
Index ¶
- Variables
- func FileDescriptorSet() *descriptorpb.FileDescriptorSet
- func RegisterMonorailMigrationServer(s prpc.Registrar, srv MonorailMigrationServer)
- type DecoratedMonorailMigration
- type MigrateProjectRequest
- func (*MigrateProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MigrateProjectRequest) GetMaxRules() int64
- func (x *MigrateProjectRequest) GetProject() string
- func (*MigrateProjectRequest) ProtoMessage()
- func (x *MigrateProjectRequest) ProtoReflect() protoreflect.Message
- func (x *MigrateProjectRequest) Reset()
- func (x *MigrateProjectRequest) String() string
- type MigrateProjectResponse
- func (*MigrateProjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MigrateProjectResponse) GetRuleResults() []*MigrateProjectResponse_RuleResult
- func (x *MigrateProjectResponse) GetRulesNotStarted() int64
- func (*MigrateProjectResponse) ProtoMessage()
- func (x *MigrateProjectResponse) ProtoReflect() protoreflect.Message
- func (x *MigrateProjectResponse) Reset()
- func (x *MigrateProjectResponse) String() string
- type MigrateProjectResponse_RuleResult
- func (*MigrateProjectResponse_RuleResult) Descriptor() ([]byte, []int)deprecated
- func (x *MigrateProjectResponse_RuleResult) GetBuganizerBugId() string
- func (x *MigrateProjectResponse_RuleResult) GetError() string
- func (x *MigrateProjectResponse_RuleResult) GetMonorailBugId() string
- func (x *MigrateProjectResponse_RuleResult) GetRuleId() string
- func (*MigrateProjectResponse_RuleResult) ProtoMessage()
- func (x *MigrateProjectResponse_RuleResult) ProtoReflect() protoreflect.Message
- func (x *MigrateProjectResponse_RuleResult) Reset()
- func (x *MigrateProjectResponse_RuleResult) String() string
- type MonorailMigrationClient
- type MonorailMigrationServer
- type UnimplementedMonorailMigrationServer
Constants ¶
This section is empty.
Variables ¶
var File_go_chromium_org_luci_analysis_internal_bugs_monorail_migration_proto_migration_service_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 RegisterMonorailMigrationServer ¶
func RegisterMonorailMigrationServer(s prpc.Registrar, srv MonorailMigrationServer)
Types ¶
type DecoratedMonorailMigration ¶
type DecoratedMonorailMigration struct { // Service is the service to decorate. Service MonorailMigrationServer // 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 (*DecoratedMonorailMigration) MigrateProject ¶
func (s *DecoratedMonorailMigration) MigrateProject(ctx context.Context, req *MigrateProjectRequest) (rsp *MigrateProjectResponse, err error)
type MigrateProjectRequest ¶
type MigrateProjectRequest struct { // The LUCI Project to migrate. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // The maximum number of rules to process in one request. This allows // migration to be validated on a small number of rules before migrating all. // If unset, no rules are migrated. MaxRules int64 `protobuf:"varint,2,opt,name=max_rules,json=maxRules,proto3" json:"max_rules,omitempty"` // contains filtered or unexported fields }
Request used to migrate a project's rules from monorail to buganizer.
func (*MigrateProjectRequest) Descriptor
deprecated
func (*MigrateProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use MigrateProjectRequest.ProtoReflect.Descriptor instead.
func (*MigrateProjectRequest) GetMaxRules ¶
func (x *MigrateProjectRequest) GetMaxRules() int64
func (*MigrateProjectRequest) GetProject ¶
func (x *MigrateProjectRequest) GetProject() string
func (*MigrateProjectRequest) ProtoMessage ¶
func (*MigrateProjectRequest) ProtoMessage()
func (*MigrateProjectRequest) ProtoReflect ¶
func (x *MigrateProjectRequest) ProtoReflect() protoreflect.Message
func (*MigrateProjectRequest) Reset ¶
func (x *MigrateProjectRequest) Reset()
func (*MigrateProjectRequest) String ¶
func (x *MigrateProjectRequest) String() string
type MigrateProjectResponse ¶
type MigrateProjectResponse struct { // The number of rules which migration was attempted due to nearing request timeout. RulesNotStarted int64 `protobuf:"varint,1,opt,name=rules_not_started,json=rulesNotStarted,proto3" json:"rules_not_started,omitempty"` // The results of rules for which a migration was attempted. RuleResults []*MigrateProjectResponse_RuleResult `protobuf:"bytes,2,rep,name=rule_results,json=ruleResults,proto3" json:"rule_results,omitempty"` // contains filtered or unexported fields }
Response of creating a sample issue.
func (*MigrateProjectResponse) Descriptor
deprecated
func (*MigrateProjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use MigrateProjectResponse.ProtoReflect.Descriptor instead.
func (*MigrateProjectResponse) GetRuleResults ¶
func (x *MigrateProjectResponse) GetRuleResults() []*MigrateProjectResponse_RuleResult
func (*MigrateProjectResponse) GetRulesNotStarted ¶
func (x *MigrateProjectResponse) GetRulesNotStarted() int64
func (*MigrateProjectResponse) ProtoMessage ¶
func (*MigrateProjectResponse) ProtoMessage()
func (*MigrateProjectResponse) ProtoReflect ¶
func (x *MigrateProjectResponse) ProtoReflect() protoreflect.Message
func (*MigrateProjectResponse) Reset ¶
func (x *MigrateProjectResponse) Reset()
func (*MigrateProjectResponse) String ¶
func (x *MigrateProjectResponse) String() string
type MigrateProjectResponse_RuleResult ¶
type MigrateProjectResponse_RuleResult struct { // The identifier of the rule to be migrated. RuleId string `protobuf:"bytes,1,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"` // The identifier of the monorail bug. MonorailBugId string `protobuf:"bytes,2,opt,name=monorail_bug_id,json=monorailBugId,proto3" json:"monorail_bug_id,omitempty"` // The identifier of the buganizer bug it was to be migrated to. BuganizerBugId string `protobuf:"bytes,3,opt,name=buganizer_bug_id,json=buganizerBugId,proto3" json:"buganizer_bug_id,omitempty"` // The error (if any) migrating the rule. Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*MigrateProjectResponse_RuleResult) Descriptor
deprecated
func (*MigrateProjectResponse_RuleResult) Descriptor() ([]byte, []int)
Deprecated: Use MigrateProjectResponse_RuleResult.ProtoReflect.Descriptor instead.
func (*MigrateProjectResponse_RuleResult) GetBuganizerBugId ¶
func (x *MigrateProjectResponse_RuleResult) GetBuganizerBugId() string
func (*MigrateProjectResponse_RuleResult) GetError ¶
func (x *MigrateProjectResponse_RuleResult) GetError() string
func (*MigrateProjectResponse_RuleResult) GetMonorailBugId ¶
func (x *MigrateProjectResponse_RuleResult) GetMonorailBugId() string
func (*MigrateProjectResponse_RuleResult) GetRuleId ¶
func (x *MigrateProjectResponse_RuleResult) GetRuleId() string
func (*MigrateProjectResponse_RuleResult) ProtoMessage ¶
func (*MigrateProjectResponse_RuleResult) ProtoMessage()
func (*MigrateProjectResponse_RuleResult) ProtoReflect ¶
func (x *MigrateProjectResponse_RuleResult) ProtoReflect() protoreflect.Message
func (*MigrateProjectResponse_RuleResult) Reset ¶
func (x *MigrateProjectResponse_RuleResult) Reset()
func (*MigrateProjectResponse_RuleResult) String ¶
func (x *MigrateProjectResponse_RuleResult) String() string
type MonorailMigrationClient ¶
type MonorailMigrationClient interface { // MigrateProject migrates a project's failure association rules from // using monorail bugs to using buganizer bugs. The buganizer bug // corresponding to a monorail bug is as returned by monorail. MigrateProject(ctx context.Context, in *MigrateProjectRequest, opts ...grpc.CallOption) (*MigrateProjectResponse, error) }
MonorailMigrationClient is the client API for MonorailMigration service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMonorailMigrationClient ¶
func NewMonorailMigrationClient(cc grpc.ClientConnInterface) MonorailMigrationClient
func NewMonorailMigrationPRPCClient ¶
func NewMonorailMigrationPRPCClient(client *prpc.Client) MonorailMigrationClient
type MonorailMigrationServer ¶
type MonorailMigrationServer interface { // MigrateProject migrates a project's failure association rules from // using monorail bugs to using buganizer bugs. The buganizer bug // corresponding to a monorail bug is as returned by monorail. MigrateProject(context.Context, *MigrateProjectRequest) (*MigrateProjectResponse, error) }
MonorailMigrationServer is the server API for MonorailMigration service.
type UnimplementedMonorailMigrationServer ¶
type UnimplementedMonorailMigrationServer struct { }
UnimplementedMonorailMigrationServer can be embedded to have forward compatible implementations.
func (*UnimplementedMonorailMigrationServer) MigrateProject ¶
func (*UnimplementedMonorailMigrationServer) MigrateProject(context.Context, *MigrateProjectRequest) (*MigrateProjectResponse, error)