scan

package
v0.0.0-...-21de424 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func NewHandler

func NewHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *Handler

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

func (_m *Handler) JobVendorType() string

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

func (_m *Handler) RequestParameters() map[string]interface{}

RequestParameters provides a mock function with given fields:

func (*Handler) RequestProducesMineTypes

func (_m *Handler) RequestProducesMineTypes() []string

RequestProducesMineTypes provides a mock function with given fields:

func (*Handler) RequiredPermissions

func (_m *Handler) RequiredPermissions() []*types.Policy

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

func (*Handler) Update

func (_m *Handler) Update(ctx context.Context, uuid string, report string) error

Update provides a mock function with given fields: ctx, uuid, report

Directories

Path Synopsis
rest
v1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL