Documentation ¶
Index ¶
- Variables
- type JobObjectService
- type JobObjectServiceInterface
- type ScanService
- func (s *ScanService) DeleteScanResult(imageId string) error
- func (s *ScanService) GetScanResult(imageId string) (*database.ScanResult, error)
- func (s *ScanService) ListScanResults() ([]*database.ScanResult, error)
- func (s *ScanService) UpsertScanResult(imageId string, report string) (*database.ScanResult, error)
- type ScanServiceInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidCycloneDXBOM = errors.New("invalid CycloneDX BOM")
View Source
var JobTemplateYAML string
Functions ¶
This section is empty.
Types ¶
type JobObjectService ¶
type JobObjectService struct {
// contains filtered or unexported fields
}
func NewJobObjectService ¶
func NewJobObjectService() (*JobObjectService, error)
type ScanService ¶
type ScanService struct {
// contains filtered or unexported fields
}
func NewScanService ¶
func NewScanService(db *gorm.DB) *ScanService
func (*ScanService) DeleteScanResult ¶
func (s *ScanService) DeleteScanResult(imageId string) error
func (*ScanService) GetScanResult ¶
func (s *ScanService) GetScanResult(imageId string) (*database.ScanResult, error)
func (*ScanService) ListScanResults ¶
func (s *ScanService) ListScanResults() ([]*database.ScanResult, error)
func (*ScanService) UpsertScanResult ¶
func (s *ScanService) UpsertScanResult(imageId string, report string) (*database.ScanResult, error)
type ScanServiceInterface ¶
type ScanServiceInterface interface { GetScanResult(imageId string) (*database.ScanResult, error) ListScanResults() ([]*database.ScanResult, error) DeleteScanResult(imageId string) error UpsertScanResult(imageId string, report string) (*database.ScanResult, error) }
Click to show internal directories.
Click to hide internal directories.