report

package
v0.0.0-...-e417875 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) Create

func (_m *Manager) Create(ctx context.Context, r *scan.Report) (string, error)

Create provides a mock function with given fields: ctx, r

func (*Manager) Delete

func (_m *Manager) Delete(ctx context.Context, uuid string) error

Delete provides a mock function with given fields: ctx, uuid

func (*Manager) DeleteByDigests

func (_m *Manager) DeleteByDigests(ctx context.Context, digests ...string) error

DeleteByDigests provides a mock function with given fields: ctx, digests

func (*Manager) DeleteByExtraAttr

func (_m *Manager) DeleteByExtraAttr(ctx context.Context, mimeType string, attrName string, attrValue string) error

DeleteByExtraAttr provides a mock function with given fields: ctx, mimeType, attrName, attrValue

func (*Manager) GetBy

func (_m *Manager) GetBy(ctx context.Context, digest string, registrationUUID string, mimeTypes []string) ([]*scan.Report, error)

GetBy provides a mock function with given fields: ctx, digest, registrationUUID, mimeTypes

func (*Manager) List

func (_m *Manager) List(ctx context.Context, query *q.Query) ([]*scan.Report, error)

List provides a mock function with given fields: ctx, query

func (*Manager) Update

func (_m *Manager) Update(ctx context.Context, r *scan.Report, cols ...string) error

Update provides a mock function with given fields: ctx, r, cols

func (*Manager) UpdateReportData

func (_m *Manager) UpdateReportData(ctx context.Context, uuid string, _a2 string) error

UpdateReportData provides a mock function with given fields: ctx, uuid, _a2

Jump to

Keyboard shortcuts

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