issuetracker

package
v0.0.0-...-90d4145 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

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 https://go/issuetracker.proto.

type IssueComment

type IssueComment struct {
	Comment        string `json:"comment"`
	FormattingMode string `json:"formattingMode,omitempty"`
}

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 string) (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 string) (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"`
}

Jump to

Keyboard shortcuts

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