codeclient

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 7 Imported by: 2

README

code-client-go

A library that exposes scanning capabilities for Snyk Code that can be used in the Snyk CLI as well as Snyk IDE plugins using the Snyk Language Server.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCodeScanner added in v0.4.0

func NewCodeScanner(
	bundleManager bundle.BundleManager,
	instrumentor observability.Instrumentor,
	errorReporter observability.ErrorReporter,
	analytics observability.Analytics,
) *codeScanner

NewCodeScanner creates a Code Scanner which can be used to trigger Snyk Code on a folder.

Types

type CodeScanner added in v0.4.0

type CodeScanner interface {
	UploadAndAnalyze(
		ctx context.Context,
		host string,
		path string,
		files <-chan string,
		changedFiles map[string]bool,
		scanMetrics observability.ScanMetrics,
	) (*sarif.SarifResponse, bundle.Bundle, error)
}

Directories

Path Synopsis
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.
* © 2022-2024 Snyk Limited All rights reserved.
* © 2022-2024 Snyk Limited All rights reserved.
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
internal
mocks
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