monorail

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Overview

Package monorail implements Monorail client.

Package monorail is a generated GoMock package.

Index

Constants

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

View Source
const AuthScope = "https://www.googleapis.com/auth/userinfo.email"

AuthScope is OAuth 2.0 auth scope used by Monorail.

View Source
const LabelRestrictViewGoogle = "Restrict-View-Google"

LabelRestrictViewGoogle specifies that an issue must be visible to googlers only.

Variables

View Source
var IssuesListRequest_CannedQuery_name = map[int32]string{
	0: "ALL",
	1: "NEW",
	2: "OPEN",
	3: "OWNED",
	4: "REPORTED",
	5: "STARRED",
	6: "TO_VERIFY",
}
View Source
var IssuesListRequest_CannedQuery_value = map[string]int32{
	"ALL":       0,
	"NEW":       1,
	"OPEN":      2,
	"OWNED":     3,
	"REPORTED":  4,
	"STARRED":   5,
	"TO_VERIFY": 6,
}

Functions

func FileDescriptorSet

func FileDescriptorSet() *descriptor.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 IssueURL

func IssueURL(host, project string, id int32) string

IssueURL returns a URL to human-consumable HTML page for the issue.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Identifies a Monorail user.

func (*AtomPerson) Descriptor

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

func (*AtomPerson) GetName

func (m *AtomPerson) GetName() string

func (*AtomPerson) ProtoMessage

func (*AtomPerson) ProtoMessage()

func (*AtomPerson) Reset

func (m *AtomPerson) Reset()

func (*AtomPerson) String

func (m *AtomPerson) String() string

func (*AtomPerson) Validate

func (a *AtomPerson) Validate() error

Validate checks the message for errors.

func (*AtomPerson) XXX_DiscardUnknown

func (m *AtomPerson) XXX_DiscardUnknown()

func (*AtomPerson) XXX_Marshal

func (m *AtomPerson) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AtomPerson) XXX_Merge

func (m *AtomPerson) XXX_Merge(src proto.Message)

func (*AtomPerson) XXX_Size

func (m *AtomPerson) XXX_Size() int

func (*AtomPerson) XXX_Unmarshal

func (m *AtomPerson) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Comment represents monorail comment. This field is partial. Derived from `IssueCommentWrapper` type in api_pb2_v1.py.

func (*Comment) Descriptor

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

func (*Comment) GetAuthor

func (m *Comment) GetAuthor() *AtomPerson

func (*Comment) GetContent

func (m *Comment) GetContent() string

func (*Comment) GetDeletedBy

func (m *Comment) GetDeletedBy() *AtomPerson

func (*Comment) GetId

func (m *Comment) GetId() int32

func (*Comment) GetIsDescription

func (m *Comment) GetIsDescription() bool

func (*Comment) GetPublished

func (m *Comment) GetPublished() string

func (*Comment) GetUpdates

func (m *Comment) GetUpdates() *Update

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) Reset

func (m *Comment) Reset()

func (*Comment) String

func (m *Comment) String() string

func (*Comment) XXX_DiscardUnknown

func (m *Comment) XXX_DiscardUnknown()

func (*Comment) XXX_Marshal

func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Comment) XXX_Merge

func (m *Comment) XXX_Merge(src proto.Message)

func (*Comment) XXX_Size

func (m *Comment) XXX_Size() int

func (*Comment) XXX_Unmarshal

func (m *Comment) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ErrorMessage) Descriptor

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

func (*ErrorMessage) GetCode

func (m *ErrorMessage) GetCode() int32

func (*ErrorMessage) GetMessage

func (m *ErrorMessage) GetMessage() string

func (*ErrorMessage) GetReason

func (m *ErrorMessage) GetReason() string

func (*ErrorMessage) ProtoMessage

func (*ErrorMessage) ProtoMessage()

func (*ErrorMessage) Reset

func (m *ErrorMessage) Reset()

func (*ErrorMessage) String

func (m *ErrorMessage) String() string

func (*ErrorMessage) XXX_DiscardUnknown

func (m *ErrorMessage) XXX_DiscardUnknown()

func (*ErrorMessage) XXX_Marshal

func (m *ErrorMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ErrorMessage) XXX_Merge

func (m *ErrorMessage) XXX_Merge(src proto.Message)

func (*ErrorMessage) XXX_Size

func (m *ErrorMessage) XXX_Size() int

func (*ErrorMessage) XXX_Unmarshal

func (m *ErrorMessage) XXX_Unmarshal(b []byte) error

