sbom

package
v0.0.0-...-c97253f Latest Latest
Warning

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

Go to latest
Published: Sep 21, 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 *model.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) DeleteByArtifactID

func (_m *Manager) DeleteByArtifactID(ctx context.Context, artifactID int64) error

DeleteByArtifactID provides a mock function with given fields: ctx, artifactID

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, artifactID int64, registrationUUID string, mimeType string, mediaType string) ([]*model.Report, error)

GetBy provides a mock function with given fields: ctx, artifactID, registrationUUID, mimeType, mediaType

func (*Manager) List

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

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

func (*Manager) Update

func (_m *Manager) Update(ctx context.Context, r *model.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, report string) error

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

Jump to

Keyboard shortcuts

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