Documentation
¶
Overview ¶
Package dashapi defines data structures used in dashboard communication and provides client interface.
Index ¶
- type BugReport
- type BugStatus
- type BugUpdate
- type BugUpdateReply
- type Build
- type BuildErrorReq
- type BuilderPollReq
- type BuilderPollResp
- type Crash
- type CrashID
- type Dashboard
- func (dash *Dashboard) BuilderPoll(manager string) (*BuilderPollResp, error)
- func (dash *Dashboard) JobDone(req *JobDoneReq) error
- func (dash *Dashboard) JobPoll(managers []string) (*JobPollResp, error)
- func (dash *Dashboard) LogError(name, msg string, args ...interface{})
- func (dash *Dashboard) NeedRepro(crash *CrashID) (bool, error)
- func (dash *Dashboard) Query(method string, req, reply interface{}) error
- func (dash *Dashboard) ReportBuildError(req *BuildErrorReq) error
- func (dash *Dashboard) ReportCrash(crash *Crash) (*ReportCrashResp, error)
- func (dash *Dashboard) ReportFailedRepro(crash *CrashID) error
- func (dash *Dashboard) ReportingPollBugs(typ string) (*PollBugsResponse, error)
- func (dash *Dashboard) ReportingPollClosed(ids []string) ([]string, error)
- func (dash *Dashboard) ReportingUpdate(upd *BugUpdate) (*BugUpdateReply, error)
- func (dash *Dashboard) UploadBuild(build *Build) error
- func (dash *Dashboard) UploadManagerStats(req *ManagerStatsReq) error
- type FixCommit
- type JobDoneReq
- type JobPollReq
- type JobPollResp
- type LogEntry
- type ManagerStatsReq
- type NeedReproResp
- type PollBugsRequest
- type PollBugsResponse
- type PollClosedRequest
- type PollClosedResponse
- type ReportCrashResp
- type ReproLevel
- type RequestCtor
- type RequestDoer
- type RequestLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BugReport ¶
type BugReport struct { Namespace string Config []byte ID string JobID string ExtID string // arbitrary reporting ID forwarded from BugUpdate.ExtID First bool // Set for first report for this bug. Title string Maintainers []string CC []string // additional CC emails OS string Arch string VMArch string CompilerID string KernelRepo string KernelRepoAlias string KernelBranch string KernelCommit string KernelCommitTitle string KernelCommitDate time.Time KernelConfig []byte KernelConfigLink string Log []byte LogLink string Report []byte ReportLink string ReproC []byte ReproCLink string ReproSyz []byte ReproSyzLink string CrashID int64 // returned back in BugUpdate NumCrashes int64 HappenedOn []string // list of kernel repo aliases CrashTitle string // job execution crash title Error []byte // job execution error ErrorLink string Patch []byte // testing job patch PatchLink string }
BugReport describes a single bug. Used by dashboard external reporting.
type BugUpdateReply ¶
type Build ¶
type Build struct { Manager string ID string OS string Arch string VMArch string SyzkallerCommit string CompilerID string KernelRepo string KernelBranch string KernelCommit string KernelCommitTitle string KernelCommitDate time.Time KernelConfig []byte Commits []string // see BuilderPoll FixCommits []FixCommit }
Build describes all aspects of a kernel build.
type BuildErrorReq ¶
type BuilderPollReq ¶
type BuilderPollReq struct {
Manager string
}
type BuilderPollResp ¶
type Crash ¶
type Crash struct { BuildID string // refers to Build.ID Title string Corrupted bool // report is corrupted (corrupted title, no stacks, etc) Maintainers []string Log []byte Report []byte // The following is optional and is filled only after repro. ReproOpts []byte ReproSyz []byte ReproC []byte }
Crash describes a single kernel crash (potentially with repro).
type Dashboard ¶
type Dashboard struct { Client string Addr string Key string // contains filtered or unexported fields }
func NewCustom ¶
func NewCustom(client, addr, key string, ctor RequestCtor, doer RequestDoer, logger RequestLogger, errorHandler func(error)) *Dashboard
func (*Dashboard) BuilderPoll ¶
func (dash *Dashboard) BuilderPoll(manager string) (*BuilderPollResp, error)
func (*Dashboard) JobDone ¶
func (dash *Dashboard) JobDone(req *JobDoneReq) error
func (*Dashboard) ReportBuildError ¶
func (dash *Dashboard) ReportBuildError(req *BuildErrorReq) error
func (*Dashboard) ReportCrash ¶
func (dash *Dashboard) ReportCrash(crash *Crash) (*ReportCrashResp, error)
func (*Dashboard) ReportFailedRepro ¶
ReportFailedRepro notifies dashboard about a failed repro attempt for the crash.
func (*Dashboard) ReportingPollBugs ¶
func (dash *Dashboard) ReportingPollBugs(typ string) (*PollBugsResponse, error)
func (*Dashboard) ReportingPollClosed ¶
func (*Dashboard) ReportingUpdate ¶
func (dash *Dashboard) ReportingUpdate(upd *BugUpdate) (*BugUpdateReply, error)
func (*Dashboard) UploadBuild ¶
func (*Dashboard) UploadManagerStats ¶
func (dash *Dashboard) UploadManagerStats(req *ManagerStatsReq) error
type JobDoneReq ¶
type JobPollReq ¶
type JobPollReq struct {
Managers []string
}
type JobPollResp ¶
type ManagerStatsReq ¶
type NeedReproResp ¶
type NeedReproResp struct {
NeedRepro bool
}
type PollBugsRequest ¶
type PollBugsRequest struct {
Type string
}
type PollBugsResponse ¶
type PollBugsResponse struct {
Reports []*BugReport
}
type PollClosedRequest ¶
type PollClosedRequest struct {
IDs []string
}
type PollClosedResponse ¶
type PollClosedResponse struct {
IDs []string
}
type ReportCrashResp ¶
type ReportCrashResp struct {
NeedRepro bool
}
type ReproLevel ¶
type ReproLevel int
const ( ReproLevelNone ReproLevel = iota ReproLevelSyz ReproLevelC )
type RequestLogger ¶
type RequestLogger func(msg string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.