Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessLimit ¶
type AccessLimit struct {
AccessLevel string `json:"accessLevel"`
}
type Issue ¶
type Issue struct { IssueID string `json:"issueId,omitempty"` IssueState IssueState `json:"issueState"` IssueComment IssueComment `json:"issueComment"` }
Issue represents the body of the request/response for creating new issues. The full schema can be found at http://go/issuetracker.proto.
type IssueComment ¶
type IssueState ¶
type IssueState struct { ComponentID string `json:"componentId"` Type string `json:"type"` Status string `json:"status"` Priority string `json:"priority"` Severity string `json:"severity"` Title string `json:"title"` AccessLimit AccessLimit `json:"accessLimit,omitempty"` }
IssueState represents the state of the issue.
type IssueTracker ¶
type IssueTracker struct {
// contains filtered or unexported fields
}
func NewIssueTracker ¶
func NewIssueTracker(client *http.Client) *IssueTracker
NewIssueTracker creates and returns an IssueTracker instance.
func NewIssueTrackerFromLUCIContext ¶
func NewIssueTrackerFromLUCIContext() (*IssueTracker, error)
func (*IssueTracker) AddIssue ¶
func (m *IssueTracker) AddIssue(issue Issue) (Issue, error)
AddIssue creates an issue with the passed in params using the API linked below. https://developers.google.com/issue-tracker/public/rest/v1/issues/create
func (*IssueTracker) GetIssue ¶
func (m *IssueTracker) GetIssue(issueID int) (Issue, error)
Fetch the issue using its issue id using the API linked below. https://developers.google.com/issue-tracker/public/rest/v1/issues/get
func (*IssueTracker) ModifyIssue ¶
func (m *IssueTracker) ModifyIssue(request ModifyIssueRequest, issueID int) (Issue, error)
Modify the issue with the values in the ModifyIssueRequest using the API linked below. https://developers.google.com/issue-tracker/public/rest/v1/issues/modify
type ModifyIssueRequest ¶
type ModifyIssueRequest struct { AddMask string `json:"addMask"` Add IssueState `json:"add"` }