Documentation
¶
Index ¶
- type PluginInterface
- func (_m *PluginInterface) EXPECT() *PluginInterface_Expecter
- func (_m *PluginInterface) Execute(cmd plugin.ExecutedCommand) error
- func (_m *PluginInterface) ExecuteHookCleanUp(hook plugin.ExecutedHook) error
- func (_m *PluginInterface) ExecuteHookPost(hook plugin.ExecutedHook) error
- func (_m *PluginInterface) ExecuteHookPre(hook plugin.ExecutedHook) error
- func (_m *PluginInterface) Manifest() (plugin.Manifest, error)
- type PluginInterface_ExecuteHookCleanUp_Call
- type PluginInterface_ExecuteHookPost_Call
- type PluginInterface_ExecuteHookPre_Call
- type PluginInterface_Execute_Call
- type PluginInterface_Expecter
- func (_e *PluginInterface_Expecter) Execute(cmd interface{}) *PluginInterface_Execute_Call
- func (_e *PluginInterface_Expecter) ExecuteHookCleanUp(hook interface{}) *PluginInterface_ExecuteHookCleanUp_Call
- func (_e *PluginInterface_Expecter) ExecuteHookPost(hook interface{}) *PluginInterface_ExecuteHookPost_Call
- func (_e *PluginInterface_Expecter) ExecuteHookPre(hook interface{}) *PluginInterface_ExecuteHookPre_Call
- func (_e *PluginInterface_Expecter) Manifest() *PluginInterface_Manifest_Call
- type PluginInterface_Manifest_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginInterface ¶
PluginInterface is an autogenerated mock type for the Interface type
func NewPluginInterface ¶
func NewPluginInterface(t mockConstructorTestingTNewPluginInterface) *PluginInterface
NewPluginInterface creates a new instance of PluginInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PluginInterface) EXPECT ¶
func (_m *PluginInterface) EXPECT() *PluginInterface_Expecter
func (*PluginInterface) Execute ¶
func (_m *PluginInterface) Execute(cmd plugin.ExecutedCommand) error
Execute provides a mock function with given fields: cmd
func (*PluginInterface) ExecuteHookCleanUp ¶
func (_m *PluginInterface) ExecuteHookCleanUp(hook plugin.ExecutedHook) error
ExecuteHookCleanUp provides a mock function with given fields: hook
func (*PluginInterface) ExecuteHookPost ¶
func (_m *PluginInterface) ExecuteHookPost(hook plugin.ExecutedHook) error
ExecuteHookPost provides a mock function with given fields: hook
func (*PluginInterface) ExecuteHookPre ¶
func (_m *PluginInterface) ExecuteHookPre(hook plugin.ExecutedHook) error
ExecuteHookPre provides a mock function with given fields: hook
type PluginInterface_ExecuteHookCleanUp_Call ¶
PluginInterface_ExecuteHookCleanUp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecuteHookCleanUp'
func (*PluginInterface_ExecuteHookCleanUp_Call) Return ¶
func (_c *PluginInterface_ExecuteHookCleanUp_Call) Return(_a0 error) *PluginInterface_ExecuteHookCleanUp_Call
func (*PluginInterface_ExecuteHookCleanUp_Call) Run ¶
func (_c *PluginInterface_ExecuteHookCleanUp_Call) Run(run func(hook plugin.ExecutedHook)) *PluginInterface_ExecuteHookCleanUp_Call
type PluginInterface_ExecuteHookPost_Call ¶
PluginInterface_ExecuteHookPost_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecuteHookPost'
func (*PluginInterface_ExecuteHookPost_Call) Return ¶
func (_c *PluginInterface_ExecuteHookPost_Call) Return(_a0 error) *PluginInterface_ExecuteHookPost_Call
func (*PluginInterface_ExecuteHookPost_Call) Run ¶
func (_c *PluginInterface_ExecuteHookPost_Call) Run(run func(hook plugin.ExecutedHook)) *PluginInterface_ExecuteHookPost_Call
type PluginInterface_ExecuteHookPre_Call ¶
PluginInterface_ExecuteHookPre_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecuteHookPre'
func (*PluginInterface_ExecuteHookPre_Call) Return ¶
func (_c *PluginInterface_ExecuteHookPre_Call) Return(_a0 error) *PluginInterface_ExecuteHookPre_Call
func (*PluginInterface_ExecuteHookPre_Call) Run ¶
func (_c *PluginInterface_ExecuteHookPre_Call) Run(run func(hook plugin.ExecutedHook)) *PluginInterface_ExecuteHookPre_Call
type PluginInterface_Execute_Call ¶
PluginInterface_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*PluginInterface_Execute_Call) Return ¶
func (_c *PluginInterface_Execute_Call) Return(_a0 error) *PluginInterface_Execute_Call
func (*PluginInterface_Execute_Call) Run ¶
func (_c *PluginInterface_Execute_Call) Run(run func(cmd plugin.ExecutedCommand)) *PluginInterface_Execute_Call
type PluginInterface_Expecter ¶
type PluginInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*PluginInterface_Expecter) Execute ¶
func (_e *PluginInterface_Expecter) Execute(cmd interface{}) *PluginInterface_Execute_Call
Execute is a helper method to define mock.On call
- cmd plugin.ExecutedCommand
func (*PluginInterface_Expecter) ExecuteHookCleanUp ¶
func (_e *PluginInterface_Expecter) ExecuteHookCleanUp(hook interface{}) *PluginInterface_ExecuteHookCleanUp_Call
ExecuteHookCleanUp is a helper method to define mock.On call
- hook plugin.ExecutedHook
func (*PluginInterface_Expecter) ExecuteHookPost ¶
func (_e *PluginInterface_Expecter) ExecuteHookPost(hook interface{}) *PluginInterface_ExecuteHookPost_Call
ExecuteHookPost is a helper method to define mock.On call
- hook plugin.ExecutedHook
func (*PluginInterface_Expecter) ExecuteHookPre ¶
func (_e *PluginInterface_Expecter) ExecuteHookPre(hook interface{}) *PluginInterface_ExecuteHookPre_Call
ExecuteHookPre is a helper method to define mock.On call
- hook plugin.ExecutedHook
func (*PluginInterface_Expecter) Manifest ¶
func (_e *PluginInterface_Expecter) Manifest() *PluginInterface_Manifest_Call
Manifest is a helper method to define mock.On call
type PluginInterface_Manifest_Call ¶
PluginInterface_Manifest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Manifest'
func (*PluginInterface_Manifest_Call) Return ¶
func (_c *PluginInterface_Manifest_Call) Return(_a0 plugin.Manifest, _a1 error) *PluginInterface_Manifest_Call
func (*PluginInterface_Manifest_Call) Run ¶
func (_c *PluginInterface_Manifest_Call) Run(run func()) *PluginInterface_Manifest_Call