type GetIssueRequest

type GetIssueRequest struct {
	Issue                *IssueRef `protobuf:"bytes,1,opt,name=issue,proto3" json:"issue,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*GetIssueRequest) Descriptor

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

func (*GetIssueRequest) GetIssue

func (m *GetIssueRequest) GetIssue() *IssueRef

func (*GetIssueRequest) ProtoMessage

func (*GetIssueRequest) ProtoMessage()

func (*GetIssueRequest) Reset

func (m *GetIssueRequest) Reset()

func (*GetIssueRequest) String

func (m *GetIssueRequest) String() string

func (*GetIssueRequest) XXX_DiscardUnknown

func (m *GetIssueRequest) XXX_DiscardUnknown()

func (*GetIssueRequest) XXX_Marshal

func (m *GetIssueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetIssueRequest) XXX_Merge

func (m *GetIssueRequest) XXX_Merge(src proto.Message)

func (*GetIssueRequest) XXX_Size

func (m *GetIssueRequest) XXX_Size() int

func (*GetIssueRequest) XXX_Unmarshal

func (m *GetIssueRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request for Monorail.InsertComment()

func (*InsertCommentRequest) Descriptor

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

func (*InsertCommentRequest) GetComment

func (*InsertCommentRequest) GetIssue

func (m *InsertCommentRequest) GetIssue() *IssueRef

func (*InsertCommentRequest) GetSendEmail

func (m *InsertCommentRequest) GetSendEmail() bool

func (*InsertCommentRequest) ProtoMessage

func (*InsertCommentRequest) ProtoMessage()

func (*InsertCommentRequest) Reset

func (m *InsertCommentRequest) Reset()

func (*InsertCommentRequest) String

func (m *InsertCommentRequest) String() string

func (*InsertCommentRequest) XXX_DiscardUnknown

func (m *InsertCommentRequest) XXX_DiscardUnknown()

func (*InsertCommentRequest) XXX_Marshal

func (m *InsertCommentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InsertCommentRequest) XXX_Merge

func (m *InsertCommentRequest) XXX_Merge(src proto.Message)

func (*InsertCommentRequest) XXX_Size

func (m *InsertCommentRequest) XXX_Size() int

func (*InsertCommentRequest) XXX_Unmarshal

func (m *InsertCommentRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Defines the comment. This message is partial. Derived from IssueCommentWrapper type in api_pb2_v1.py.

func (*InsertCommentRequest_Comment) Descriptor

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

func (*InsertCommentRequest_Comment) GetAuthor

func (m *InsertCommentRequest_Comment) GetAuthor() *AtomPerson

func (*InsertCommentRequest_Comment) GetContent

func (m *InsertCommentRequest_Comment) GetContent() string

func (*InsertCommentRequest_Comment) GetUpdates

func (m *InsertCommentRequest_Comment) GetUpdates() *Update

func (*InsertCommentRequest_Comment) ProtoMessage

func (*InsertCommentRequest_Comment) ProtoMessage()

func (*InsertCommentRequest_Comment) Reset

func (m *InsertCommentRequest_Comment) Reset()

func (*InsertCommentRequest_Comment) String

func (*InsertCommentRequest_Comment) XXX_DiscardUnknown

func (m *InsertCommentRequest_Comment) XXX_DiscardUnknown()

func (*InsertCommentRequest_Comment) XXX_Marshal

func (m *InsertCommentRequest_Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InsertCommentRequest_Comment) XXX_Merge

func (m *InsertCommentRequest_Comment) XXX_Merge(src proto.Message)

func (*InsertCommentRequest_Comment) XXX_Size

func (m *InsertCommentRequest_Comment) XXX_Size() int

func (*InsertCommentRequest_Comment) XXX_Unmarshal

func (m *InsertCommentRequest_Comment) XXX_Unmarshal(b []byte) error

type InsertCommentResponse

type InsertCommentResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InsertCommentResponse) Descriptor

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

func (*InsertCommentResponse) ProtoMessage

func (*InsertCommentResponse) ProtoMessage()

func (*InsertCommentResponse) Reset

func (m *InsertCommentResponse) Reset()

func (*InsertCommentResponse) String

func (m *InsertCommentResponse) String() string

func (*InsertCommentResponse) XXX_DiscardUnknown

func (m *InsertCommentResponse) XXX_DiscardUnknown()

func (*InsertCommentResponse) XXX_Marshal

func (m *InsertCommentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InsertCommentResponse) XXX_Merge

func (m *InsertCommentResponse) XXX_Merge(src proto.Message)

func (*InsertCommentResponse) XXX_Size

func (m *InsertCommentResponse) XXX_Size() int

func (*InsertCommentResponse) XXX_Unmarshal

func (m *InsertCommentResponse) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request for Monorail.InsertIssue().

func (*InsertIssueRequest) Descriptor

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

func (*InsertIssueRequest) GetIssue

func (m *InsertIssueRequest) GetIssue() *Issue

func (*InsertIssueRequest) GetSendEmail

func (m *InsertIssueRequest) GetSendEmail() bool

func (*InsertIssueRequest) ProtoMessage

func (*InsertIssueRequest) ProtoMessage()

func (*InsertIssueRequest) Reset

func (m *InsertIssueRequest) Reset()

func (*InsertIssueRequest) String

func (m *InsertIssueRequest) String() string

func (*InsertIssueRequest) Validate

func (i *InsertIssueRequest) Validate() error

Validate checks the message for errors.

func (*InsertIssueRequest) XXX_DiscardUnknown

func (m *InsertIssueRequest) XXX_DiscardUnknown()

func (*InsertIssueRequest) XXX_Marshal

func (m *InsertIssueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InsertIssueRequest) XXX_Merge

func (m *InsertIssueRequest) XXX_Merge(src proto.Message)

func (*InsertIssueRequest) XXX_Size

func (m *InsertIssueRequest) XXX_Size() int

func (*InsertIssueRequest) XXX_Unmarshal

func (m *InsertIssueRequest) XXX_Unmarshal(b []byte) error

type InsertIssueResponse

type InsertIssueResponse struct {
	// Created issue.
	Issue                *Issue   `protobuf:"bytes,1,opt,name=issue,proto3" json:"issue,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response for Monorail.InsertIssue()

func (*InsertIssueResponse) Descriptor

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

func (*InsertIssueResponse) GetIssue

func (m *InsertIssueResponse) GetIssue() *Issue

func (*InsertIssueResponse) ProtoMessage

func (*InsertIssueResponse) ProtoMessage()

func (*InsertIssueResponse) Reset

func (m *InsertIssueResponse) Reset()

func (*InsertIssueResponse) String

func (m *InsertIssueResponse) String() string

func (*InsertIssueResponse) XXX_DiscardUnknown

func (m *InsertIssueResponse) XXX_DiscardUnknown()

func (*InsertIssueResponse) XXX_Marshal

func (m *InsertIssueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InsertIssueResponse) XXX_Merge

func (m *InsertIssueResponse) XXX_Merge(src proto.Message)

func (*InsertIssueResponse) XXX_Size

func (m *InsertIssueResponse) XXX_Size() int

func (*InsertIssueResponse) XXX_Unmarshal

func (m *InsertIssueResponse) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A monorail issue.

func (*Issue) Descriptor

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

func (*Issue) FindCC

func (i *Issue) FindCC(name string) *AtomPerson

FindCC finds a CC'ed person by name.

func (*Issue) GetAuthor

func (m *Issue) GetAuthor() *AtomPerson

func (*Issue) GetBlockedOn

func (m *Issue) GetBlockedOn() []*IssueRef

func (*Issue) GetCc

func (m *Issue) GetCc() []*AtomPerson

func (*Issue) GetComponents

func (m *Issue) GetComponents() []string

func (*Issue) GetDescription

func (m *Issue) GetDescription() string

func (*Issue) GetId

func (m *Issue) GetId() int32

func (*Issue) GetLabels

func (m *Issue) GetLabels() []string

func (*Issue) GetOwner

func (m *Issue) GetOwner() *AtomPerson

func (*Issue) GetProjectId

func (m *Issue) GetProjectId() string

func (*Issue) GetStatus

func (m *Issue) GetStatus() string

func (*Issue) GetSummary

func (m *Issue) GetSummary() string

func (*Issue) GetUpdated

func (m *Issue) GetUpdated() string

func (*Issue) ProtoMessage

func (*Issue) ProtoMessage()

func (*Issue) Reset

func (m *Issue) Reset()

func (*Issue) String

func (m *Issue) String() string

func (*Issue) Validate

func (i *Issue) Validate() error

Validate checks the message for errors.

func (*Issue) XXX_DiscardUnknown

func (m *Issue) XXX_DiscardUnknown()

func (*Issue) XXX_Marshal

func (m *Issue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Issue) XXX_Merge

func (m *Issue) XXX_Merge(src proto.Message)

func (*Issue) XXX_Size

func (m *Issue) XXX_Size() int

func (*Issue) XXX_Unmarshal

func (m *Issue) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

IssueRef references another issue in the same Monorail instance.

func (*IssueRef) Descriptor

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

func (*IssueRef) GetIssueId

func (m *IssueRef) GetIssueId() int32

func (*IssueRef) GetProjectId

func (m *IssueRef) GetProjectId() string

func (*IssueRef) ProtoMessage

func (*IssueRef) ProtoMessage()

func (*IssueRef) Reset

func (m *IssueRef) Reset()

func (*IssueRef) String

func (m *IssueRef) String() string

func (*IssueRef) Validate

func (i *IssueRef) Validate() error

Validate checks the message for errors.

func (*IssueRef) XXX_DiscardUnknown

func (m *IssueRef) XXX_DiscardUnknown()

func (*IssueRef) XXX_Marshal

func (m *IssueRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IssueRef) XXX_Merge

func (m *IssueRef) XXX_Merge(src proto.Message)

func (*IssueRef) XXX_Size

func (m *IssueRef) XXX_Size() int

func (*IssueRef) XXX_Unmarshal

func (m *IssueRef) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request for a list of Issues.

func (*IssuesListRequest) Descriptor

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

func (*IssuesListRequest) GetAdditionalProject

func (m *IssuesListRequest) GetAdditionalProject() []string

func (*IssuesListRequest) GetCan

func (*IssuesListRequest) GetLabel

func (m *IssuesListRequest) GetLabel() string

func (*IssuesListRequest) GetMaxResults

func (m *IssuesListRequest) GetMaxResults() int32

func (*IssuesListRequest) GetOwner

func (m *IssuesListRequest) GetOwner() string

func (*IssuesListRequest) GetProjectId

func (m *IssuesListRequest) GetProjectId() string

func (*IssuesListRequest) GetPublishedMax

func (m *IssuesListRequest) GetPublishedMax() int64

func (*IssuesListRequest) GetPublishedMin

func (m *IssuesListRequest) GetPublishedMin() int64

func (*IssuesListRequest) GetQ

func (m *IssuesListRequest) GetQ() string

func (*IssuesListRequest) GetSort

func (m *IssuesListRequest) GetSort() string

func (*IssuesListRequest) GetStartIndex

func (m *IssuesListRequest) GetStartIndex() int32

func (*IssuesListRequest) GetStatus

func (m *IssuesListRequest) GetStatus() string

func (*IssuesListRequest) GetUpdatedMax

func (m *IssuesListRequest) GetUpdatedMax() int64

func (*IssuesListRequest) GetUpdatedMin

func (m *IssuesListRequest) GetUpdatedMin() int64

func (*IssuesListRequest) ProtoMessage

func (*IssuesListRequest) ProtoMessage()

func (*IssuesListRequest) Reset

func (m *IssuesListRequest) Reset()

func (*IssuesListRequest) String

func (m *IssuesListRequest) String() string

func (*IssuesListRequest) XXX_DiscardUnknown

func (m *IssuesListRequest) XXX_DiscardUnknown()

func (*IssuesListRequest) XXX_Marshal

func (m *IssuesListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IssuesListRequest) XXX_Merge

func (m *IssuesListRequest) XXX_Merge(src proto.Message)

func (*IssuesListRequest) XXX_Size

func (m *IssuesListRequest) XXX_Size() int

func (*IssuesListRequest) XXX_Unmarshal

func (m *IssuesListRequest) XXX_Unmarshal(b []byte) error

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) EnumDescriptor

