repository

package
v0.0.0-...-a14a4d2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 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 Controller

type Controller struct {
	mock.Mock
}

Controller is an autogenerated mock type for the Controller type

func NewController

func NewController(t interface {
	mock.TestingT
	Cleanup(func())
}) *Controller

NewController creates a new instance of Controller. 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 (*Controller) AddPullCount

func (_m *Controller) AddPullCount(ctx context.Context, id int64, count uint64) error

AddPullCount provides a mock function with given fields: ctx, id, count

func (*Controller) Count

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

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

func (*Controller) Delete

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

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

func (*Controller) Ensure

func (_m *Controller) Ensure(ctx context.Context, name string) (bool, int64, error)

Ensure provides a mock function with given fields: ctx, name

func (*Controller) Get

func (_m *Controller) Get(ctx context.Context, id int64) (*model.RepoRecord, error)

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

func (*Controller) GetByName

func (_m *Controller) GetByName(ctx context.Context, name string) (*model.RepoRecord, error)

GetByName provides a mock function with given fields: ctx, name

func (*Controller) List

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

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

func (*Controller) Update

func (_m *Controller) Update(ctx context.Context, _a1 *model.RepoRecord, properties ...string) error

Update provides a mock function with given fields: ctx, _a1, properties

Jump to

Keyboard shortcuts

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