Documentation ¶
Index ¶
- type Backend
- func (_m *Backend) EXPECT() *Backend_Expecter
- func (_m *Backend) GetLayer(ctx context.Context, name string) (*model.Layer, error)
- func (_m *Backend) ListLayers(ctx context.Context) ([]*model.Layer, error)
- func (_m *Backend) Location(ctx context.Context) (string, error)
- func (_m *Backend) ResolveDependencies(ctx context.Context, layer *model.Layer) ([]*model.Layer, error)
- func (_m *Backend) UpdateLayers(ctx context.Context, _a1 []*model.Layer) error
- type Backend_Expecter
- func (_e *Backend_Expecter) GetLayer(ctx interface{}, name interface{}) *Backend_GetLayer_Call
- func (_e *Backend_Expecter) ListLayers(ctx interface{}) *Backend_ListLayers_Call
- func (_e *Backend_Expecter) Location(ctx interface{}) *Backend_Location_Call
- func (_e *Backend_Expecter) ResolveDependencies(ctx interface{}, layer interface{}) *Backend_ResolveDependencies_Call
- func (_e *Backend_Expecter) UpdateLayers(ctx interface{}, _a1 interface{}) *Backend_UpdateLayers_Call
- type Backend_GetLayer_Call
- func (_c *Backend_GetLayer_Call) Return(_a0 *model.Layer, _a1 error) *Backend_GetLayer_Call
- func (_c *Backend_GetLayer_Call) Run(run func(ctx context.Context, name string)) *Backend_GetLayer_Call
- func (_c *Backend_GetLayer_Call) RunAndReturn(run func(context.Context, string) (*model.Layer, error)) *Backend_GetLayer_Call
- type Backend_ListLayers_Call
- func (_c *Backend_ListLayers_Call) Return(_a0 []*model.Layer, _a1 error) *Backend_ListLayers_Call
- func (_c *Backend_ListLayers_Call) Run(run func(ctx context.Context)) *Backend_ListLayers_Call
- func (_c *Backend_ListLayers_Call) RunAndReturn(run func(context.Context) ([]*model.Layer, error)) *Backend_ListLayers_Call
- type Backend_Location_Call
- type Backend_ResolveDependencies_Call
- func (_c *Backend_ResolveDependencies_Call) Return(_a0 []*model.Layer, _a1 error) *Backend_ResolveDependencies_Call
- func (_c *Backend_ResolveDependencies_Call) Run(run func(ctx context.Context, layer *model.Layer)) *Backend_ResolveDependencies_Call
- func (_c *Backend_ResolveDependencies_Call) RunAndReturn(run func(context.Context, *model.Layer) ([]*model.Layer, error)) *Backend_ResolveDependencies_Call
- type Backend_UpdateLayers_Call
- func (_c *Backend_UpdateLayers_Call) Return(_a0 error) *Backend_UpdateLayers_Call
- func (_c *Backend_UpdateLayers_Call) Run(run func(ctx context.Context, _a1 []*model.Layer)) *Backend_UpdateLayers_Call
- func (_c *Backend_UpdateLayers_Call) RunAndReturn(run func(context.Context, []*model.Layer) error) *Backend_UpdateLayers_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) EXPECT ¶
func (_m *Backend) EXPECT() *Backend_Expecter
func (*Backend) ListLayers ¶
ListLayers provides a mock function with given fields: ctx
type Backend_Expecter ¶
type Backend_Expecter struct {
// contains filtered or unexported fields
}
func (*Backend_Expecter) GetLayer ¶
func (_e *Backend_Expecter) GetLayer(ctx interface{}, name interface{}) *Backend_GetLayer_Call
GetLayer is a helper method to define mock.On call
- ctx context.Context
- name string
func (*Backend_Expecter) ListLayers ¶
func (_e *Backend_Expecter) ListLayers(ctx interface{}) *Backend_ListLayers_Call
ListLayers is a helper method to define mock.On call
- ctx context.Context
func (*Backend_Expecter) Location ¶
func (_e *Backend_Expecter) Location(ctx interface{}) *Backend_Location_Call
Location is a helper method to define mock.On call
- ctx context.Context
func (*Backend_Expecter) ResolveDependencies ¶
func (_e *Backend_Expecter) ResolveDependencies(ctx interface{}, layer interface{}) *Backend_ResolveDependencies_Call
ResolveDependencies is a helper method to define mock.On call
- ctx context.Context
- layer *model.Layer
func (*Backend_Expecter) UpdateLayers ¶
func (_e *Backend_Expecter) UpdateLayers(ctx interface{}, _a1 interface{}) *Backend_UpdateLayers_Call
UpdateLayers is a helper method to define mock.On call
- ctx context.Context
- _a1 []*model.Layer
type Backend_GetLayer_Call ¶
Backend_GetLayer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLayer'
func (*Backend_GetLayer_Call) Return ¶
func (_c *Backend_GetLayer_Call) Return(_a0 *model.Layer, _a1 error) *Backend_GetLayer_Call
func (*Backend_GetLayer_Call) Run ¶
func (_c *Backend_GetLayer_Call) Run(run func(ctx context.Context, name string)) *Backend_GetLayer_Call
func (*Backend_GetLayer_Call) RunAndReturn ¶
func (_c *Backend_GetLayer_Call) RunAndReturn(run func(context.Context, string) (*model.Layer, error)) *Backend_GetLayer_Call
type Backend_ListLayers_Call ¶
Backend_ListLayers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListLayers'
func (*Backend_ListLayers_Call) Return ¶
func (_c *Backend_ListLayers_Call) Return(_a0 []*model.Layer, _a1 error) *Backend_ListLayers_Call
func (*Backend_ListLayers_Call) Run ¶
func (_c *Backend_ListLayers_Call) Run(run func(ctx context.Context)) *Backend_ListLayers_Call
func (*Backend_ListLayers_Call) RunAndReturn ¶
func (_c *Backend_ListLayers_Call) RunAndReturn(run func(context.Context) ([]*model.Layer, error)) *Backend_ListLayers_Call
type Backend_Location_Call ¶
Backend_Location_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Location'
func (*Backend_Location_Call) Return ¶
func (_c *Backend_Location_Call) Return(_a0 string, _a1 error) *Backend_Location_Call
func (*Backend_Location_Call) Run ¶
func (_c *Backend_Location_Call) Run(run func(ctx context.Context)) *Backend_Location_Call
func (*Backend_Location_Call) RunAndReturn ¶
func (_c *Backend_Location_Call) RunAndReturn(run func(context.Context) (string, error)) *Backend_Location_Call
type Backend_ResolveDependencies_Call ¶
Backend_ResolveDependencies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResolveDependencies'
func (*Backend_ResolveDependencies_Call) Return ¶
func (_c *Backend_ResolveDependencies_Call) Return(_a0 []*model.Layer, _a1 error) *Backend_ResolveDependencies_Call
func (*Backend_ResolveDependencies_Call) Run ¶
func (_c *Backend_ResolveDependencies_Call) Run(run func(ctx context.Context, layer *model.Layer)) *Backend_ResolveDependencies_Call
func (*Backend_ResolveDependencies_Call) RunAndReturn ¶
func (_c *Backend_ResolveDependencies_Call) RunAndReturn(run func(context.Context, *model.Layer) ([]*model.Layer, error)) *Backend_ResolveDependencies_Call
type Backend_UpdateLayers_Call ¶
Backend_UpdateLayers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLayers'
func (*Backend_UpdateLayers_Call) Return ¶
func (_c *Backend_UpdateLayers_Call) Return(_a0 error) *Backend_UpdateLayers_Call
func (*Backend_UpdateLayers_Call) Run ¶
func (_c *Backend_UpdateLayers_Call) Run(run func(ctx context.Context, _a1 []*model.Layer)) *Backend_UpdateLayers_Call
func (*Backend_UpdateLayers_Call) RunAndReturn ¶
func (_c *Backend_UpdateLayers_Call) RunAndReturn(run func(context.Context, []*model.Layer) error) *Backend_UpdateLayers_Call