dao

package
v0.0.0-...-e8a045f Latest Latest
Warning

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

Go to latest
Published: Mar 13, 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) Count

func (_m *DAO) Count(ctx context.Context, query *q.Query) (int64, error)

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

func (*DAO) Create

func (_m *DAO) Create(ctx context.Context, label *model.Label) (int64, error)

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

func (*DAO) CreateReference

func (_m *DAO) CreateReference(ctx context.Context, reference *model.Reference) (int64, error)

CreateReference provides a mock function with given fields: ctx, reference

func (*DAO) Delete

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

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

func (*DAO) DeleteReference

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

DeleteReference provides a mock function with given fields: ctx, id

func (*DAO) DeleteReferences

func (_m *DAO) DeleteReferences(ctx context.Context, query *q.Query) (int64, error)

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

func (*DAO) Get

func (_m *DAO) Get(ctx context.Context, id int64) (*model.Label, error)

Get provides a mock function with given fields: ctx, id

func (*DAO) List

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

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

func (*DAO) ListByArtifact

func (_m *DAO) ListByArtifact(ctx context.Context, artifactID int64) ([]*model.Label, error)

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

func (*DAO) Update

func (_m *DAO) Update(ctx context.Context, label *model.Label) error

Update provides a mock function with given fields: ctx, label

Jump to

Keyboard shortcuts

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