Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyExpectations ¶
func ApplyExpectations(t *testing.T, mock interface{}, expectations ...*Expectation)
ApplyExpectation 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(scanJobID string, report harbor.ScanReport) error
func (*Store) UpdateStatus ¶
type Transformer ¶
func NewTransformer ¶
func NewTransformer() *Transformer
func (*Transformer) Transform ¶
func (t *Transformer) Transform(artifact harbor.Artifact, source []trivy.Vulnerability) harbor.ScanReport
Click to show internal directories.
Click to hide internal directories.