Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface {
Scan(req harbor.ScanRequest) (harbor.ScanReport, error)
}
func NewAdapter ¶
func NewAdapter(command aqua.Command, transformer Transformer) Adapter
type Enqueuer ¶
type Enqueuer interface {
Enqueue(request harbor.ScanRequest) (string, error)
}
Enqueuer wraps the Enqueue method. Enqueue enqueues the specify ScanRequest for async processing and returns the async job's identifier.
func NewEnqueuer ¶
NewEnqueuer constructs the default Enqueuer.
type MockEnqueuer ¶
func (*MockEnqueuer) Enqueue ¶
func (e *MockEnqueuer) Enqueue(request harbor.ScanRequest) (string, error)
type MockTransformer ¶
func (*MockTransformer) Transform ¶
func (t *MockTransformer) Transform(artifact harbor.Artifact, source aqua.ScanReport) harbor.ScanReport
type Transformer ¶
type Transformer interface {
Transform(artifact harbor.Artifact, source aqua.ScanReport) harbor.ScanReport
}
func NewTransformer ¶
func NewTransformer(clock ext.Clock) Transformer
Click to show internal directories.
Click to hide internal directories.