Documentation ¶
Overview ¶
Package api provides data structures and helper methods to work with the dashboard JSON API. All structures in this package are backwards compatible.
Index ¶
Constants ¶
View Source
const Version = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bug ¶
type Bug struct { Version int `json:"version"` Title string `json:"title,omitempty"` ID string `json:"id"` FixCommits []Commit `json:"fix-commits,omitempty"` CauseCommit *Commit `json:"cause-commit,omitempty"` // Links to the discussions. Discussions []string `json:"discussions,omitempty"` Crashes []Crash `json:"crashes,omitempty"` }
type BugGroup ¶
type BugGroup struct { Version int `json:"version"` Bugs []BugSummary }
type BugGroupType ¶
type BugGroupType int
const ( BugGroupOpen BugGroupType = 1 << iota BugGroupFixed BugGroupInvalid BugGroupAll = ^0 )
type BugSummary ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
accessToken is OAuth access token obtained with "gcloud auth print-access-token" (provided your account has at least user level access to the dashboard). If the token is provided, dashboard should disable API throttling. The token can be empty, in which case the dashboard may throttle requests.
func NewTestClient ¶
func NewTestClient(ctor requestCtor, doer requestDoer) *Client
func (*Client) BugGroups ¶
func (c *Client) BugGroups(ns string, groups BugGroupType) ([]BugSummary, error)
type Crash ¶
type Crash struct { Title string `json:"title"` SyzReproducerLink string `json:"syz-reproducer,omitempty"` CReproducerLink string `json:"c-reproducer,omitempty"` KernelConfigLink string `json:"kernel-config,omitempty"` KernelSourceGit string `json:"kernel-source-git,omitempty"` KernelSourceCommit string `json:"kernel-source-commit,omitempty"` SyzkallerGit string `json:"syzkaller-git,omitempty"` SyzkallerCommit string `json:"syzkaller-commit,omitempty"` CompilerDescription string `json:"compiler-description,omitempty"` Architecture string `json:"architecture,omitempty"` CrashReportLink string `json:"crash-report-link,omitempty"` }
Click to show internal directories.
Click to hide internal directories.