Documentation ¶
Index ¶
- type Handler
- func (_m *Handler) GetPlaceHolder(ctx context.Context, artRepo string, artDigest string, scannerUUID string, ...) (*scan.Report, error)
- func (_m *Handler) GetSummary(ctx context.Context, ar *artifact.Artifact, mimeTypes []string) (map[string]interface{}, error)
- func (_m *Handler) JobVendorType() string
- func (_m *Handler) MakePlaceHolder(ctx context.Context, art *artifact.Artifact, r *scanner.Registration) ([]*scan.Report, error)
- func (_m *Handler) PostScan(ctx job.Context, sr *v1.ScanRequest, rp *scan.Report, rawReport string, ...) (string, error)
- func (_m *Handler) RequestParameters() map[string]interface{}
- func (_m *Handler) RequestProducesMineTypes() []string
- func (_m *Handler) RequiredPermissions() []*types.Policy
- func (_m *Handler) URLParameter(sr *v1.ScanRequest) (string, error)
- func (_m *Handler) Update(ctx context.Context, uuid string, report string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler is an autogenerated mock type for the Handler type
func NewHandler ¶
NewHandler creates a new instance of Handler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Handler) GetPlaceHolder ¶
func (_m *Handler) GetPlaceHolder(ctx context.Context, artRepo string, artDigest string, scannerUUID string, mimeType string) (*scan.Report, error)
GetPlaceHolder provides a mock function with given fields: ctx, artRepo, artDigest, scannerUUID, mimeType
func (*Handler) GetSummary ¶
func (_m *Handler) GetSummary(ctx context.Context, ar *artifact.Artifact, mimeTypes []string) (map[string]interface{}, error)
GetSummary provides a mock function with given fields: ctx, ar, mimeTypes
func (*Handler) JobVendorType ¶
JobVendorType provides a mock function with given fields:
func (*Handler) MakePlaceHolder ¶
func (_m *Handler) MakePlaceHolder(ctx context.Context, art *artifact.Artifact, r *scanner.Registration) ([]*scan.Report, error)
MakePlaceHolder provides a mock function with given fields: ctx, art, r
func (*Handler) PostScan ¶
func (_m *Handler) PostScan(ctx job.Context, sr *v1.ScanRequest, rp *scan.Report, rawReport string, startTime time.Time, robot *model.Robot) (string, error)
PostScan provides a mock function with given fields: ctx, sr, rp, rawReport, startTime, robot
func (*Handler) RequestParameters ¶
RequestParameters provides a mock function with given fields:
func (*Handler) RequestProducesMineTypes ¶
RequestProducesMineTypes provides a mock function with given fields:
func (*Handler) RequiredPermissions ¶
RequiredPermissions provides a mock function with given fields:
func (*Handler) URLParameter ¶
func (_m *Handler) URLParameter(sr *v1.ScanRequest) (string, error)
URLParameter provides a mock function with given fields: sr