Documentation ¶
Index ¶
- type MockHook
- type MockHook_Execute_Call
- type MockHook_Expecter
- type MockMaker
- type MockMaker_Expecter
- type MockMaker_MakeHook_Call
- func (_c *MockMaker_MakeHook_Call) Return(_a0 hooks.Hook, _a1 error) *MockMaker_MakeHook_Call
- func (_c *MockMaker_MakeHook_Call) Run(run func(config types.SandboxHook, hookType hooks.HookType)) *MockMaker_MakeHook_Call
- func (_c *MockMaker_MakeHook_Call) RunAndReturn(run func(types.SandboxHook, hooks.HookType) (hooks.Hook, error)) *MockMaker_MakeHook_Call
- type MockMaker_MakeHooks_Call
- func (_c *MockMaker_MakeHooks_Call) Return(_a0 hooks.Hooks, _a1 error) *MockMaker_MakeHooks_Call
- func (_c *MockMaker_MakeHooks_Call) Run(run func(config map[string]types.SandboxHook)) *MockMaker_MakeHooks_Call
- func (_c *MockMaker_MakeHooks_Call) RunAndReturn(run func(map[string]types.SandboxHook) (hooks.Hooks, error)) *MockMaker_MakeHooks_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHook ¶
MockHook is an autogenerated mock type for the Hook type
func NewMockHook ¶
NewMockHook creates a new instance of MockHook. 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 (*MockHook) EXPECT ¶
func (_m *MockHook) EXPECT() *MockHook_Expecter
func (*MockHook) Execute ¶
func (_m *MockHook) Execute(ctx context.Context, ss *environment.ServiceSettings, tmpl template.Template, env environment.Environment, st task.Task) (task.Task, error)
Execute provides a mock function with given fields: ctx, ss, tmpl, env, st
type MockHook_Execute_Call ¶
MockHook_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockHook_Execute_Call) Return ¶
func (_c *MockHook_Execute_Call) Return(_a0 task.Task, _a1 error) *MockHook_Execute_Call
func (*MockHook_Execute_Call) Run ¶
func (_c *MockHook_Execute_Call) Run(run func(ctx context.Context, ss *environment.ServiceSettings, tmpl template.Template, env environment.Environment, st task.Task)) *MockHook_Execute_Call
func (*MockHook_Execute_Call) RunAndReturn ¶
func (_c *MockHook_Execute_Call) RunAndReturn(run func(context.Context, *environment.ServiceSettings, template.Template, environment.Environment, task.Task) (task.Task, error)) *MockHook_Execute_Call
type MockHook_Expecter ¶
type MockHook_Expecter struct {
// contains filtered or unexported fields
}
func (*MockHook_Expecter) Execute ¶
func (_e *MockHook_Expecter) Execute(ctx interface{}, ss interface{}, tmpl interface{}, env interface{}, st interface{}) *MockHook_Execute_Call
Execute is a helper method to define mock.On call
- ctx context.Context
- ss *environment.ServiceSettings
- tmpl template.Template
- env environment.Environment
- st task.Task
type MockMaker ¶
MockMaker is an autogenerated mock type for the Maker type
func NewMockMaker ¶
NewMockMaker creates a new instance of MockMaker. 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 (*MockMaker) EXPECT ¶
func (_m *MockMaker) EXPECT() *MockMaker_Expecter
type MockMaker_Expecter ¶
type MockMaker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMaker_Expecter) MakeHook ¶
func (_e *MockMaker_Expecter) MakeHook(config interface{}, hookType interface{}) *MockMaker_MakeHook_Call
MakeHook is a helper method to define mock.On call
- config types.SandboxHook
- hookType hooks.HookType
func (*MockMaker_Expecter) MakeHooks ¶
func (_e *MockMaker_Expecter) MakeHooks(config interface{}) *MockMaker_MakeHooks_Call
MakeHooks is a helper method to define mock.On call
- config map[string]types.SandboxHook
type MockMaker_MakeHook_Call ¶
MockMaker_MakeHook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeHook'
func (*MockMaker_MakeHook_Call) Return ¶
func (_c *MockMaker_MakeHook_Call) Return(_a0 hooks.Hook, _a1 error) *MockMaker_MakeHook_Call
func (*MockMaker_MakeHook_Call) Run ¶
func (_c *MockMaker_MakeHook_Call) Run(run func(config types.SandboxHook, hookType hooks.HookType)) *MockMaker_MakeHook_Call
func (*MockMaker_MakeHook_Call) RunAndReturn ¶
func (_c *MockMaker_MakeHook_Call) RunAndReturn(run func(types.SandboxHook, hooks.HookType) (hooks.Hook, error)) *MockMaker_MakeHook_Call
type MockMaker_MakeHooks_Call ¶
MockMaker_MakeHooks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeHooks'
func (*MockMaker_MakeHooks_Call) Return ¶
func (_c *MockMaker_MakeHooks_Call) Return(_a0 hooks.Hooks, _a1 error) *MockMaker_MakeHooks_Call
func (*MockMaker_MakeHooks_Call) Run ¶
func (_c *MockMaker_MakeHooks_Call) Run(run func(config map[string]types.SandboxHook)) *MockMaker_MakeHooks_Call
func (*MockMaker_MakeHooks_Call) RunAndReturn ¶
func (_c *MockMaker_MakeHooks_Call) RunAndReturn(run func(map[string]types.SandboxHook) (hooks.Hooks, error)) *MockMaker_MakeHooks_Call