service

package
v0.0.0-...-39982f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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)

func (*JobObjectService) Create

func (j *JobObjectService) Create(imageID string, namespace string) (*batchv1.Job, error)

type JobObjectServiceInterface

type JobObjectServiceInterface interface {
	Create(imageID string, namespace string) (*batchv1.Job, 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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL