report

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuzzingMetric

type FuzzingMetric struct {
	Timestamp               time.Time `json:"timestamp,omitempty"`
	ExecutionsPerSecond     int32     `json:"executions_per_second,omitempty"`
	Features                int32     `json:"features,omitempty"`
	CorpusSize              int32     `json:"corpus_size,omitempty"`
	SecondsSinceLastFeature uint64    `json:"seconds_since_last_coverage,omitempty"`
	TotalExecutions         uint64    `json:"total_executions,omitempty"`
	Edges                   int32     `json:"edges,omitempty"`
	SecondsSinceLastEdge    uint64    `json:"seconds_since_last_edge,omitempty"`
}

type Handler

type Handler interface {
	Handle(report *Report) error
}

type Report

type Report struct {
	Status   RunStatus        `json:"status,omitempty"`
	Metric   *FuzzingMetric   `json:"metric,omitempty"`
	Finding  *finding.Finding `json:"finding,omitempty"`
	NumSeeds uint             `json:"num_seeds,omitempty"`
}

func (*Report) GetFinding

func (x *Report) GetFinding() *finding.Finding

type RunStatus

type RunStatus string
const (
	RunStatusUnspecified             RunStatus = "UNSPECIFIED"
	RunStatusPending                 RunStatus = "PENDING"
	RunStatusCompiling               RunStatus = "COMPILING"
	RunStatusRunning                 RunStatus = "RUNNING"
	RunStatusStopped                 RunStatus = "STOPPED"
	RunStatusFailed                  RunStatus = "FAILED"
	RunStatusSucceeded               RunStatus = "SUCCEEDED"
	RunStatusUnknown                 RunStatus = "UNKNOWN"
	RunStatusInitializing            RunStatus = "INITIALIZING"
	RunStatusFailedToStart           RunStatus = "FAILED_TO_START"
	RunStatusWaitingForFuzzingAgents RunStatus = "WAITING_FOR_FUZZING_AGENTS"
)

These constants must have this exact value (in uppercase) to be able to parse JSON-marshalled reports as protobuf reports which use an enum for this field.

Jump to

Keyboard shortcuts

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