dao

package
v0.0.0-...-ec03ccd Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 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 DAO

type DAO struct {
	mock.Mock
}

DAO is an autogenerated mock type for the DAO type

func NewDAO

func NewDAO(t interface {
	mock.TestingT
	Cleanup(func())
}) *DAO

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

func (_m *DAO) Create(ctx context.Context, systemArtifact *model.SystemArtifact) (int64, error)

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

func (*DAO) Delete

func (_m *DAO) Delete(ctx context.Context, vendor string, repository string, digest string) error

Delete provides a mock function with given fields: ctx, vendor, repository, digest

func (*DAO) Get

func (_m *DAO) Get(ctx context.Context, vendor string, repository string, digest string) (*model.SystemArtifact, error)

Get provides a mock function with given fields: ctx, vendor, repository, digest

func (*DAO) List

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

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

func (*DAO) Size

func (_m *DAO) Size(ctx context.Context) (int64, error)

Size provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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