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) Undo() error
- type FileService
- type FileServiceImpl
- type KeyboardService
- type KeyboardServiceInMemoryImpl
- type LicenseService
- type LicenseServiceImpl
- type ResultService
- type ResultServiceImpl
- type ScanService
- type ScanServicePythonImpl
- 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 ScanossSettingsService
- type ScanossSettingsServiceImp
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) }
func NewComponentServiceImpl ¶
func NewComponentServiceImpl(repo repository.ComponentRepository, scanossSettingsRepo repository.ScanossSettingsRepository, resultRepo repository.ResultRepository, 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) 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 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 ¶
func NewLicenseServiceImpl ¶
func NewLicenseServiceImpl(repo repository.LicenseRepository) LicenseService
type LicenseServiceImpl ¶
type LicenseServiceImpl struct {
// contains filtered or unexported fields
}
type ResultService ¶
type ResultService interface { GetAll(dto *entities.RequestResultDTO) ([]entities.ResultDTO, error) 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) 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) 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 ScanossSettingsService ¶
type ScanossSettingsServiceImp ¶
type ScanossSettingsServiceImp struct {
// contains filtered or unexported fields
}
func NewScanossSettingsServiceImpl ¶
func NewScanossSettingsServiceImpl(r repository.ScanossSettingsRepository) *ScanossSettingsServiceImp
func (*ScanossSettingsServiceImp) GetSettings ¶
func (s *ScanossSettingsServiceImp) GetSettings() *entities.SettingsFile
func (*ScanossSettingsServiceImp) HasUnsavedChanges ¶
func (s *ScanossSettingsServiceImp) HasUnsavedChanges() (bool, error)
func (*ScanossSettingsServiceImp) Save ¶
func (s *ScanossSettingsServiceImp) Save() error
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_settings_service.go
- scanoss_settings_service_impl.go
Click to show internal directories.
Click to hide internal directories.