Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockTransaction
- func (m *MockTransaction) Close() error
- func (m *MockTransaction) Closed() bool
- func (m *MockTransaction) Commit() error
- func (m *MockTransaction) CountContext(arg0 context.Context, arg1 *schema.Schema, arg2 transaction.Filter) (uint64, error)
- func (m *MockTransaction) Create(arg0 *schema.Resource) error
- func (m *MockTransaction) CreateContext(arg0 context.Context, arg1 *schema.Resource) error
- func (m *MockTransaction) Delete(arg0 *schema.Schema, arg1 interface{}) error
- func (m *MockTransaction) DeleteContext(arg0 context.Context, arg1 *schema.Schema, arg2 interface{}) error
- func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
- func (m *MockTransaction) Exec(query string, args ...interface{}) error
- func (m *MockTransaction) ExecContext(ctx context.Context, query string, args ...interface{}) error
- func (m *MockTransaction) Fetch(arg0 *schema.Schema, arg1 transaction.Filter, arg2 *transaction.ViewOptions) (*schema.Resource, error)
- func (m *MockTransaction) FetchContext(arg0 context.Context, arg1 *schema.Schema, arg2 transaction.Filter, ...) (*schema.Resource, error)
- func (m *MockTransaction) GetIsolationLevel() transaction.Type
- func (m *MockTransaction) List(arg0 *schema.Schema, arg1 transaction.Filter, arg2 *transaction.ViewOptions, ...) ([]*schema.Resource, uint64, error)
- func (m *MockTransaction) ListContext(arg0 context.Context, arg1 *schema.Schema, arg2 transaction.Filter, ...) ([]*schema.Resource, uint64, error)
- func (m *MockTransaction) LockFetch(arg0 *schema.Schema, arg1 transaction.Filter, arg2 schema.LockPolicy, ...) (*schema.Resource, error)
- func (m *MockTransaction) LockFetchContext(arg0 context.Context, arg1 *schema.Schema, arg2 transaction.Filter, ...) (*schema.Resource, error)
- func (m *MockTransaction) LockList(arg0 *schema.Schema, arg1 transaction.Filter, arg2 *transaction.ViewOptions, ...) ([]*schema.Resource, uint64, error)
- func (m *MockTransaction) LockListContext(arg0 context.Context, arg1 *schema.Schema, arg2 transaction.Filter, ...) ([]*schema.Resource, uint64, error)
- func (m *MockTransaction) Query(arg0 *schema.Schema, arg1 string, arg2 []interface{}) ([]*schema.Resource, error)
- func (m *MockTransaction) QueryContext(arg0 context.Context, arg1 *schema.Schema, arg2 string, arg3 []interface{}) ([]*schema.Resource, error)
- func (m *MockTransaction) RawTransaction() *sqlx.Tx
- func (m *MockTransaction) StateFetch(arg0 *schema.Schema, arg1 transaction.Filter) (transaction.ResourceState, error)
- func (m *MockTransaction) StateFetchContext(arg0 context.Context, arg1 *schema.Schema, arg2 transaction.Filter) (transaction.ResourceState, error)
- func (m *MockTransaction) StateUpdate(arg0 *schema.Resource, arg1 *transaction.ResourceState) error
- func (m *MockTransaction) StateUpdateContext(arg0 context.Context, arg1 *schema.Resource, arg2 *transaction.ResourceState) error
- func (m *MockTransaction) Update(arg0 *schema.Resource) error
- func (m *MockTransaction) UpdateContext(arg0 context.Context, arg1 *schema.Resource) error
- type MockTransactionMockRecorder
- func (mr *MockTransactionMockRecorder) Close() *gomock.Call
- func (mr *MockTransactionMockRecorder) Closed() *gomock.Call
- func (mr *MockTransactionMockRecorder) Commit() *gomock.Call
- func (mr *MockTransactionMockRecorder) CountContext(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) CreateContext(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) DeleteContext(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) Exec(query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) Fetch(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) FetchContext(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) GetIsolationLevel() *gomock.Call
- func (mr *MockTransactionMockRecorder) List(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) ListContext(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) LockFetch(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) LockFetchContext(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) LockList(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) LockListContext(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) Query(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) QueryContext(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) RawTransaction() *gomock.Call
- func (mr *MockTransactionMockRecorder) StateFetch(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) StateFetchContext(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) StateUpdate(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) StateUpdateContext(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) Update(arg0 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) UpdateContext(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTransaction ¶
type MockTransaction struct {
// contains filtered or unexported fields
}
MockTransaction is a mock of Transaction interface
func NewMockTransaction ¶
func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction
NewMockTransaction creates a new mock instance
func (*MockTransaction) CountContext ¶
func (m *MockTransaction) CountContext(arg0 context.Context, arg1 *schema.Schema, arg2 transaction.Filter) (uint64, error)
CountContext mocks base method
func (*MockTransaction) Create ¶
func (m *MockTransaction) Create(arg0 *schema.Resource) error
Create mocks base method
func (*MockTransaction) CreateContext ¶
CreateContext mocks base method
func (*MockTransaction) Delete ¶
func (m *MockTransaction) Delete(arg0 *schema.Schema, arg1 interface{}) error
Delete mocks base method
func (*MockTransaction) DeleteContext ¶
func (m *MockTransaction) DeleteContext(arg0 context.Context, arg1 *schema.Schema, arg2 interface{}) error
DeleteContext mocks base method
func (*MockTransaction) EXPECT ¶
func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTransaction) Exec ¶
func (m *MockTransaction) Exec(query string, args ...interface{}) error
Exec mocks base method
func (*MockTransaction) ExecContext ¶
func (m *MockTransaction) ExecContext(ctx context.Context, query string, args ...interface{}) error
ExecContext mocks base method
func (*MockTransaction) Fetch ¶
func (m *MockTransaction) Fetch(arg0 *schema.Schema, arg1 transaction.Filter, arg2 *transaction.ViewOptions) (*schema.Resource, error)
Fetch mocks base method
func (*MockTransaction) FetchContext ¶
func (m *MockTransaction) FetchContext(arg0 context.Context, arg1 *schema.Schema, arg2 transaction.Filter, arg3 *transaction.ViewOptions) (*schema.Resource, error)
FetchContext mocks base method
func (*MockTransaction) GetIsolationLevel ¶
func (m *MockTransaction) GetIsolationLevel() transaction.Type
GetIsolationLevel mocks base method
func (*MockTransaction) List ¶
func (m *MockTransaction) List(arg0 *schema.Schema, arg1 transaction.Filter, arg2 *transaction.ViewOptions, arg3 *pagination.Paginator) ([]*schema.Resource, uint64, error)
List mocks base method
func (*MockTransaction) ListContext ¶
func (m *MockTransaction) ListContext(arg0 context.Context, arg1 *schema.Schema, arg2 transaction.Filter, arg3 *transaction.ViewOptions, arg4 *pagination.Paginator) ([]*schema.Resource, uint64, error)
ListContext mocks base method
func (*MockTransaction) LockFetch ¶
func (m *MockTransaction) LockFetch(arg0 *schema.Schema, arg1 transaction.Filter, arg2 schema.LockPolicy, arg3 *transaction.ViewOptions) (*schema.Resource, error)
LockFetch mocks base method
func (*MockTransaction) LockFetchContext ¶
func (m *MockTransaction) LockFetchContext(arg0 context.Context, arg1 *schema.Schema, arg2 transaction.Filter, arg3 schema.LockPolicy, arg4 *transaction.ViewOptions) (*schema.Resource, error)
LockFetchContext mocks base method
func (*MockTransaction) LockList ¶
func (m *MockTransaction) LockList(arg0 *schema.Schema, arg1 transaction.Filter, arg2 *transaction.ViewOptions, arg3 *pagination.Paginator, arg4 schema.LockPolicy) ([]*schema.Resource, uint64, error)
LockList mocks base method
func (*MockTransaction) LockListContext ¶
func (m *MockTransaction) LockListContext(arg0 context.Context, arg1 *schema.Schema, arg2 transaction.Filter, arg3 *transaction.ViewOptions, arg4 *pagination.Paginator, arg5 schema.LockPolicy) ([]*schema.Resource, uint64, error)
LockListContext mocks base method
func (*MockTransaction) Query ¶
func (m *MockTransaction) Query(arg0 *schema.Schema, arg1 string, arg2 []interface{}) ([]*schema.Resource, error)
Query mocks base method
func (*MockTransaction) QueryContext ¶
func (m *MockTransaction) QueryContext(arg0 context.Context, arg1 *schema.Schema, arg2 string, arg3 []interface{}) ([]*schema.Resource, error)
QueryContext mocks base method
func (*MockTransaction) RawTransaction ¶
func (m *MockTransaction) RawTransaction() *sqlx.Tx
RawTransaction mocks base method
func (*MockTransaction) StateFetch ¶
func (m *MockTransaction) StateFetch(arg0 *schema.Schema, arg1 transaction.Filter) (transaction.ResourceState, error)
StateFetch mocks base method
func (*MockTransaction) StateFetchContext ¶
func (m *MockTransaction) StateFetchContext(arg0 context.Context, arg1 *schema.Schema, arg2 transaction.Filter) (transaction.ResourceState, error)
StateFetchContext mocks base method
func (*MockTransaction) StateUpdate ¶
func (m *MockTransaction) StateUpdate(arg0 *schema.Resource, arg1 *transaction.ResourceState) error
StateUpdate mocks base method
func (*MockTransaction) StateUpdateContext ¶
func (m *MockTransaction) StateUpdateContext(arg0 context.Context, arg1 *schema.Resource, arg2 *transaction.ResourceState) error
StateUpdateContext mocks base method
func (*MockTransaction) Update ¶
func (m *MockTransaction) Update(arg0 *schema.Resource) error
Update mocks base method
func (*MockTransaction) UpdateContext ¶
UpdateContext mocks base method
type MockTransactionMockRecorder ¶
type MockTransactionMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionMockRecorder is the mock recorder for MockTransaction
func (*MockTransactionMockRecorder) Close ¶
func (mr *MockTransactionMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockTransactionMockRecorder) Closed ¶
func (mr *MockTransactionMockRecorder) Closed() *gomock.Call
Closed indicates an expected call of Closed
func (*MockTransactionMockRecorder) Commit ¶
func (mr *MockTransactionMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit
func (*MockTransactionMockRecorder) CountContext ¶
func (mr *MockTransactionMockRecorder) CountContext(arg0, arg1, arg2 interface{}) *gomock.Call
CountContext indicates an expected call of CountContext
func (*MockTransactionMockRecorder) Create ¶
func (mr *MockTransactionMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockTransactionMockRecorder) CreateContext ¶
func (mr *MockTransactionMockRecorder) CreateContext(arg0, arg1 interface{}) *gomock.Call
CreateContext indicates an expected call of CreateContext
func (*MockTransactionMockRecorder) Delete ¶
func (mr *MockTransactionMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockTransactionMockRecorder) DeleteContext ¶
func (mr *MockTransactionMockRecorder) DeleteContext(arg0, arg1, arg2 interface{}) *gomock.Call
DeleteContext indicates an expected call of DeleteContext
func (*MockTransactionMockRecorder) Exec ¶
func (mr *MockTransactionMockRecorder) Exec(query interface{}, args ...interface{}) *gomock.Call
Exec indicates an expected call of Exec
func (*MockTransactionMockRecorder) ExecContext ¶
func (mr *MockTransactionMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call
ExecContext indicates an expected call of ExecContext
func (*MockTransactionMockRecorder) Fetch ¶
func (mr *MockTransactionMockRecorder) Fetch(arg0, arg1, arg2 interface{}) *gomock.Call
Fetch indicates an expected call of Fetch
func (*MockTransactionMockRecorder) FetchContext ¶
func (mr *MockTransactionMockRecorder) FetchContext(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
FetchContext indicates an expected call of FetchContext
func (*MockTransactionMockRecorder) GetIsolationLevel ¶
func (mr *MockTransactionMockRecorder) GetIsolationLevel() *gomock.Call
GetIsolationLevel indicates an expected call of GetIsolationLevel
func (*MockTransactionMockRecorder) List ¶
func (mr *MockTransactionMockRecorder) List(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
List indicates an expected call of List
func (*MockTransactionMockRecorder) ListContext ¶
func (mr *MockTransactionMockRecorder) ListContext(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
ListContext indicates an expected call of ListContext
func (*MockTransactionMockRecorder) LockFetch ¶
func (mr *MockTransactionMockRecorder) LockFetch(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
LockFetch indicates an expected call of LockFetch
func (*MockTransactionMockRecorder) LockFetchContext ¶
func (mr *MockTransactionMockRecorder) LockFetchContext(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
LockFetchContext indicates an expected call of LockFetchContext
func (*MockTransactionMockRecorder) LockList ¶
func (mr *MockTransactionMockRecorder) LockList(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
LockList indicates an expected call of LockList
func (*MockTransactionMockRecorder) LockListContext ¶
func (mr *MockTransactionMockRecorder) LockListContext(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
LockListContext indicates an expected call of LockListContext
func (*MockTransactionMockRecorder) Query ¶
func (mr *MockTransactionMockRecorder) Query(arg0, arg1, arg2 interface{}) *gomock.Call
Query indicates an expected call of Query
func (*MockTransactionMockRecorder) QueryContext ¶
func (mr *MockTransactionMockRecorder) QueryContext(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
QueryContext indicates an expected call of QueryContext
func (*MockTransactionMockRecorder) RawTransaction ¶
func (mr *MockTransactionMockRecorder) RawTransaction() *gomock.Call
RawTransaction indicates an expected call of RawTransaction
func (*MockTransactionMockRecorder) StateFetch ¶
func (mr *MockTransactionMockRecorder) StateFetch(arg0, arg1 interface{}) *gomock.Call
StateFetch indicates an expected call of StateFetch
func (*MockTransactionMockRecorder) StateFetchContext ¶
func (mr *MockTransactionMockRecorder) StateFetchContext(arg0, arg1, arg2 interface{}) *gomock.Call
StateFetchContext indicates an expected call of StateFetchContext
func (*MockTransactionMockRecorder) StateUpdate ¶
func (mr *MockTransactionMockRecorder) StateUpdate(arg0, arg1 interface{}) *gomock.Call
StateUpdate indicates an expected call of StateUpdate
func (*MockTransactionMockRecorder) StateUpdateContext ¶
func (mr *MockTransactionMockRecorder) StateUpdateContext(arg0, arg1, arg2 interface{}) *gomock.Call
StateUpdateContext indicates an expected call of StateUpdateContext
func (*MockTransactionMockRecorder) Update ¶
func (mr *MockTransactionMockRecorder) Update(arg0 interface{}) *gomock.Call
Update indicates an expected call of Update
func (*MockTransactionMockRecorder) UpdateContext ¶
func (mr *MockTransactionMockRecorder) UpdateContext(arg0, arg1 interface{}) *gomock.Call
UpdateContext indicates an expected call of UpdateContext