Documentation
¶
Index ¶
- func NewCodeScanner(config config.Config, httpClient codeClientHTTP.HTTPClient, ...) *codeScanner
- type AnalysisOption
- type CodeScanner
- type OptionFunc
- func WithErrorReporter(errorReporter observability.ErrorReporter) OptionFunc
- func WithFlow(flow string) OptionFunc
- func WithInstrumentor(instrumentor observability.Instrumentor) OptionFunc
- func WithLogger(logger *zerolog.Logger) OptionFunc
- func WithTrackerFactory(trackerFactory scan.TrackerFactory) OptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCodeScanner ¶ added in v0.4.0
func NewCodeScanner( config config.Config, httpClient codeClientHTTP.HTTPClient, options ...OptionFunc, ) *codeScanner
NewCodeScanner creates a Code Scanner which can be used to trigger Snyk Code on a folder.
Types ¶
type AnalysisOption ¶ added in v1.15.0
type AnalysisOption func(*analysis.AnalysisConfig)
func ReportLocalTest ¶ added in v1.15.0
func ReportLocalTest(projectName string, targetName string, targetReference string) AnalysisOption
func ReportRemoteTest ¶ added in v1.15.0
func ReportRemoteTest(projectId uuid.UUID, commitId string) AnalysisOption
type CodeScanner ¶ added in v0.4.0
type CodeScanner interface { Upload( ctx context.Context, requestId string, target scan.Target, files <-chan string, changedFiles map[string]bool, ) (bundle.Bundle, error) UploadAndAnalyze( ctx context.Context, requestId string, target scan.Target, files <-chan string, changedFiles map[string]bool, ) (*sarif.SarifResponse, string, error) }
type OptionFunc ¶ added in v1.4.4
type OptionFunc func(*codeScanner)
func WithErrorReporter ¶ added in v1.4.4
func WithErrorReporter(errorReporter observability.ErrorReporter) OptionFunc
func WithFlow ¶ added in v1.7.0
func WithFlow(flow string) OptionFunc
func WithInstrumentor ¶ added in v1.4.4
func WithInstrumentor(instrumentor observability.Instrumentor) OptionFunc
func WithLogger ¶ added in v1.4.4
func WithLogger(logger *zerolog.Logger) OptionFunc
func WithTrackerFactory ¶ added in v1.6.0
func WithTrackerFactory(trackerFactory scan.TrackerFactory) OptionFunc
Directories
¶
Path | Synopsis |
---|---|
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Package http defines the HTTP client used to interact with the Snyk Code API.
|
Package http defines the HTTP client used to interact with the Snyk Code API. |
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
internal
|
|
analysis/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
api/test/2024-12-21
Package v20241221 provides primitives to interact with the openapi HTTP API.
|
Package v20241221 provides primitives to interact with the openapi HTTP API. |
api/test/2024-12-21/common
Package v20241221 provides primitives to interact with the openapi HTTP API.
|
Package v20241221 provides primitives to interact with the openapi HTTP API. |
api/test/2024-12-21/models
Package v20241221 provides primitives to interact with the openapi HTTP API.
|
Package v20241221 provides primitives to interact with the openapi HTTP API. |
api/test/2024-12-21/parameters
Package v20241221 provides primitives to interact with the openapi HTTP API.
|
Package v20241221 provides primitives to interact with the openapi HTTP API. |
deepcode
* © 2024 Snyk Limited All rights reserved.
|
* © 2024 Snyk Limited All rights reserved. |
deepcode/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
util/testutil
* © 2024 Snyk Limited All rights reserved.
|
* © 2024 Snyk Limited All rights reserved. |
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
* © 2024 Snyk Limited All rights reserved.
|
* © 2024 Snyk Limited All rights reserved. |
mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.