func (IssuesListRequest_CannedQuery) EnumDescriptor() ([]byte, []int)

func (IssuesListRequest_CannedQuery) String

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*IssuesListResponse) Descriptor

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

func (*IssuesListResponse) GetError

func (m *IssuesListResponse) GetError() *ErrorMessage

func (*IssuesListResponse) GetItems

func (m *IssuesListResponse) GetItems() []*Issue

func (*IssuesListResponse) GetTotalResults

func (m *IssuesListResponse) GetTotalResults() int32

func (*IssuesListResponse) ProtoMessage

func (*IssuesListResponse) ProtoMessage()

func (*IssuesListResponse) Reset

func (m *IssuesListResponse) Reset()

func (*IssuesListResponse) String

func (m *IssuesListResponse) String() string

func (*IssuesListResponse) XXX_DiscardUnknown

func (m *IssuesListResponse) XXX_DiscardUnknown()

func (*IssuesListResponse) XXX_Marshal

func (m *IssuesListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IssuesListResponse) XXX_Merge

func (m *IssuesListResponse) XXX_Merge(src proto.Message)

func (*IssuesListResponse) XXX_Size

func (m *IssuesListResponse) XXX_Size() int

func (*IssuesListResponse) XXX_Unmarshal

func (m *IssuesListResponse) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*ListCommentsRequest) Descriptor

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

