Documentation
¶
Index ¶
- func IsNoFilesError(err error) bool
- func NewBundle(snykCode deepcode.SnykCodeClient, instrumentor observability.Instrumentor, ...) *deepCodeBundle
- func NewBundleManager(logger *zerolog.Logger, SnykCode deepcode.SnykCodeClient, ...) *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.SnykCodeClient, instrumentor observability.Instrumentor, errorReporter observability.ErrorReporter, logger *zerolog.Logger, bundleHash string, files map[string]deepcode.BundleFile, limitToFiles []string, missingFiles []string, ) *deepCodeBundle
func NewBundleManager ¶
func NewBundleManager( logger *zerolog.Logger, SnykCode deepcode.SnykCodeClient, instrumentor observability.Instrumentor, errorReporter observability.ErrorReporter, ) *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)
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.