Documentation
¶
Index ¶
- type ComponentService
- type ComponentServiceImpl
- func (s *ComponentServiceImpl) CanRedo() bool
- func (s *ComponentServiceImpl) CanUndo() bool
- func (s *ComponentServiceImpl) ClearAllFilters() error
- func (s *ComponentServiceImpl) FilterComponents(dto []entities.ComponentFilterDTO) error
- func (s *ComponentServiceImpl) GetComponentByPath(filePath string) (entities.ComponentDTO, error)
- func (s *ComponentServiceImpl) GetDeclaredComponents() ([]entities.DeclaredComponent, error)
- func (s *ComponentServiceImpl) GetInitialFilters() entities.InitialFilters
- func (s *ComponentServiceImpl) Redo() error
- func (s *ComponentServiceImpl) SearchComponents(request entities.ComponentSearchRequest) (entities.ComponentSearchResponse, error)
- func (s *ComponentServiceImpl) Undo() error
- type FileService
- type FileServiceImpl
- type HTTPClient
- type KeyboardService
- type KeyboardServiceInMemoryImpl
- type LicenseService
- type LicenseServiceImpl
- type QueryParams
- type ResultService
- type ResultServiceImpl
- type ScanService
- type ScanServicePythonImpl
- func (s *ScanServicePythonImpl) AbortScan() error
- func (s *ScanServicePythonImpl) CheckDependencies() error
- func (s *ScanServicePythonImpl) GetDefaultScanArgs() []string
- func (s *ScanServicePythonImpl) GetScanArgs() []entities.ScanArgDef
- func (s *ScanServicePythonImpl) GetSensitiveDefaultScanArgs() []string
- func (s *ScanServicePythonImpl) Scan(args []string) error
- func (s *ScanServicePythonImpl) ScanStream(args []string) error
- func (s *ScanServicePythonImpl) SetContext(ctx context.Context)
- type ScanossApiService
- type ScanossApiServiceHttpImpl
- func (s *ScanossApiServiceHttpImpl) GetLicensesByPurl(request entities.ComponentRequest) (entities.GetLicensesByPurlResponse, error)
- func (s *ScanossApiServiceHttpImpl) GetWithParams(ctx context.Context, endpoint string, params QueryParams) (*http.Response, error)
- func (s *ScanossApiServiceHttpImpl) SearchComponents(request entities.ComponentSearchRequest) (entities.ComponentSearchResponse, error)
- func (s *ScanossApiServiceHttpImpl) SetContext(ctx context.Context)
- type ScanossSettingsService
- type ScanossSettingsServiceImp
- func (s *ScanossSettingsServiceImp) AddStagedScanningSkipPattern(pattern string) error
- func (s *ScanossSettingsServiceImp) CommitStagedScanningSkipPatterns() error
- func (s *ScanossSettingsServiceImp) DiscardStagedScanningSkipPatterns() error
- func (s *ScanossSettingsServiceImp) GetSettings() *entities.SettingsFile
- func (s *ScanossSettingsServiceImp) HasStagedScanningSkipPatternChanges() bool
- func (s *ScanossSettingsServiceImp) HasUnsavedChanges() (bool, error)
- func (s *ScanossSettingsServiceImp) RemoveStagedScanningSkipPattern(path string, pattern string) error
- func (s *ScanossSettingsServiceImp) Save() error
- type TreeService
- type TreeServiceImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentService ¶
type ComponentService interface {
GetComponentByPath(filePath string) (entities.ComponentDTO, error)
FilterComponents(dto []entities.ComponentFilterDTO) error
Undo() error
Redo() error
CanUndo() bool
CanRedo() bool
GetDeclaredComponents() ([]entities.DeclaredComponent, error)
SearchComponents(request entities.ComponentSearchRequest) (entities.ComponentSearchResponse, error)
}
func NewComponentServiceImpl ¶
func NewComponentServiceImpl(repo repository.ComponentRepository, scanossSettingsRepo repository.ScanossSettingsRepository, resultRepo repository.ResultRepository, scanossApiService ScanossApiService, mapper mappers.ComponentMapper) ComponentService
type ComponentServiceImpl ¶
type ComponentServiceImpl struct {
// contains filtered or unexported fields
}
func (*ComponentServiceImpl) CanRedo ¶
func (s *ComponentServiceImpl) CanRedo() bool
func (*ComponentServiceImpl) CanUndo ¶
func (s *ComponentServiceImpl) CanUndo() bool
func (*ComponentServiceImpl) ClearAllFilters ¶
func (s *ComponentServiceImpl) ClearAllFilters() error
func (*ComponentServiceImpl) FilterComponents ¶
func (s *ComponentServiceImpl) FilterComponents(dto []entities.ComponentFilterDTO) error
func (*ComponentServiceImpl) GetComponentByPath ¶
func (s *ComponentServiceImpl) GetComponentByPath(filePath string) (entities.ComponentDTO, error)
func (*ComponentServiceImpl) GetDeclaredComponents ¶
func (s *ComponentServiceImpl) GetDeclaredComponents() ([]entities.DeclaredComponent, error)
func (*ComponentServiceImpl) GetInitialFilters ¶
func (s *ComponentServiceImpl) GetInitialFilters() entities.InitialFilters
func (*ComponentServiceImpl) Redo ¶
func (s *ComponentServiceImpl) Redo() error
func (*ComponentServiceImpl) SearchComponents ¶ added in v0.8.0
func (s *ComponentServiceImpl) SearchComponents(request entities.ComponentSearchRequest) (entities.ComponentSearchResponse, error)
Searches for components using the SCANOSS API
func (*ComponentServiceImpl) Undo ¶
func (s *ComponentServiceImpl) Undo() error
type FileService ¶
type FileService interface {
GetRemoteFile(path string) (entities.FileDTO, error)
GetLocalFile(path string) (entities.FileDTO, error)
}
func NewFileService ¶
func NewFileService(repo repository.FileRepository, componentRepo repository.ComponentRepository) FileService
type FileServiceImpl ¶
type FileServiceImpl struct {
// contains filtered or unexported fields
}
func (*FileServiceImpl) GetLocalFile ¶
func (c *FileServiceImpl) GetLocalFile(path string) (entities.FileDTO, error)
func (*FileServiceImpl) GetRemoteFile ¶
func (c *FileServiceImpl) GetRemoteFile(path string) (entities.FileDTO, error)
type HTTPClient ¶ added in v0.8.0
type KeyboardService ¶
type KeyboardService interface {
GetShortcuts() []entities.Shortcut
GetGroupedShortcuts() map[entities.Group][]entities.Shortcut
}
func NewKeyboardServiceInMemoryImpl ¶
func NewKeyboardServiceInMemoryImpl() KeyboardService
type KeyboardServiceInMemoryImpl ¶
type KeyboardServiceInMemoryImpl struct {
}
func (*KeyboardServiceInMemoryImpl) GetGroupedShortcuts ¶
func (k *KeyboardServiceInMemoryImpl) GetGroupedShortcuts() map[entities.Group][]entities.Shortcut
func (*KeyboardServiceInMemoryImpl) GetShortcuts ¶
func (k *KeyboardServiceInMemoryImpl) GetShortcuts() []entities.Shortcut
type LicenseService ¶
type LicenseService interface {
GetAll() ([]entities.License, error)
GetLicensesByPurl(request entities.ComponentRequest) (entities.GetLicensesByPurlResponse, error)
}
func NewLicenseServiceImpl ¶
func NewLicenseServiceImpl(repo repository.LicenseRepository, scanossApiService ScanossApiService) LicenseService
type LicenseServiceImpl ¶
type LicenseServiceImpl struct {
// contains filtered or unexported fields
}
func (*LicenseServiceImpl) GetAll ¶
func (s *LicenseServiceImpl) GetAll() ([]entities.License, error)
func (*LicenseServiceImpl) GetLicensesByPurl ¶ added in v0.8.0
func (s *LicenseServiceImpl) GetLicensesByPurl(request entities.ComponentRequest) (entities.GetLicensesByPurlResponse, error)
type QueryParams ¶ added in v0.8.0
type ResultService ¶
type ResultService interface {
GetAll(dto *entities.RequestResultDTO) ([]entities.ResultDTO, error)
GetByPath(path string) entities.ResultDTO
SetContext(ctx context.Context)
}
func NewResultServiceImpl ¶
func NewResultServiceImpl(repo repository.ResultRepository, mapper mappers.ResultMapper) ResultService
type ResultServiceImpl ¶
type ResultServiceImpl struct {
// contains filtered or unexported fields
}
func (*ResultServiceImpl) GetAll ¶
func (s *ResultServiceImpl) GetAll(dto *entities.RequestResultDTO) ([]entities.ResultDTO, error)
func (*ResultServiceImpl) GetByPath ¶ added in v0.6.5
func (s *ResultServiceImpl) GetByPath(path string) entities.ResultDTO
func (*ResultServiceImpl) SetContext ¶
func (s *ResultServiceImpl) SetContext(ctx context.Context)
type ScanService ¶
type ScanServicePythonImpl ¶
type ScanServicePythonImpl struct {
// contains filtered or unexported fields
}
func NewScanServicePythonImpl ¶
func NewScanServicePythonImpl() *ScanServicePythonImpl
func (*ScanServicePythonImpl) AbortScan ¶ added in v0.7.0
func (s *ScanServicePythonImpl) AbortScan() error
func (*ScanServicePythonImpl) CheckDependencies ¶
func (s *ScanServicePythonImpl) CheckDependencies() error
func (*ScanServicePythonImpl) GetDefaultScanArgs ¶
func (s *ScanServicePythonImpl) GetDefaultScanArgs() []string
func (*ScanServicePythonImpl) GetScanArgs ¶ added in v0.6.0
func (s *ScanServicePythonImpl) GetScanArgs() []entities.ScanArgDef
func (*ScanServicePythonImpl) GetSensitiveDefaultScanArgs ¶
func (s *ScanServicePythonImpl) GetSensitiveDefaultScanArgs() []string
func (*ScanServicePythonImpl) Scan ¶
func (s *ScanServicePythonImpl) Scan(args []string) error
func (*ScanServicePythonImpl) ScanStream ¶
func (s *ScanServicePythonImpl) ScanStream(args []string) error
func (*ScanServicePythonImpl) SetContext ¶
func (s *ScanServicePythonImpl) SetContext(ctx context.Context)
type ScanossApiService ¶ added in v0.8.0
type ScanossApiService interface {
SearchComponents(request entities.ComponentSearchRequest) (entities.ComponentSearchResponse, error)
GetLicensesByPurl(request entities.ComponentRequest) (entities.GetLicensesByPurlResponse, error)
SetContext(ctx context.Context)
}
func NewScanossApiServiceHttpImpl ¶ added in v0.8.0
func NewScanossApiServiceHttpImpl() (ScanossApiService, error)
type ScanossApiServiceHttpImpl ¶ added in v0.8.0
type ScanossApiServiceHttpImpl struct {
// contains filtered or unexported fields
}
func (*ScanossApiServiceHttpImpl) GetLicensesByPurl ¶ added in v0.8.0
func (s *ScanossApiServiceHttpImpl) GetLicensesByPurl(request entities.ComponentRequest) (entities.GetLicensesByPurlResponse, error)
GetLicenseByPurl fetches licenses for a given purl/component combination using the SCANOSS HTTP API
func (*ScanossApiServiceHttpImpl) GetWithParams ¶ added in v0.8.0
func (s *ScanossApiServiceHttpImpl) GetWithParams(ctx context.Context, endpoint string, params QueryParams) (*http.Response, error)
func (*ScanossApiServiceHttpImpl) SearchComponents ¶ added in v0.8.0
func (s *ScanossApiServiceHttpImpl) SearchComponents(request entities.ComponentSearchRequest) (entities.ComponentSearchResponse, error)
SearchComponents searches for components using the SCANOSS HTTP API
func (*ScanossApiServiceHttpImpl) SetContext ¶ added in v0.8.0
func (s *ScanossApiServiceHttpImpl) SetContext(ctx context.Context)
type ScanossSettingsService ¶
type ScanossSettingsService interface {
Save() error
HasUnsavedChanges() (bool, error)
AddStagedScanningSkipPattern(pattern string) error
RemoveStagedScanningSkipPattern(path string, pattern string) error
CommitStagedScanningSkipPatterns() error
DiscardStagedScanningSkipPatterns() error
HasStagedScanningSkipPatternChanges() bool
}
type ScanossSettingsServiceImp ¶
type ScanossSettingsServiceImp struct {
// contains filtered or unexported fields
}
func NewScanossSettingsServiceImpl ¶
func NewScanossSettingsServiceImpl(r repository.ScanossSettingsRepository) *ScanossSettingsServiceImp
func (*ScanossSettingsServiceImp) AddStagedScanningSkipPattern ¶ added in v0.6.5
func (s *ScanossSettingsServiceImp) AddStagedScanningSkipPattern(pattern string) error
func (*ScanossSettingsServiceImp) CommitStagedScanningSkipPatterns ¶ added in v0.6.5
func (s *ScanossSettingsServiceImp) CommitStagedScanningSkipPatterns() error
func (*ScanossSettingsServiceImp) DiscardStagedScanningSkipPatterns ¶ added in v0.6.5
func (s *ScanossSettingsServiceImp) DiscardStagedScanningSkipPatterns() error
func (*ScanossSettingsServiceImp) GetSettings ¶
func (s *ScanossSettingsServiceImp) GetSettings() *entities.SettingsFile
func (*ScanossSettingsServiceImp) HasStagedScanningSkipPatternChanges ¶ added in v0.6.5
func (s *ScanossSettingsServiceImp) HasStagedScanningSkipPatternChanges() bool
func (*ScanossSettingsServiceImp) HasUnsavedChanges ¶
func (s *ScanossSettingsServiceImp) HasUnsavedChanges() (bool, error)
func (*ScanossSettingsServiceImp) RemoveStagedScanningSkipPattern ¶ added in v0.6.5
func (s *ScanossSettingsServiceImp) RemoveStagedScanningSkipPattern(path string, pattern string) error
func (*ScanossSettingsServiceImp) Save ¶
func (s *ScanossSettingsServiceImp) Save() error
type TreeService ¶ added in v0.6.5
type TreeServiceImpl ¶ added in v0.6.5
type TreeServiceImpl struct {
// contains filtered or unexported fields
}
func NewTreeServiceImpl ¶ added in v0.6.5
func NewTreeServiceImpl(resultService ResultService, scanossSettingsRepo repository.ScanossSettingsRepository) *TreeServiceImpl
Source Files
¶
- component_service.go
- component_service_impl.go
- file_service.go
- file_service_impl.go
- keyboard_service.go
- keyboard_service_in_memory_impl.go
- license_service.go
- license_service_impl.go
- result_service.go
- result_service_impl.go
- scan_service.go
- scan_service_python_cli_impl.go
- scanoss_api_service.go
- scanoss_api_service_http_impl.go
- scanoss_settings_service.go
- scanoss_settings_service_impl.go
- tree_service.go
- tree_service_impl.go
Click to show internal directories.
Click to hide internal directories.