Documentation ¶
Index ¶
- type Backend
- func (_m *Backend) DeleteState(ctx context.Context, layerName string, stateName string) error
- func (_m *Backend) EXPECT() *Backend_Expecter
- func (_m *Backend) GetState(ctx context.Context, layerName string, stateName string) (*layerstate.State, error)
- func (_m *Backend) ListStates(ctx context.Context) ([]*layerstate.State, error)
- func (_m *Backend) ListStatesByLayer(ctx context.Context, layerName string) ([]*layerstate.State, error)
- func (_m *Backend) SaveState(ctx context.Context, state *layerstate.State) error
- type Backend_DeleteState_Call
- func (_c *Backend_DeleteState_Call) Return(_a0 error) *Backend_DeleteState_Call
- func (_c *Backend_DeleteState_Call) Run(run func(ctx context.Context, layerName string, stateName string)) *Backend_DeleteState_Call
- func (_c *Backend_DeleteState_Call) RunAndReturn(run func(context.Context, string, string) error) *Backend_DeleteState_Call
- type Backend_Expecter
- func (_e *Backend_Expecter) DeleteState(ctx interface{}, layerName interface{}, stateName interface{}) *Backend_DeleteState_Call
- func (_e *Backend_Expecter) GetState(ctx interface{}, layerName interface{}, stateName interface{}) *Backend_GetState_Call
- func (_e *Backend_Expecter) ListStates(ctx interface{}) *Backend_ListStates_Call
- func (_e *Backend_Expecter) ListStatesByLayer(ctx interface{}, layerName interface{}) *Backend_ListStatesByLayer_Call
- func (_e *Backend_Expecter) SaveState(ctx interface{}, state interface{}) *Backend_SaveState_Call
- type Backend_GetState_Call
- func (_c *Backend_GetState_Call) Return(_a0 *layerstate.State, _a1 error) *Backend_GetState_Call
- func (_c *Backend_GetState_Call) Run(run func(ctx context.Context, layerName string, stateName string)) *Backend_GetState_Call
- func (_c *Backend_GetState_Call) RunAndReturn(run func(context.Context, string, string) (*layerstate.State, error)) *Backend_GetState_Call
- type Backend_ListStatesByLayer_Call
- func (_c *Backend_ListStatesByLayer_Call) Return(_a0 []*layerstate.State, _a1 error) *Backend_ListStatesByLayer_Call
- func (_c *Backend_ListStatesByLayer_Call) Run(run func(ctx context.Context, layerName string)) *Backend_ListStatesByLayer_Call
- func (_c *Backend_ListStatesByLayer_Call) RunAndReturn(run func(context.Context, string) ([]*layerstate.State, error)) *Backend_ListStatesByLayer_Call
- type Backend_ListStates_Call
- func (_c *Backend_ListStates_Call) Return(_a0 []*layerstate.State, _a1 error) *Backend_ListStates_Call
- func (_c *Backend_ListStates_Call) Run(run func(ctx context.Context)) *Backend_ListStates_Call
- func (_c *Backend_ListStates_Call) RunAndReturn(run func(context.Context) ([]*layerstate.State, error)) *Backend_ListStates_Call
- type Backend_SaveState_Call
- func (_c *Backend_SaveState_Call) Return(_a0 error) *Backend_SaveState_Call
- func (_c *Backend_SaveState_Call) Run(run func(ctx context.Context, state *layerstate.State)) *Backend_SaveState_Call
- func (_c *Backend_SaveState_Call) RunAndReturn(run func(context.Context, *layerstate.State) error) *Backend_SaveState_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
Backend is an autogenerated mock type for the Backend type
func NewBackend ¶
NewBackend creates a new instance of Backend. 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 (*Backend) DeleteState ¶
DeleteState provides a mock function with given fields: ctx, layerName, stateName
func (*Backend) EXPECT ¶
func (_m *Backend) EXPECT() *Backend_Expecter
func (*Backend) GetState ¶
func (_m *Backend) GetState(ctx context.Context, layerName string, stateName string) (*layerstate.State, error)
GetState provides a mock function with given fields: ctx, layerName, stateName
func (*Backend) ListStates ¶
ListStates provides a mock function with given fields: ctx
func (*Backend) ListStatesByLayer ¶
func (_m *Backend) ListStatesByLayer(ctx context.Context, layerName string) ([]*layerstate.State, error)
ListStatesByLayer provides a mock function with given fields: ctx, layerName
type Backend_DeleteState_Call ¶
Backend_DeleteState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteState'
func (*Backend_DeleteState_Call) Return ¶
func (_c *Backend_DeleteState_Call) Return(_a0 error) *Backend_DeleteState_Call
func (*Backend_DeleteState_Call) Run ¶
func (_c *Backend_DeleteState_Call) Run(run func(ctx context.Context, layerName string, stateName string)) *Backend_DeleteState_Call
func (*Backend_DeleteState_Call) RunAndReturn ¶
func (_c *Backend_DeleteState_Call) RunAndReturn(run func(context.Context, string, string) error) *Backend_DeleteState_Call
type Backend_Expecter ¶
type Backend_Expecter struct {
// contains filtered or unexported fields
}
func (*Backend_Expecter) DeleteState ¶
func (_e *Backend_Expecter) DeleteState(ctx interface{}, layerName interface{}, stateName interface{}) *Backend_DeleteState_Call
DeleteState is a helper method to define mock.On call
- ctx context.Context
- layerName string
- stateName string
func (*Backend_Expecter) GetState ¶
func (_e *Backend_Expecter) GetState(ctx interface{}, layerName interface{}, stateName interface{}) *Backend_GetState_Call
GetState is a helper method to define mock.On call
- ctx context.Context
- layerName string
- stateName string
func (*Backend_Expecter) ListStates ¶
func (_e *Backend_Expecter) ListStates(ctx interface{}) *Backend_ListStates_Call
ListStates is a helper method to define mock.On call
- ctx context.Context
func (*Backend_Expecter) ListStatesByLayer ¶
func (_e *Backend_Expecter) ListStatesByLayer(ctx interface{}, layerName interface{}) *Backend_ListStatesByLayer_Call
ListStatesByLayer is a helper method to define mock.On call
- ctx context.Context
- layerName string
func (*Backend_Expecter) SaveState ¶
func (_e *Backend_Expecter) SaveState(ctx interface{}, state interface{}) *Backend_SaveState_Call
SaveState is a helper method to define mock.On call
- ctx context.Context
- state *layerstate.State
type Backend_GetState_Call ¶
Backend_GetState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetState'
func (*Backend_GetState_Call) Return ¶
func (_c *Backend_GetState_Call) Return(_a0 *layerstate.State, _a1 error) *Backend_GetState_Call
func (*Backend_GetState_Call) Run ¶
func (_c *Backend_GetState_Call) Run(run func(ctx context.Context, layerName string, stateName string)) *Backend_GetState_Call
func (*Backend_GetState_Call) RunAndReturn ¶
func (_c *Backend_GetState_Call) RunAndReturn(run func(context.Context, string, string) (*layerstate.State, error)) *Backend_GetState_Call
type Backend_ListStatesByLayer_Call ¶
Backend_ListStatesByLayer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListStatesByLayer'
func (*Backend_ListStatesByLayer_Call) Return ¶
func (_c *Backend_ListStatesByLayer_Call) Return(_a0 []*layerstate.State, _a1 error) *Backend_ListStatesByLayer_Call
func (*Backend_ListStatesByLayer_Call) Run ¶
func (_c *Backend_ListStatesByLayer_Call) Run(run func(ctx context.Context, layerName string)) *Backend_ListStatesByLayer_Call
func (*Backend_ListStatesByLayer_Call) RunAndReturn ¶
func (_c *Backend_ListStatesByLayer_Call) RunAndReturn(run func(context.Context, string) ([]*layerstate.State, error)) *Backend_ListStatesByLayer_Call
type Backend_ListStates_Call ¶
Backend_ListStates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListStates'
func (*Backend_ListStates_Call) Return ¶
func (_c *Backend_ListStates_Call) Return(_a0 []*layerstate.State, _a1 error) *Backend_ListStates_Call
func (*Backend_ListStates_Call) Run ¶
func (_c *Backend_ListStates_Call) Run(run func(ctx context.Context)) *Backend_ListStates_Call
func (*Backend_ListStates_Call) RunAndReturn ¶
func (_c *Backend_ListStates_Call) RunAndReturn(run func(context.Context) ([]*layerstate.State, error)) *Backend_ListStates_Call
type Backend_SaveState_Call ¶
Backend_SaveState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveState'
func (*Backend_SaveState_Call) Return ¶
func (_c *Backend_SaveState_Call) Return(_a0 error) *Backend_SaveState_Call
func (*Backend_SaveState_Call) Run ¶
func (_c *Backend_SaveState_Call) Run(run func(ctx context.Context, state *layerstate.State)) *Backend_SaveState_Call
func (*Backend_SaveState_Call) RunAndReturn ¶
func (_c *Backend_SaveState_Call) RunAndReturn(run func(context.Context, *layerstate.State) error) *Backend_SaveState_Call