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, scanJobID string) (*job.ScanJob, error)
- func (s *Store) UpdateReport(ctx context.Context, scanJobID string, report harbor.ScanReport) error
- func (s *Store) UpdateStatus(ctx context.Context, scanJobID string, 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 Transformer ¶
func NewTransformer ¶
func NewTransformer() *Transformer
func (*Transformer) Transform ¶
func (t *Transformer) Transform(artifact harbor.Artifact, source []tunnel.Vulnerability) harbor.ScanReport
Click to show internal directories.
Click to hide internal directories.