bundle

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 9 Imported by: 3 modules, 1 package

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 IsNoFilesError

func IsNoFilesError(err error) bool

func NewBundle

func NewBundle(
	snykCode deepcode.DeepcodeClient,
	instrumentor observability.Instrumentor,
	errorReporter observability.ErrorReporter,
	logger *zerolog.Logger,
	rootPath string,
	bundleHash string,
	files map[string]deepcode.BundleFile,
	limitToFiles []string,
	missingFiles []string,
) *deepCodeBundle

func NewBundleManager

func NewBundleManager(
	deepcodeClient deepcode.DeepcodeClient,
	logger *zerolog.Logger,
	instrumentor observability.Instrumentor,
	errorReporter observability.ErrorReporter,
	trackerFactory scan.TrackerFactory,
) *bundleManager

Types

type Batch

type Batch struct {
	// contains filtered or unexported fields
}

func NewBatch

func NewBatch(documents map[string]deepcode.BundleFile) *Batch

type Bundle

type Bundle interface {
	UploadBatch(ctx context.Context, requestId string, batch *Batch) error
	GetBundleHash() string
	GetFiles() map[string]deepcode.BundleFile
	GetMissingFiles() []string
	GetLimitToFiles() []string
	GetRootPath() string
}

type BundleManager

type BundleManager interface {
	Create(ctx context.Context,
		requestId string,
		rootPath string,
		filePaths <-chan string,
		changedFiles map[string]bool,
	) (bundle Bundle, err error)

	Upload(
		ctx context.Context,
		requestId string,
		originalBundle Bundle,
		files map[string]deepcode.BundleFile,
	) (Bundle, error)
}

type NoFilesError

type NoFilesError struct{}

func (NoFilesError) Error

func (e NoFilesError) Error() string

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