dao

package
v0.0.0-...-a548ab7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 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 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) CreateImmutableRule

func (_m *DAO) CreateImmutableRule(ctx context.Context, ir *model.ImmutableRule) (int64, error)

CreateImmutableRule provides a mock function with given fields: ctx, ir

func (*DAO) DeleteImmutableRule

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

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

func (*DAO) GetImmutableRule

func (_m *DAO) GetImmutableRule(ctx context.Context, id int64) (*model.ImmutableRule, error)

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

func (*DAO) ListImmutableRules

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

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

func (*DAO) ToggleImmutableRule

func (_m *DAO) ToggleImmutableRule(ctx context.Context, id int64, status bool) error

ToggleImmutableRule provides a mock function with given fields: ctx, id, status

func (*DAO) UpdateImmutableRule

func (_m *DAO) UpdateImmutableRule(ctx context.Context, projectID int64, ir *model.ImmutableRule) error

UpdateImmutableRule provides a mock function with given fields: ctx, projectID, ir

Jump to

Keyboard shortcuts

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