analysis

package
v0.0.0-...-80e6c59 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StatusCompleted indicates that the analysis run completed successfully.
	StatusCompleted = Status("completed")

	// StatusErrorTimeout indicates that the analysis was aborted due to a
	// timeout.
	StatusErrorTimeout = Status("error_timeout")

	// StatusErrorAnalysis indicates that the package being analyzed failed
	// while running the specified command.
	//
	// The Stdout and Stderr in the Result should be consulted to understand
	// further why it failed.
	StatusErrorAnalysis = Status("error_analysis")

	// StatusErrorOther indicates an error during some part of the analysis
	// excluding errors covered by other statuses.
	StatusErrorOther = Status("error_other")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode string

Mode (analysis mode) is used to distinguish between whether static or dynamic analysis is being performed.

const (
	Dynamic Mode = "dynamic"
	Static  Mode = "static"
)

func AllModes

func AllModes() []Mode

func ModeFromString

func ModeFromString(s string) (Mode, bool)

type Status

type Status string

func StatusForRunResult

func StatusForRunResult(r *sandbox.RunResult) Status

func (Status) MarshalJSON

func (s Status) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

Jump to

Keyboard shortcuts

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