mocks

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBer

type DBer struct {
	mock.Mock
}

DBer is an autogenerated mock type for the DBer type

func (*DBer) FindAccountsByStatus

func (_m *DBer) FindAccountsByStatus(status db.AccountStatus) ([]*db.Account, error)

FindAccountsByStatus provides a mock function with given fields: status

func (*DBer) FindLeasesByAccount

func (_m *DBer) FindLeasesByAccount(accountID string) ([]*db.Lease, error)

FindLeasesByAccount provides a mock function with given fields: accountID

func (*DBer) FindLeasesByPrincipal

func (_m *DBer) FindLeasesByPrincipal(principalID string) ([]*db.Lease, error)

FindLeasesByPrincipal provides a mock function with given fields: principalID

func (*DBer) FindLeasesByStatus

func (_m *DBer) FindLeasesByStatus(status db.LeaseStatus) ([]*db.Lease, error)

FindLeasesByStatus provides a mock function with given fields: status

func (*DBer) GetAccount

func (_m *DBer) GetAccount(accountID string) (*db.Account, error)

GetAccount provides a mock function with given fields: accountID

func (*DBer) GetLease

func (_m *DBer) GetLease(accountID string, principalID string) (*db.Lease, error)

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

func (*DBer) GetLeaseByID

func (_m *DBer) GetLeaseByID(leaseID string) (*db.Lease, error)

GetLeaseByID provides a mock function with given fields: leaseID

func (*DBer) GetLeases

func (_m *DBer) GetLeases(input db.GetLeasesInput) (db.GetLeasesOutput, error)

GetLeases provides a mock function with given fields: input

func (*DBer) GetReadyAccount

func (_m *DBer) GetReadyAccount() (*db.Account, error)

GetReadyAccount provides a mock function with given fields:

func (*DBer) OrphanAccount

func (_m *DBer) OrphanAccount(accountID string) (*db.Account, error)

OrphanAccount provides a mock function with given fields: accountID

func (*DBer) PutAccount

func (_m *DBer) PutAccount(account db.Account) error

PutAccount provides a mock function with given fields: account

func (*DBer) PutLease

func (_m *DBer) PutLease(lease db.Lease) (*db.Lease, error)

PutLease provides a mock function with given fields: lease

func (*DBer) TransitionAccountStatus

func (_m *DBer) TransitionAccountStatus(accountID string, prevStatus db.AccountStatus, nextStatus db.AccountStatus) (*db.Account, error)

TransitionAccountStatus provides a mock function with given fields: accountID, prevStatus, nextStatus

func (*DBer) TransitionLeaseStatus

func (_m *DBer) TransitionLeaseStatus(accountID string, principalID string, prevStatus db.LeaseStatus, nextStatus db.LeaseStatus, leaseStatusReason db.LeaseStatusReason) (*db.Lease, error)

TransitionLeaseStatus provides a mock function with given fields: accountID, principalID, prevStatus, nextStatus, leaseStatusReason

func (*DBer) UpdateAccountPrincipalPolicyHash

func (_m *DBer) UpdateAccountPrincipalPolicyHash(accountID string, prevHash string, nextHash string) (*db.Account, error)

UpdateAccountPrincipalPolicyHash provides a mock function with given fields: accountID, prevHash, nextHash

func (*DBer) UpsertLease

func (_m *DBer) UpsertLease(lease db.Lease) (*db.Lease, error)

UpsertLease provides a mock function with given fields: lease

Jump to

Keyboard shortcuts

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