mocks

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountServicer

type AccountServicer struct {
	mock.Mock
}

AccountServicer is an autogenerated mock type for the AccountServicer type

func (*AccountServicer) Reset

func (_m *AccountServicer) Reset(id string) (*account.Account, error)

Reset provides a mock function with given fields: id

type Eventer

type Eventer struct {
	mock.Mock
}

Eventer is an autogenerated mock type for the Eventer type

func (*Eventer) LeaseCreate

func (_m *Eventer) LeaseCreate(account *lease.Lease) error

LeaseCreate provides a mock function with given fields: account

func (*Eventer) LeaseEnd

func (_m *Eventer) LeaseEnd(account *lease.Lease) error

LeaseEnd provides a mock function with given fields: account

func (*Eventer) LeaseUpdate

func (_m *Eventer) LeaseUpdate(old *lease.Lease, new *lease.Lease) error

LeaseUpdate provides a mock function with given fields: old, new

type MultipleReader

type MultipleReader struct {
	mock.Mock
}

MultipleReader is an autogenerated mock type for the MultipleReader type

func (*MultipleReader) List

func (_m *MultipleReader) List(_a0 *lease.Lease) (*lease.Leases, error)

List provides a mock function with given fields: _a0

type Reader

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func (*Reader) Get

func (_m *Reader) Get(leaseID string) (*lease.Lease, error)

Get provides a mock function with given fields: leaseID

func (*Reader) GetByAccountIDAndPrincipalID added in v0.30.1

func (_m *Reader) GetByAccountIDAndPrincipalID(accountID string, principalID string) (*lease.Lease, error)

GetByAccountIDAndPrincipalID provides a mock function with given fields: accountID, principalID

func (*Reader) List

func (_m *Reader) List(_a0 *lease.Lease) (*lease.Leases, error)

List provides a mock function with given fields: _a0

type ReaderWriter

type ReaderWriter struct {
	mock.Mock
}

ReaderWriter is an autogenerated mock type for the ReaderWriter type

func (*ReaderWriter) Get

func (_m *ReaderWriter) Get(leaseID string) (*lease.Lease, error)

Get provides a mock function with given fields: leaseID

func (*ReaderWriter) GetByAccountIDAndPrincipalID added in v0.30.1

func (_m *ReaderWriter) GetByAccountIDAndPrincipalID(accountID string, principalID string) (*lease.Lease, error)

GetByAccountIDAndPrincipalID provides a mock function with given fields: accountID, principalID

func (*ReaderWriter) List

func (_m *ReaderWriter) List(_a0 *lease.Lease) (*lease.Leases, error)

List provides a mock function with given fields: _a0

func (*ReaderWriter) Write

func (_m *ReaderWriter) Write(input *lease.Lease, lastModifiedOn *int64) error

Write provides a mock function with given fields: input, lastModifiedOn

type Servicer

type Servicer struct {
	mock.Mock
}

Servicer is an autogenerated mock type for the Servicer type

func (*Servicer) Create

func (_m *Servicer) Create(data *lease.Lease, principalSpentAmount float64) (*lease.Lease, error)

Create provides a mock function with given fields: data, principalSpentAmount

func (*Servicer) Delete

func (_m *Servicer) Delete(ID string) (*lease.Lease, error)

Delete provides a mock function with given fields: ID

func (*Servicer) Get

func (_m *Servicer) Get(ID string) (*lease.Lease, error)

Get provides a mock function with given fields: ID

func (*Servicer) GetByAccountIDAndPrincipalID added in v0.30.1

func (_m *Servicer) GetByAccountIDAndPrincipalID(accountID string, principalID string) (*lease.Lease, error)

GetByAccountIDAndPrincipalID provides a mock function with given fields: accountID, principalID

func (*Servicer) List

func (_m *Servicer) List(query *lease.Lease) (*lease.Leases, error)

List provides a mock function with given fields: query

func (*Servicer) ListPages

func (_m *Servicer) ListPages(query *lease.Lease, fn func(*lease.Leases) bool) error

ListPages provides a mock function with given fields: query, fn

type SingleReader

type SingleReader struct {
	mock.Mock
}

SingleReader is an autogenerated mock type for the SingleReader type

func (*SingleReader) Get

func (_m *SingleReader) Get(leaseID string) (*lease.Lease, error)

Get provides a mock function with given fields: leaseID

func (*SingleReader) GetByAccountIDAndPrincipalID added in v0.30.1

func (_m *SingleReader) GetByAccountIDAndPrincipalID(accountID string, principalID string) (*lease.Lease, error)

GetByAccountIDAndPrincipalID provides a mock function with given fields: accountID, principalID

type Writer

type Writer struct {
	mock.Mock
}

Writer is an autogenerated mock type for the Writer type

func (*Writer) Write

func (_m *Writer) Write(input *lease.Lease, lastModifiedOn *int64) error

Write provides a mock function with given fields: input, lastModifiedOn

Jump to

Keyboard shortcuts

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