func (*ListCommentsRequest) GetIssue

func (m *ListCommentsRequest) GetIssue() *IssueRef

func (*ListCommentsRequest) GetMaxResults

func (m *ListCommentsRequest) GetMaxResults() int32

func (*ListCommentsRequest) GetStartIndex

func (m *ListCommentsRequest) GetStartIndex() int32

func (*ListCommentsRequest) ProtoMessage

func (*ListCommentsRequest) ProtoMessage()

func (*ListCommentsRequest) Reset

func (m *ListCommentsRequest) Reset()

func (*ListCommentsRequest) String

func (m *ListCommentsRequest) String() string

func (*ListCommentsRequest) Validate

func (l *ListCommentsRequest) Validate() error

Validate checks the message for errors.

func (*ListCommentsRequest) XXX_DiscardUnknown

func (m *ListCommentsRequest) XXX_DiscardUnknown()

func (*ListCommentsRequest) XXX_Marshal

func (m *ListCommentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListCommentsRequest) XXX_Merge

func (m *ListCommentsRequest) XXX_Merge(src proto.Message)

func (*ListCommentsRequest) XXX_Size

func (m *ListCommentsRequest) XXX_Size() int

func (*ListCommentsRequest) XXX_Unmarshal

func (m *ListCommentsRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListCommentsResponse) Descriptor

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

