migrationpb

package
v0.0.0-...-a82170c Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package migrationpb contains RPC definitions for the monorail migration service.

Index

Constants

This section is empty.

Variables

View Source
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

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 (*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 (*MigrateProjectResponse_RuleResult) GetMonorailBugId

func (x *MigrateProjectResponse_RuleResult) GetMonorailBugId() string

func (*MigrateProjectResponse_RuleResult) GetRuleId

func (*MigrateProjectResponse_RuleResult) ProtoMessage

func (*MigrateProjectResponse_RuleResult) ProtoMessage()

func (*MigrateProjectResponse_RuleResult) ProtoReflect

func (*MigrateProjectResponse_RuleResult) Reset

func (*MigrateProjectResponse_RuleResult) 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 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

Jump to

Keyboard shortcuts

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