Documentation
¶
Index ¶
- func IsNoFilesError(err error) bool
- func NewBundle(snykCode deepcode.DeepcodeClient, instrumentor observability.Instrumentor, ...) *deepCodeBundle
- func NewBundleManager(deepcodeClient deepcode.DeepcodeClient, logger *zerolog.Logger, ...) *bundleManager
- type Batch
- type Bundle
- type BundleManager
- type NoFilesError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNoFilesError ¶
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 BundleManager ¶
type BundleManager interface {
Create(ctx context.Context,
requestId string,
rootPath string,
filePaths <-chan string,
changedFiles map[string]bool,
) (bundle Bundle, err error)
// CreateEmpty does not include the file contents in the bundle.
CreateEmpty(ctx context.Context,
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
Click to show internal directories.
Click to hide internal directories.