func (*ListCommentsResponse) GetError

func (m *ListCommentsResponse) GetError() *ErrorMessage

func (*ListCommentsResponse) GetItems

func (m *ListCommentsResponse) GetItems() []*Comment

func (*ListCommentsResponse) GetTotalResults

func (m *ListCommentsResponse) GetTotalResults() int32

func (*ListCommentsResponse) ProtoMessage

func (*ListCommentsResponse) ProtoMessage()

func (*ListCommentsResponse) Reset

func (m *ListCommentsResponse) Reset()

func (*ListCommentsResponse) String

func (m *ListCommentsResponse) String() string

func (*ListCommentsResponse) XXX_DiscardUnknown

func (m *ListCommentsResponse) XXX_DiscardUnknown()

func (*ListCommentsResponse) XXX_Marshal

func (m *ListCommentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListCommentsResponse) XXX_Merge

func (m *ListCommentsResponse) XXX_Merge(src proto.Message)

func (*ListCommentsResponse) XXX_Size

func (m *ListCommentsResponse) XXX_Size() int

func (*ListCommentsResponse) XXX_Unmarshal

func (m *ListCommentsResponse) XXX_Unmarshal(b []byte) error

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

EXPECT returns an object that allows the caller to indicate expected use

func (*MockMonorailClient) InsertComment

InsertComment mocks base method

func (*MockMonorailClient) InsertIssue

InsertIssue mocks base method

func (*MockMonorailClient) IssuesList

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

EXPECT returns an object that allows the caller to indicate expected use

func (*MockMonorailServer) InsertComment

InsertComment mocks base method

func (*MockMonorailServer) InsertIssue

InsertIssue mocks base method

func (*MockMonorailServer) IssuesList

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) InsertComment

func (*UnimplementedMonorailServer) InsertIssue

func (*UnimplementedMonorailServer) IssuesList

func (*UnimplementedMonorailServer) ListComments

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Defines a mutation to an issue. This message is partial. Derived from Update type in api_pb2_v1.py.

func (*Update) Descriptor

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

func (*Update) GetIsDescription

func (m *Update) GetIsDescription() bool

func (*Update) GetLabels

func (m *Update) GetLabels() []string

func (*Update) GetStatus

func (m *Update) GetStatus() string

func (*Update) ProtoMessage

func (*Update) ProtoMessage()

func (*Update) Reset

func (m *Update) Reset()

func (*Update) String

func (m *Update) String() string

func (*Update) XXX_DiscardUnknown

func (m *Update) XXX_DiscardUnknown()

func (*Update) XXX_Marshal

func (m *Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Update) XXX_Merge

func (m *Update) XXX_Merge(src proto.Message)

func (*Update) XXX_Size

func (m *Update) XXX_Size() int

func (*Update) XXX_Unmarshal

func (m *Update) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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