analysis

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 21 Imported by: 0

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