Documentation ¶
Index ¶
- type DBer
- func (_m *DBer) FindAccountsByStatus(status db.AccountStatus) ([]*db.Account, error)
- func (_m *DBer) FindLeasesByAccount(accountID string) ([]*db.Lease, error)
- func (_m *DBer) FindLeasesByPrincipal(principalID string) ([]*db.Lease, error)
- func (_m *DBer) FindLeasesByStatus(status db.LeaseStatus) ([]*db.Lease, error)
- func (_m *DBer) GetAccount(accountID string) (*db.Account, error)
- func (_m *DBer) GetLease(accountID string, principalID string) (*db.Lease, error)
- func (_m *DBer) GetLeaseByID(leaseID string) (*db.Lease, error)
- func (_m *DBer) GetLeases(input db.GetLeasesInput) (db.GetLeasesOutput, error)
- func (_m *DBer) GetReadyAccount() (*db.Account, error)
- func (_m *DBer) OrphanAccount(accountID string) (*db.Account, error)
- func (_m *DBer) PutAccount(account db.Account) error
- func (_m *DBer) PutLease(lease db.Lease) (*db.Lease, error)
- func (_m *DBer) TransitionAccountStatus(accountID string, prevStatus db.AccountStatus, nextStatus db.AccountStatus) (*db.Account, error)
- func (_m *DBer) TransitionLeaseStatus(accountID string, principalID string, prevStatus db.LeaseStatus, ...) (*db.Lease, error)
- func (_m *DBer) UpdateAccountPrincipalPolicyHash(accountID string, prevHash string, nextHash string) (*db.Account, error)
- func (_m *DBer) UpsertLease(lease db.Lease) (*db.Lease, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBer ¶
DBer is an autogenerated mock type for the DBer type
func (*DBer) FindAccountsByStatus ¶
FindAccountsByStatus provides a mock function with given fields: status
func (*DBer) FindLeasesByAccount ¶
FindLeasesByAccount provides a mock function with given fields: accountID
func (*DBer) FindLeasesByPrincipal ¶
FindLeasesByPrincipal provides a mock function with given fields: principalID
func (*DBer) FindLeasesByStatus ¶
FindLeasesByStatus provides a mock function with given fields: status
func (*DBer) GetAccount ¶
GetAccount provides a mock function with given fields: accountID
func (*DBer) GetLeaseByID ¶
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 ¶
GetReadyAccount provides a mock function with given fields:
func (*DBer) OrphanAccount ¶
OrphanAccount provides a mock function with given fields: accountID
func (*DBer) PutAccount ¶
PutAccount provides a mock function with given fields: account
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