Documentation ¶
Index ¶
- Constants
- func ApplyExpectations(t *testing.T, mock interface{}, expectations ...*Expectation)
- type Enqueuer
- type Expectation
- type Store
- func (s *Store) Create(ctx context.Context, scanJob job.ScanJob) error
- func (s *Store) Get(ctx context.Context, scanJobKey job.ScanJobKey) (*job.ScanJob, error)
- func (s *Store) UpdateReport(ctx context.Context, scanJobKey job.ScanJobKey, report harbor.ScanReport) error
- func (s *Store) UpdateStatus(ctx context.Context, scanJobKey job.ScanJobKey, newStatus job.ScanJobStatus, ...) error
- type Transformer
Constants ¶
View Source
const Anything = mock.Anything
Variables ¶
This section is empty.
Functions ¶
func ApplyExpectations ¶
func ApplyExpectations(t *testing.T, mock interface{}, expectations ...*Expectation)
ApplyExpectations applies the specified expectations on a given mock.
Types ¶
type Enqueuer ¶
func NewEnqueuer ¶
func NewEnqueuer() *Enqueuer
type Expectation ¶
type Expectation struct { Method string Args []interface{} ReturnArgs []interface{} }
Expectation represents an expectation of a method being called and its return values.
type Store ¶
func (*Store) UpdateReport ¶
func (s *Store) UpdateReport(ctx context.Context, scanJobKey job.ScanJobKey, report harbor.ScanReport) error
func (*Store) UpdateStatus ¶
func (s *Store) UpdateStatus(ctx context.Context, scanJobKey job.ScanJobKey, newStatus job.ScanJobStatus, error ...string) error
type Transformer ¶
func NewTransformer ¶
func NewTransformer() *Transformer
func (*Transformer) Transform ¶
func (t *Transformer) Transform(mediaType api.MediaType, req harbor.ScanRequest, source trivy.Report) harbor.ScanReport
Click to show internal directories.
Click to hide internal directories.