analysis

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 24 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 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 WithResultType added in v1.12.0

func WithResultType(t testModels.Scan) 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)

	RunTest(ctx context.Context, orgId string, b bundle.Bundle, target scan.Target) (*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