analysis

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 21 Imported by: 0 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

func WithErrorReporter added in v1.7.0

func WithErrorReporter(errorReporter observability.ErrorReporter) func(*analysisOrchestrator)

func WithFlow added in v1.7.0

func WithFlow(flow string) func(*analysisOrchestrator)

func WithInstrumentor added in v1.7.0

func WithInstrumentor(instrumentor observability.Instrumentor) func(*analysisOrchestrator)

func WithLogger added in v1.7.0

func WithLogger(logger *zerolog.Logger) func(*analysisOrchestrator)

func WithTrackerFactory added in v1.7.0

func WithTrackerFactory(factory scan.TrackerFactory) func(*analysisOrchestrator)

Types

type AnalysisOrchestrator added in v1.4.0

type AnalysisOrchestrator interface {
	CreateWorkspace(ctx context.Context, orgId string, requestId string, path scan.Target, bundleHash string) (string, error)
	RunAnalysis(ctx context.Context, orgId string, rootPath string, workspaceId string) (*sarif.SarifResponse, error)
	RunIncrementalAnalysis(ctx context.Context, orgId string, rootPath string, workspaceId string, limitToFiles []string) (*sarif.SarifResponse, error)
}

func NewAnalysisOrchestrator added in v1.4.0

func NewAnalysisOrchestrator(
	config config.Config,
	httpClient codeClientHTTP.HTTPClient,
	options ...OptionFunc,
) AnalysisOrchestrator

type OptionFunc added in v1.5.0

type OptionFunc func(*analysisOrchestrator)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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