Documentation
¶
Overview ¶
Package monorail implements Monorail client.
Package monorail is a generated GoMock package.
Index ¶
- Constants
- Variables
- func FileDescriptorSet() *descriptorpb.FileDescriptorSet
- func IssueURL(host, project string, id int32) string
- func RegisterMonorailServer(s prpc.Registrar, srv MonorailServer)
- type AtomPerson
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetAuthor() *AtomPerson
- func (x *Comment) GetContent() string
- func (x *Comment) GetDeletedBy() *AtomPerson
- func (x *Comment) GetId() int32
- func (x *Comment) GetIsDescription() bool
- func (x *Comment) GetPublished() string
- func (x *Comment) GetUpdates() *Update
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type ErrorMessage
- func (*ErrorMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorMessage) GetCode() int32
- func (x *ErrorMessage) GetMessage() string
- func (x *ErrorMessage) GetReason() string
- func (*ErrorMessage) ProtoMessage()
- func (x *ErrorMessage) ProtoReflect() protoreflect.Message
- func (x *ErrorMessage) Reset()
- func (x *ErrorMessage) String() string
- type GetIssueRequest
- type InsertCommentRequest
- func (*InsertCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InsertCommentRequest) GetComment() *InsertCommentRequest_Comment
- func (x *InsertCommentRequest) GetIssue() *IssueRef
- func (x *InsertCommentRequest) GetSendEmail() bool
- func (*InsertCommentRequest) ProtoMessage()
- func (x *InsertCommentRequest) ProtoReflect() protoreflect.Message
- func (x *InsertCommentRequest) Reset()
- func (x *InsertCommentRequest) String() string
- type InsertCommentRequest_Comment
- func (*InsertCommentRequest_Comment) Descriptor() ([]byte, []int)deprecated
- func (x *InsertCommentRequest_Comment) GetAuthor() *AtomPerson
- func (x *InsertCommentRequest_Comment) GetContent() string
- func (x *InsertCommentRequest_Comment) GetUpdates() *Update
- func (*InsertCommentRequest_Comment) ProtoMessage()
- func (x *InsertCommentRequest_Comment) ProtoReflect() protoreflect.Message
- func (x *InsertCommentRequest_Comment) Reset()
- func (x *InsertCommentRequest_Comment) String() string
- type InsertCommentResponse
- type InsertIssueRequest
- func (*InsertIssueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InsertIssueRequest) GetIssue() *Issue
- func (x *InsertIssueRequest) GetSendEmail() bool
- func (*InsertIssueRequest) ProtoMessage()
- func (x *InsertIssueRequest) ProtoReflect() protoreflect.Message
- func (x *InsertIssueRequest) Reset()
- func (x *InsertIssueRequest) String() string
- func (i *InsertIssueRequest) Validate() error
- type InsertIssueResponse
- func (*InsertIssueResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InsertIssueResponse) GetIssue() *Issue
- func (*InsertIssueResponse) ProtoMessage()
- func (x *InsertIssueResponse) ProtoReflect() protoreflect.Message
- func (x *InsertIssueResponse) Reset()
- func (x *InsertIssueResponse) String() string
- type Issue
- func (*Issue) Descriptor() ([]byte, []int)deprecated
- func (i *Issue) FindCC(name string) *AtomPerson
- func (x *Issue) GetAuthor() *AtomPerson
- func (x *Issue) GetBlockedOn() []*IssueRef
- func (x *Issue) GetCc() []*AtomPerson
- func (x *Issue) GetComponents() []string
- func (x *Issue) GetDescription() string
- func (x *Issue) GetId() int32
- func (x *Issue) GetLabels() []string
- func (x *Issue) GetOwner() *AtomPerson
- func (x *Issue) GetProjectId() string
- func (x *Issue) GetStatus() string
- func (x *Issue) GetSummary() string
- func (x *Issue) GetUpdated() string
- func (*Issue) ProtoMessage()
- func (x *Issue) ProtoReflect() protoreflect.Message
- func (x *Issue) Reset()
- func (x *Issue) String() string
- func (i *Issue) Validate() error
- type IssueRef
- func (*IssueRef) Descriptor() ([]byte, []int)deprecated
- func (x *IssueRef) GetIssueId() int32
- func (x *IssueRef) GetProjectId() string
- func (*IssueRef) ProtoMessage()
- func (x *IssueRef) ProtoReflect() protoreflect.Message
- func (x *IssueRef) Reset()
- func (x *IssueRef) String() string
- func (i *IssueRef) Validate() error
- type IssuesListRequest
- func (*IssuesListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IssuesListRequest) GetAdditionalProject() []string
- func (x *IssuesListRequest) GetCan() IssuesListRequest_CannedQuery
- func (x *IssuesListRequest) GetLabel() string
- func (x *IssuesListRequest) GetMaxResults() int32
- func (x *IssuesListRequest) GetOwner() string
- func (x *IssuesListRequest) GetProjectId() string
- func (x *IssuesListRequest) GetPublishedMax() int64
- func (x *IssuesListRequest) GetPublishedMin() int64
- func (x *IssuesListRequest) GetQ() string
- func (x *IssuesListRequest) GetSort() string
- func (x *IssuesListRequest) GetStartIndex() int32
- func (x *IssuesListRequest) GetStatus() string
- func (x *IssuesListRequest) GetUpdatedMax() int64
- func (x *IssuesListRequest) GetUpdatedMin() int64
- func (*IssuesListRequest) ProtoMessage()
- func (x *IssuesListRequest) ProtoReflect() protoreflect.Message
- func (x *IssuesListRequest) Reset()
- func (x *IssuesListRequest) String() string
- type IssuesListRequest_CannedQuery
- func (IssuesListRequest_CannedQuery) Descriptor() protoreflect.EnumDescriptor
- func (x IssuesListRequest_CannedQuery) Enum() *IssuesListRequest_CannedQuery
- func (IssuesListRequest_CannedQuery) EnumDescriptor() ([]byte, []int)deprecated
- func (x IssuesListRequest_CannedQuery) Number() protoreflect.EnumNumber
- func (x IssuesListRequest_CannedQuery) String() string
- func (IssuesListRequest_CannedQuery) Type() protoreflect.EnumType
- type IssuesListResponse
- func (*IssuesListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IssuesListResponse) GetError() *ErrorMessage
- func (x *IssuesListResponse) GetItems() []*Issue
- func (x *IssuesListResponse) GetTotalResults() int32
- func (*IssuesListResponse) ProtoMessage()
- func (x *IssuesListResponse) ProtoReflect() protoreflect.Message
- func (x *IssuesListResponse) Reset()
- func (x *IssuesListResponse) String() string
- type ListCommentsRequest
- func (*ListCommentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentsRequest) GetIssue() *IssueRef
- func (x *ListCommentsRequest) GetMaxResults() int32
- func (x *ListCommentsRequest) GetStartIndex() int32
- func (*ListCommentsRequest) ProtoMessage()
- func (x *ListCommentsRequest) ProtoReflect() protoreflect.Message
- func (x *ListCommentsRequest) Reset()
- func (x *ListCommentsRequest) String() string
- func (l *ListCommentsRequest) Validate() error
- type ListCommentsResponse
- func (*ListCommentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommentsResponse) GetError() *ErrorMessage
- func (x *ListCommentsResponse) GetItems() []*Comment
- func (x *ListCommentsResponse) GetTotalResults() int32
- func (*ListCommentsResponse) ProtoMessage()
- func (x *ListCommentsResponse) ProtoReflect() protoreflect.Message
- func (x *ListCommentsResponse) Reset()
- func (x *ListCommentsResponse) String() string
- type MockMonorailClient
- func (m *MockMonorailClient) EXPECT() *MockMonorailClientMockRecorder
- func (m *MockMonorailClient) InsertComment(ctx context.Context, in *InsertCommentRequest, opts ...grpc.CallOption) (*InsertCommentResponse, error)
- func (m *MockMonorailClient) InsertIssue(ctx context.Context, in *InsertIssueRequest, opts ...grpc.CallOption) (*InsertIssueResponse, error)
- func (m *MockMonorailClient) IssuesList(ctx context.Context, in *IssuesListRequest, opts ...grpc.CallOption) (*IssuesListResponse, error)
- type MockMonorailClientMockRecorder
- func (mr *MockMonorailClientMockRecorder) InsertComment(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockMonorailClientMockRecorder) InsertIssue(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockMonorailClientMockRecorder) IssuesList(ctx, in interface{}, opts ...interface{}) *gomock.Call
- type MockMonorailServer
- func (m *MockMonorailServer) EXPECT() *MockMonorailServerMockRecorder
- func (m *MockMonorailServer) InsertComment(arg0 context.Context, arg1 *InsertCommentRequest) (*InsertCommentResponse, error)
- func (m *MockMonorailServer) InsertIssue(arg0 context.Context, arg1 *InsertIssueRequest) (*InsertIssueResponse, error)
- func (m *MockMonorailServer) IssuesList(arg0 context.Context, arg1 *IssuesListRequest) (*IssuesListResponse, error)
- type MockMonorailServerMockRecorder
- type MonorailClient
- type MonorailServer
- type UnimplementedMonorailServer
- func (*UnimplementedMonorailServer) GetIssue(context.Context, *GetIssueRequest) (*Issue, error)
- func (*UnimplementedMonorailServer) InsertComment(context.Context, *InsertCommentRequest) (*InsertCommentResponse, error)
- func (*UnimplementedMonorailServer) InsertIssue(context.Context, *InsertIssueRequest) (*InsertIssueResponse, error)
- func (*UnimplementedMonorailServer) IssuesList(context.Context, *IssuesListRequest) (*IssuesListResponse, error)
- func (*UnimplementedMonorailServer) ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error)
- type Update
- func (*Update) Descriptor() ([]byte, []int)deprecated
- func (x *Update) GetIsDescription() bool
- func (x *Update) GetLabels() []string
- func (x *Update) GetStatus() string
- func (*Update) ProtoMessage()
- func (x *Update) ProtoReflect() protoreflect.Message
- func (x *Update) Reset()
- func (x *Update) String() string
Constants ¶
const ( // Unconrimed means the issue is new, has been not verified or reproduced.. StatusUnconfirmed = "Unconfirmed" // Untriaged means the issue is confirmed, not reviews for priority of assignment. StatusUntriaged = "Untriaged" // Available means the issue is triaged, but no owner assigned. StatusAvailable = "Available" // Assigned means the issue is assigned. StatusAssigned = "Assigned" // Started means the work in progress.. StatusStarted = "Started" // ExternalDependency means the issue requires action from a third party. StatusExternalDependency = "ExternalDependency" // Fixed means work completed, needs verification StatusFixed = "Fixed" // Verified means test or reporter verified that the fix works StatusVerified = "Verified" // Duplicate means same root cause as another issue StatusDuplicate = "Duplicate" // WontFix means cannot reproduce, works as intended, invalid or absolete. StatusWontFix = "WontFix" // Archived means old issue with no activity. StatusArchived = "Archived" )
Standard issue statuses.
const AuthScope = "https://www.googleapis.com/auth/userinfo.email"
AuthScope is OAuth 2.0 auth scope used by Monorail.
const LabelRestrictViewGoogle = "Restrict-View-Google"
LabelRestrictViewGoogle specifies that an issue must be visible to googlers only.
Variables ¶
var ( IssuesListRequest_CannedQuery_name = map[int32]string{ 0: "ALL", 1: "NEW", 2: "OPEN", 3: "OWNED", 4: "REPORTED", 5: "STARRED", 6: "TO_VERIFY", } IssuesListRequest_CannedQuery_value = map[string]int32{ "ALL": 0, "NEW": 1, "OPEN": 2, "OWNED": 3, "REPORTED": 4, "STARRED": 5, "TO_VERIFY": 6, } )
Enum value maps for IssuesListRequest_CannedQuery.
var File_go_chromium_org_infra_monorail_monorail_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 RegisterMonorailServer ¶
func RegisterMonorailServer(s prpc.Registrar, srv MonorailServer)
Types ¶
type AtomPerson ¶
type AtomPerson struct { // User email. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Identifies a Monorail user.
func (*AtomPerson) Descriptor
deprecated
func (*AtomPerson) Descriptor() ([]byte, []int)
Deprecated: Use AtomPerson.ProtoReflect.Descriptor instead.
func (*AtomPerson) GetName ¶
func (x *AtomPerson) GetName() string
func (*AtomPerson) ProtoMessage ¶
func (*AtomPerson) ProtoMessage()
func (*AtomPerson) ProtoReflect ¶
func (x *AtomPerson) ProtoReflect() protoreflect.Message
func (*AtomPerson) Reset ¶
func (x *AtomPerson) Reset()
func (*AtomPerson) String ¶
func (x *AtomPerson) String() string
func (*AtomPerson) Validate ¶
func (a *AtomPerson) Validate() error
Validate checks the message for errors.
type Comment ¶
type Comment struct { // Who authored the comment. Author *AtomPerson `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` // Content of the comment. Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // If the comment has been deleted, who deleted it. DeletedBy *AtomPerson `protobuf:"bytes,5,opt,name=deletedBy,proto3" json:"deletedBy,omitempty"` // Comment ID, scoped to its parent issue. Id int32 `protobuf:"varint,6,opt,name=id,proto3" json:"id,omitempty"` // Datetime of when this comment was published. Published string `protobuf:"bytes,7,opt,name=published,proto3" json:"published,omitempty"` // Updates made to the issue in this comment. Updates *Update `protobuf:"bytes,8,opt,name=updates,proto3" json:"updates,omitempty"` // If true, this comment is actually an issue description. IsDescription bool `protobuf:"varint,10,opt,name=is_description,json=isDescription,proto3" json:"is_description,omitempty"` // contains filtered or unexported fields }
Comment represents monorail comment. This field is partial. Derived from `IssueCommentWrapper` type in api_pb2_v1.py.
func (*Comment) Descriptor
deprecated
func (*Comment) GetAuthor ¶
func (x *Comment) GetAuthor() *AtomPerson
func (*Comment) GetContent ¶
func (*Comment) GetDeletedBy ¶
func (x *Comment) GetDeletedBy() *AtomPerson
func (*Comment) GetIsDescription ¶
func (*Comment) GetPublished ¶
func (*Comment) GetUpdates ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type ErrorMessage ¶
type ErrorMessage struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ErrorMessage) Descriptor
deprecated
func (*ErrorMessage) Descriptor() ([]byte, []int)
Deprecated: Use ErrorMessage.ProtoReflect.Descriptor instead.
func (*ErrorMessage) GetCode ¶
func (x *ErrorMessage) GetCode() int32
func (*ErrorMessage) GetMessage ¶
func (x *ErrorMessage) GetMessage() string
func (*ErrorMessage) GetReason ¶
func (x *ErrorMessage) GetReason() string
func (*ErrorMessage) ProtoMessage ¶
func (*ErrorMessage) ProtoMessage()
func (*ErrorMessage) ProtoReflect ¶
func (x *ErrorMessage) ProtoReflect() protoreflect.Message
func (*ErrorMessage) Reset ¶
func (x *ErrorMessage) Reset()
func (*ErrorMessage) String ¶
func (x *ErrorMessage) String() string
type GetIssueRequest ¶
type GetIssueRequest struct { Issue *IssueRef `protobuf:"bytes,1,opt,name=issue,proto3" json:"issue,omitempty"` // contains filtered or unexported fields }
func (*GetIssueRequest) Descriptor
deprecated
func (*GetIssueRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetIssueRequest.ProtoReflect.Descriptor instead.
func (*GetIssueRequest) GetIssue ¶
func (x *GetIssueRequest) GetIssue() *IssueRef
func (*GetIssueRequest) ProtoMessage ¶
func (*GetIssueRequest) ProtoMessage()
func (*GetIssueRequest) ProtoReflect ¶
func (x *GetIssueRequest) ProtoReflect() protoreflect.Message
func (*GetIssueRequest) Reset ¶
func (x *GetIssueRequest) Reset()
func (*GetIssueRequest) String ¶
func (x *GetIssueRequest) String() string
type InsertCommentRequest ¶
type InsertCommentRequest struct { // Definition of the comment. Comment *InsertCommentRequest_Comment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment,omitempty"` // The reference to post the comment to. Issue *IssueRef `protobuf:"bytes,2,opt,name=issue,proto3" json:"issue,omitempty"` // SendEmail specifies whether an email must be sent. SendEmail bool `protobuf:"varint,3,opt,name=sendEmail,proto3" json:"sendEmail,omitempty"` // contains filtered or unexported fields }
Request for Monorail.InsertComment()
func (*InsertCommentRequest) Descriptor
deprecated
func (*InsertCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use InsertCommentRequest.ProtoReflect.Descriptor instead.
func (*InsertCommentRequest) GetComment ¶
func (x *InsertCommentRequest) GetComment() *InsertCommentRequest_Comment
func (*InsertCommentRequest) GetIssue ¶
func (x *InsertCommentRequest) GetIssue() *IssueRef
func (*InsertCommentRequest) GetSendEmail ¶
func (x *InsertCommentRequest) GetSendEmail() bool
func (*InsertCommentRequest) ProtoMessage ¶
func (*InsertCommentRequest) ProtoMessage()
func (*InsertCommentRequest) ProtoReflect ¶
func (x *InsertCommentRequest) ProtoReflect() protoreflect.Message
func (*InsertCommentRequest) Reset ¶
func (x *InsertCommentRequest) Reset()
func (*InsertCommentRequest) String ¶
func (x *InsertCommentRequest) String() string
type InsertCommentRequest_Comment ¶
type InsertCommentRequest_Comment struct { Author *AtomPerson `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` Updates *Update `protobuf:"bytes,8,opt,name=updates,proto3" json:"updates,omitempty"` // contains filtered or unexported fields }
Defines the comment. This message is partial. Derived from IssueCommentWrapper type in api_pb2_v1.py.
func (*InsertCommentRequest_Comment) Descriptor
deprecated
func (*InsertCommentRequest_Comment) Descriptor() ([]byte, []int)
Deprecated: Use InsertCommentRequest_Comment.ProtoReflect.Descriptor instead.
func (*InsertCommentRequest_Comment) GetAuthor ¶
func (x *InsertCommentRequest_Comment) GetAuthor() *AtomPerson
func (*InsertCommentRequest_Comment) GetContent ¶
func (x *InsertCommentRequest_Comment) GetContent() string
func (*InsertCommentRequest_Comment) GetUpdates ¶
func (x *InsertCommentRequest_Comment) GetUpdates() *Update
func (*InsertCommentRequest_Comment) ProtoMessage ¶
func (*InsertCommentRequest_Comment) ProtoMessage()
func (*InsertCommentRequest_Comment) ProtoReflect ¶
func (x *InsertCommentRequest_Comment) ProtoReflect() protoreflect.Message
func (*InsertCommentRequest_Comment) Reset ¶
func (x *InsertCommentRequest_Comment) Reset()
func (*InsertCommentRequest_Comment) String ¶
func (x *InsertCommentRequest_Comment) String() string
type InsertCommentResponse ¶
type InsertCommentResponse struct {
// contains filtered or unexported fields
}
func (*InsertCommentResponse) Descriptor
deprecated
func (*InsertCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use InsertCommentResponse.ProtoReflect.Descriptor instead.
func (*InsertCommentResponse) ProtoMessage ¶
func (*InsertCommentResponse) ProtoMessage()
func (*InsertCommentResponse) ProtoReflect ¶
func (x *InsertCommentResponse) ProtoReflect() protoreflect.Message
func (*InsertCommentResponse) Reset ¶
func (x *InsertCommentResponse) Reset()
func (*InsertCommentResponse) String ¶
func (x *InsertCommentResponse) String() string
type InsertIssueRequest ¶
type InsertIssueRequest struct { // Definition of the issue. // issue.id must be empty. Issue *Issue `protobuf:"bytes,2,opt,name=issue,proto3" json:"issue,omitempty"` // Whether to send email to participants. SendEmail bool `protobuf:"varint,3,opt,name=sendEmail,proto3" json:"sendEmail,omitempty"` // contains filtered or unexported fields }
Request for Monorail.InsertIssue().
func (*InsertIssueRequest) Descriptor
deprecated
func (*InsertIssueRequest) Descriptor() ([]byte, []int)
Deprecated: Use InsertIssueRequest.ProtoReflect.Descriptor instead.
func (*InsertIssueRequest) GetIssue ¶
func (x *InsertIssueRequest) GetIssue() *Issue
func (*InsertIssueRequest) GetSendEmail ¶
func (x *InsertIssueRequest) GetSendEmail() bool
func (*InsertIssueRequest) ProtoMessage ¶
func (*InsertIssueRequest) ProtoMessage()
func (*InsertIssueRequest) ProtoReflect ¶
func (x *InsertIssueRequest) ProtoReflect() protoreflect.Message
func (*InsertIssueRequest) Reset ¶
func (x *InsertIssueRequest) Reset()
func (*InsertIssueRequest) String ¶
func (x *InsertIssueRequest) String() string
func (*InsertIssueRequest) Validate ¶
func (i *InsertIssueRequest) Validate() error
Validate checks the message for errors.
type InsertIssueResponse ¶
type InsertIssueResponse struct { // Created issue. Issue *Issue `protobuf:"bytes,1,opt,name=issue,proto3" json:"issue,omitempty"` // contains filtered or unexported fields }
Response for Monorail.InsertIssue()
func (*InsertIssueResponse) Descriptor
deprecated
func (*InsertIssueResponse) Descriptor() ([]byte, []int)
Deprecated: Use InsertIssueResponse.ProtoReflect.Descriptor instead.
func (*InsertIssueResponse) GetIssue ¶
func (x *InsertIssueResponse) GetIssue() *Issue
func (*InsertIssueResponse) ProtoMessage ¶
func (*InsertIssueResponse) ProtoMessage()
func (*InsertIssueResponse) ProtoReflect ¶
func (x *InsertIssueResponse) ProtoReflect() protoreflect.Message
func (*InsertIssueResponse) Reset ¶
func (x *InsertIssueResponse) Reset()
func (*InsertIssueResponse) String ¶
func (x *InsertIssueResponse) String() string
type Issue ¶
type Issue struct { // Reporter of the issue. Author *AtomPerson `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"` // Issues that must be fixed before this one can be fixed. BlockedOn []*IssueRef `protobuf:"bytes,2,rep,name=blockedOn,proto3" json:"blockedOn,omitempty"` // People participating in the issue discussion. Cc []*AtomPerson `protobuf:"bytes,6,rep,name=cc,proto3" json:"cc,omitempty"` // The text body of the issue. Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` // Identifier of the issue, unique within the appengine app. Id int32 `protobuf:"varint,9,opt,name=id,proto3" json:"id,omitempty"` // Monorail components for this issue. Components []string `protobuf:"bytes,10,rep,name=components,proto3" json:"components,omitempty"` // Arbitrary indexed strings visible to users, // usually of form "Key-Value" or "Key-Value-SubValue", Labels []string `protobuf:"bytes,11,rep,name=labels,proto3" json:"labels,omitempty"` // Who is currently responsible for closing the issue. Owner *AtomPerson `protobuf:"bytes,12,opt,name=owner,proto3" json:"owner,omitempty"` // Current status of issue. Standard values: // // Open statuses: // "Unconrimed" - New, has been not verified or reproduced. // "Untriaged" - Confirmed, not reviews for priority of assignment // "Available" - Triaged, but no owner assigned // "Started" - Work in progress. // "ExternalDependency" - Requires action from a third party // Closed statuses: // "Fixed" - Work completed, needs verification // "Verified" - Test or reporter verified that the fix works // "Duplicate" - Same root cause as another issue // "WontFix" - Cannot reproduce, works as intended, invalid or absolete. // "Archived" - Old issue with no activity. Status string `protobuf:"bytes,17,opt,name=status,proto3" json:"status,omitempty"` // A one line description of the issue. Summary string `protobuf:"bytes,18,opt,name=summary,proto3" json:"summary,omitempty"` // Last updated datetime of this issue. Updated string `protobuf:"bytes,19,opt,name=updated,proto3" json:"updated,omitempty"` // ID of the project containing the issue. ProjectId string `protobuf:"bytes,20,opt,name=projectId,proto3" json:"projectId,omitempty"` // contains filtered or unexported fields }
A monorail issue.
func (*Issue) Descriptor
deprecated
func (*Issue) FindCC ¶
func (i *Issue) FindCC(name string) *AtomPerson
FindCC finds a CC'ed person by name.
func (*Issue) GetAuthor ¶
func (x *Issue) GetAuthor() *AtomPerson
func (*Issue) GetBlockedOn ¶
func (*Issue) GetCc ¶
func (x *Issue) GetCc() []*AtomPerson
func (*Issue) GetComponents ¶
func (*Issue) GetDescription ¶
func (*Issue) GetOwner ¶
func (x *Issue) GetOwner() *AtomPerson
func (*Issue) GetProjectId ¶
func (*Issue) GetSummary ¶
func (*Issue) GetUpdated ¶
func (*Issue) ProtoMessage ¶
func (*Issue) ProtoMessage()
func (*Issue) ProtoReflect ¶
func (x *Issue) ProtoReflect() protoreflect.Message
type IssueRef ¶
type IssueRef struct { // ID of the issue. IssueId int32 `protobuf:"varint,1,opt,name=issueId,proto3" json:"issueId,omitempty"` // ID of the project containing the issue. ProjectId string `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"` // contains filtered or unexported fields }
IssueRef references another issue in the same Monorail instance.
func (*IssueRef) Descriptor
deprecated
func (*IssueRef) GetIssueId ¶
func (*IssueRef) GetProjectId ¶
func (*IssueRef) ProtoMessage ¶
func (*IssueRef) ProtoMessage()
func (*IssueRef) ProtoReflect ¶
func (x *IssueRef) ProtoReflect() protoreflect.Message
type IssuesListRequest ¶
type IssuesListRequest struct { // String name of the project, e.g. "chromium". ProjectId string `protobuf:"bytes,1,opt,name=projectId,proto3" json:"projectId,omitempty"` // Additional projects to search. AdditionalProject []string `protobuf:"bytes,2,rep,name=additionalProject,proto3" json:"additionalProject,omitempty"` // Use a canned query. Can IssuesListRequest_CannedQuery `protobuf:"varint,3,opt,name=can,proto3,enum=monorail.IssuesListRequest_CannedQuery" json:"can,omitempty"` // Issue label or space separated list of labels. Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` // Maximum results to retrieve. MaxResults int32 `protobuf:"varint,5,opt,name=maxResults,proto3" json:"maxResults,omitempty"` // Issue owner. Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` // Search for Issues published before this timestamp. PublishedMax int64 `protobuf:"varint,7,opt,name=publishedMax,proto3" json:"publishedMax,omitempty"` // Search for Issues published after this timestamp. PublishedMin int64 `protobuf:"varint,8,opt,name=publishedMin,proto3" json:"publishedMin,omitempty"` // Free-form text query. Q string `protobuf:"bytes,9,opt,name=q,proto3" json:"q,omitempty"` // Sort-by field or fields, space separated terms with leading - to // indicate decreasing direction. e.g. "estdays -milestone" to sort by // estdays increasing, then milestone decreasing. Sort string `protobuf:"bytes,10,opt,name=sort,proto3" json:"sort,omitempty"` // Starting index for pagination. StartIndex int32 `protobuf:"varint,11,opt,name=startIndex,proto3" json:"startIndex,omitempty"` // Issue status. Status string `protobuf:"bytes,12,opt,name=status,proto3" json:"status,omitempty"` // Search for Issues most recently updated before this timestamp. UpdatedMax int64 `protobuf:"varint,13,opt,name=updatedMax,proto3" json:"updatedMax,omitempty"` // Search for Issues most recently updated after this timestamp. UpdatedMin int64 `protobuf:"varint,14,opt,name=updatedMin,proto3" json:"updatedMin,omitempty"` // contains filtered or unexported fields }
Request for a list of Issues.
func (*IssuesListRequest) Descriptor
deprecated
func (*IssuesListRequest) Descriptor() ([]byte, []int)
Deprecated: Use IssuesListRequest.ProtoReflect.Descriptor instead.
func (*IssuesListRequest) GetAdditionalProject ¶
func (x *IssuesListRequest) GetAdditionalProject() []string
func (*IssuesListRequest) GetCan ¶
func (x *IssuesListRequest) GetCan() IssuesListRequest_CannedQuery
func (*IssuesListRequest) GetLabel ¶
func (x *IssuesListRequest) GetLabel() string
func (*IssuesListRequest) GetMaxResults ¶
func (x *IssuesListRequest) GetMaxResults() int32
func (*IssuesListRequest) GetOwner ¶
func (x *IssuesListRequest) GetOwner() string
func (*IssuesListRequest) GetProjectId ¶
func (x *IssuesListRequest) GetProjectId() string
func (*IssuesListRequest) GetPublishedMax ¶
func (x *IssuesListRequest) GetPublishedMax() int64
func (*IssuesListRequest) GetPublishedMin ¶
func (x *IssuesListRequest) GetPublishedMin() int64
func (*IssuesListRequest) GetQ ¶
func (x *IssuesListRequest) GetQ() string
func (*IssuesListRequest) GetSort ¶
func (x *IssuesListRequest) GetSort() string
func (*IssuesListRequest) GetStartIndex ¶
func (x *IssuesListRequest) GetStartIndex() int32
func (*IssuesListRequest) GetStatus ¶
func (x *IssuesListRequest) GetStatus() string
func (*IssuesListRequest) GetUpdatedMax ¶
func (x *IssuesListRequest) GetUpdatedMax() int64
func (*IssuesListRequest) GetUpdatedMin ¶
func (x *IssuesListRequest) GetUpdatedMin() int64
func (*IssuesListRequest) ProtoMessage ¶
func (*IssuesListRequest) ProtoMessage()
func (*IssuesListRequest) ProtoReflect ¶
func (x *IssuesListRequest) ProtoReflect() protoreflect.Message
func (*IssuesListRequest) Reset ¶
func (x *IssuesListRequest) Reset()
func (*IssuesListRequest) String ¶
func (x *IssuesListRequest) String() string
type IssuesListRequest_CannedQuery ¶
type IssuesListRequest_CannedQuery int32
const ( IssuesListRequest_ALL IssuesListRequest_CannedQuery = 0 IssuesListRequest_NEW IssuesListRequest_CannedQuery = 1 IssuesListRequest_OPEN IssuesListRequest_CannedQuery = 2 IssuesListRequest_OWNED IssuesListRequest_CannedQuery = 3 IssuesListRequest_REPORTED IssuesListRequest_CannedQuery = 4 IssuesListRequest_STARRED IssuesListRequest_CannedQuery = 5 IssuesListRequest_TO_VERIFY IssuesListRequest_CannedQuery = 6 )
func (IssuesListRequest_CannedQuery) Descriptor ¶
func (IssuesListRequest_CannedQuery) Descriptor() protoreflect.EnumDescriptor
func (IssuesListRequest_CannedQuery) Enum ¶
func (x IssuesListRequest_CannedQuery) Enum() *IssuesListRequest_CannedQuery
func (IssuesListRequest_CannedQuery) EnumDescriptor
deprecated
func (IssuesListRequest_CannedQuery) EnumDescriptor() ([]byte, []int)
Deprecated: Use IssuesListRequest_CannedQuery.Descriptor instead.
func (IssuesListRequest_CannedQuery) Number ¶
func (x IssuesListRequest_CannedQuery) Number() protoreflect.EnumNumber
func (IssuesListRequest_CannedQuery) String ¶
func (x IssuesListRequest_CannedQuery) String() string
func (IssuesListRequest_CannedQuery) Type ¶
func (IssuesListRequest_CannedQuery) Type() protoreflect.EnumType
type IssuesListResponse ¶
type IssuesListResponse struct { Error *ErrorMessage `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // Search results. Items []*Issue `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // Total size of matching result set, regardless of how many are included // in this response. TotalResults int32 `protobuf:"varint,3,opt,name=totalResults,proto3" json:"totalResults,omitempty"` // contains filtered or unexported fields }
func (*IssuesListResponse) Descriptor
deprecated
func (*IssuesListResponse) Descriptor() ([]byte, []int)
Deprecated: Use IssuesListResponse.ProtoReflect.Descriptor instead.
func (*IssuesListResponse) GetError ¶
func (x *IssuesListResponse) GetError() *ErrorMessage
func (*IssuesListResponse) GetItems ¶
func (x *IssuesListResponse) GetItems() []*Issue
func (*IssuesListResponse) GetTotalResults ¶
func (x *IssuesListResponse) GetTotalResults() int32
func (*IssuesListResponse) ProtoMessage ¶
func (*IssuesListResponse) ProtoMessage()
func (*IssuesListResponse) ProtoReflect ¶
func (x *IssuesListResponse) ProtoReflect() protoreflect.Message
func (*IssuesListResponse) Reset ¶
func (x *IssuesListResponse) Reset()
func (*IssuesListResponse) String ¶
func (x *IssuesListResponse) String() string
type ListCommentsRequest ¶
type ListCommentsRequest struct { Issue *IssueRef `protobuf:"bytes,1,opt,name=issue,proto3" json:"issue,omitempty"` MaxResults int32 `protobuf:"varint,2,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"` StartIndex int32 `protobuf:"varint,3,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"` // contains filtered or unexported fields }
func (*ListCommentsRequest) Descriptor
deprecated
func (*ListCommentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentsRequest.ProtoReflect.Descriptor instead.
func (*ListCommentsRequest) GetIssue ¶
func (x *ListCommentsRequest) GetIssue() *IssueRef
func (*ListCommentsRequest) GetMaxResults ¶
func (x *ListCommentsRequest) GetMaxResults() int32
func (*ListCommentsRequest) GetStartIndex ¶
func (x *ListCommentsRequest) GetStartIndex() int32
func (*ListCommentsRequest) ProtoMessage ¶
func (*ListCommentsRequest) ProtoMessage()
func (*ListCommentsRequest) ProtoReflect ¶
func (x *ListCommentsRequest) ProtoReflect() protoreflect.Message
func (*ListCommentsRequest) Reset ¶
func (x *ListCommentsRequest) Reset()
func (*ListCommentsRequest) String ¶
func (x *ListCommentsRequest) String() string
func (*ListCommentsRequest) Validate ¶
func (l *ListCommentsRequest) Validate() error
Validate checks the message for errors.
type ListCommentsResponse ¶
type ListCommentsResponse struct { Error *ErrorMessage `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // Actual comments. Items []*Comment `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // Total size of matching result set, regardless of how many are included // in this response. Includes deleted comments. TotalResults int32 `protobuf:"varint,3,opt,name=totalResults,proto3" json:"totalResults,omitempty"` // contains filtered or unexported fields }
func (*ListCommentsResponse) Descriptor
deprecated
func (*ListCommentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCommentsResponse.ProtoReflect.Descriptor instead.
func (*ListCommentsResponse) GetError ¶
func (x *ListCommentsResponse) GetError() *ErrorMessage
func (*ListCommentsResponse) GetItems ¶
func (x *ListCommentsResponse) GetItems() []*Comment
func (*ListCommentsResponse) GetTotalResults ¶
func (x *ListCommentsResponse) GetTotalResults() int32
func (*ListCommentsResponse) ProtoMessage ¶
func (*ListCommentsResponse) ProtoMessage()
func (*ListCommentsResponse) ProtoReflect ¶
func (x *ListCommentsResponse) ProtoReflect() protoreflect.Message
func (*ListCommentsResponse) Reset ¶
func (x *ListCommentsResponse) Reset()
func (*ListCommentsResponse) String ¶
func (x *ListCommentsResponse) String() string
type MockMonorailClient ¶
type MockMonorailClient struct {
// contains filtered or unexported fields
}
MockMonorailClient is a mock of MonorailClient interface
func NewMockMonorailClient ¶
func NewMockMonorailClient(ctrl *gomock.Controller) *MockMonorailClient
NewMockMonorailClient creates a new mock instance
func (*MockMonorailClient) EXPECT ¶
func (m *MockMonorailClient) EXPECT() *MockMonorailClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMonorailClient) InsertComment ¶
func (m *MockMonorailClient) InsertComment(ctx context.Context, in *InsertCommentRequest, opts ...grpc.CallOption) (*InsertCommentResponse, error)
InsertComment mocks base method
func (*MockMonorailClient) InsertIssue ¶
func (m *MockMonorailClient) InsertIssue(ctx context.Context, in *InsertIssueRequest, opts ...grpc.CallOption) (*InsertIssueResponse, error)
InsertIssue mocks base method
func (*MockMonorailClient) IssuesList ¶
func (m *MockMonorailClient) IssuesList(ctx context.Context, in *IssuesListRequest, opts ...grpc.CallOption) (*IssuesListResponse, error)
IssuesList mocks base method
type MockMonorailClientMockRecorder ¶
type MockMonorailClientMockRecorder struct {
// contains filtered or unexported fields
}
MockMonorailClientMockRecorder is the mock recorder for MockMonorailClient
func (*MockMonorailClientMockRecorder) InsertComment ¶
func (mr *MockMonorailClientMockRecorder) InsertComment(ctx, in interface{}, opts ...interface{}) *gomock.Call
InsertComment indicates an expected call of InsertComment
func (*MockMonorailClientMockRecorder) InsertIssue ¶
func (mr *MockMonorailClientMockRecorder) InsertIssue(ctx, in interface{}, opts ...interface{}) *gomock.Call
InsertIssue indicates an expected call of InsertIssue
func (*MockMonorailClientMockRecorder) IssuesList ¶
func (mr *MockMonorailClientMockRecorder) IssuesList(ctx, in interface{}, opts ...interface{}) *gomock.Call
IssuesList indicates an expected call of IssuesList
type MockMonorailServer ¶
type MockMonorailServer struct {
// contains filtered or unexported fields
}
MockMonorailServer is a mock of MonorailServer interface
func NewMockMonorailServer ¶
func NewMockMonorailServer(ctrl *gomock.Controller) *MockMonorailServer
NewMockMonorailServer creates a new mock instance
func (*MockMonorailServer) EXPECT ¶
func (m *MockMonorailServer) EXPECT() *MockMonorailServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMonorailServer) InsertComment ¶
func (m *MockMonorailServer) InsertComment(arg0 context.Context, arg1 *InsertCommentRequest) (*InsertCommentResponse, error)
InsertComment mocks base method
func (*MockMonorailServer) InsertIssue ¶
func (m *MockMonorailServer) InsertIssue(arg0 context.Context, arg1 *InsertIssueRequest) (*InsertIssueResponse, error)
InsertIssue mocks base method
func (*MockMonorailServer) IssuesList ¶
func (m *MockMonorailServer) IssuesList(arg0 context.Context, arg1 *IssuesListRequest) (*IssuesListResponse, error)
IssuesList mocks base method
type MockMonorailServerMockRecorder ¶
type MockMonorailServerMockRecorder struct {
// contains filtered or unexported fields
}
MockMonorailServerMockRecorder is the mock recorder for MockMonorailServer
func (*MockMonorailServerMockRecorder) InsertComment ¶
func (mr *MockMonorailServerMockRecorder) InsertComment(arg0, arg1 interface{}) *gomock.Call
InsertComment indicates an expected call of InsertComment
func (*MockMonorailServerMockRecorder) InsertIssue ¶
func (mr *MockMonorailServerMockRecorder) InsertIssue(arg0, arg1 interface{}) *gomock.Call
InsertIssue indicates an expected call of InsertIssue
func (*MockMonorailServerMockRecorder) IssuesList ¶
func (mr *MockMonorailServerMockRecorder) IssuesList(arg0, arg1 interface{}) *gomock.Call
IssuesList indicates an expected call of IssuesList
type MonorailClient ¶
type MonorailClient interface { // Creates an issue. InsertIssue(ctx context.Context, in *InsertIssueRequest, opts ...grpc.CallOption) (*InsertIssueResponse, error) // Posts a comment to an issue. Can update issue attributes, such as status. InsertComment(ctx context.Context, in *InsertCommentRequest, opts ...grpc.CallOption) (*InsertCommentResponse, error) // Lists issues from a project. IssuesList(ctx context.Context, in *IssuesListRequest, opts ...grpc.CallOption) (*IssuesListResponse, error) // GetIssue gets an issue by id. GetIssue(ctx context.Context, in *GetIssueRequest, opts ...grpc.CallOption) (*Issue, error) // ListComments returns comments of an issue. ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error) }
MonorailClient is the client API for Monorail service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEndpointsClient ¶
func NewEndpointsClient(client *http.Client, url string) MonorailClient
NewEndpointsClient creates a MonorailClient that send requests to Monorail Cloud Endpoints API at url.
Example of url: "https://monorail-staging.appspot.com/_ah/api/monorail/v1"
Methods do not implement retries. Use "go.chromium.org/luci/common/errors".IsTransient to check if an error is transient.
Client methods return an error on any grpc.CallOption.
func NewMonorailClient ¶
func NewMonorailClient(cc grpc.ClientConnInterface) MonorailClient
func NewMonorailPRPCClient ¶
func NewMonorailPRPCClient(client *prpc.Client) MonorailClient
type MonorailServer ¶
type MonorailServer interface { // Creates an issue. InsertIssue(context.Context, *InsertIssueRequest) (*InsertIssueResponse, error) // Posts a comment to an issue. Can update issue attributes, such as status. InsertComment(context.Context, *InsertCommentRequest) (*InsertCommentResponse, error) // Lists issues from a project. IssuesList(context.Context, *IssuesListRequest) (*IssuesListResponse, error) // GetIssue gets an issue by id. GetIssue(context.Context, *GetIssueRequest) (*Issue, error) // ListComments returns comments of an issue. ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error) }
MonorailServer is the server API for Monorail service.
type UnimplementedMonorailServer ¶
type UnimplementedMonorailServer struct { }
UnimplementedMonorailServer can be embedded to have forward compatible implementations.
func (*UnimplementedMonorailServer) GetIssue ¶
func (*UnimplementedMonorailServer) GetIssue(context.Context, *GetIssueRequest) (*Issue, error)
func (*UnimplementedMonorailServer) InsertComment ¶
func (*UnimplementedMonorailServer) InsertComment(context.Context, *InsertCommentRequest) (*InsertCommentResponse, error)
func (*UnimplementedMonorailServer) InsertIssue ¶
func (*UnimplementedMonorailServer) InsertIssue(context.Context, *InsertIssueRequest) (*InsertIssueResponse, error)
func (*UnimplementedMonorailServer) IssuesList ¶
func (*UnimplementedMonorailServer) IssuesList(context.Context, *IssuesListRequest) (*IssuesListResponse, error)
func (*UnimplementedMonorailServer) ListComments ¶
func (*UnimplementedMonorailServer) ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error)
type Update ¶
type Update struct { // If set, the new status of the issue. Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // Adds or removes labels. Labels []string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty"` // IsDescription makes the request content the new bug description // instead of a new comment. IsDescription bool `protobuf:"varint,13,opt,name=is_description,json=isDescription,proto3" json:"is_description,omitempty"` // contains filtered or unexported fields }
Defines a mutation to an issue. This message is partial. Derived from Update type in api_pb2_v1.py.
func (*Update) Descriptor
deprecated
func (*Update) GetIsDescription ¶
func (*Update) ProtoMessage ¶
func (*Update) ProtoMessage()
func (*Update) ProtoReflect ¶
func (x *Update) ProtoReflect() protoreflect.Message