Documentation ¶
Index ¶
- type ChainerInterface
- func (_m *ChainerInterface) AppPath() string
- func (_m *ChainerInterface) ConfigPath() string
- func (_m *ChainerInterface) EXPECT() *ChainerInterface_Expecter
- func (_m *ChainerInterface) Home() (string, error)
- func (_m *ChainerInterface) ID() (string, error)
- func (_m *ChainerInterface) RPCPublicAddress() (string, error)
- type ChainerInterface_AppPath_Call
- type ChainerInterface_ConfigPath_Call
- func (_c *ChainerInterface_ConfigPath_Call) Return(_a0 string) *ChainerInterface_ConfigPath_Call
- func (_c *ChainerInterface_ConfigPath_Call) Run(run func()) *ChainerInterface_ConfigPath_Call
- func (_c *ChainerInterface_ConfigPath_Call) RunAndReturn(run func() string) *ChainerInterface_ConfigPath_Call
- type ChainerInterface_Expecter
- func (_e *ChainerInterface_Expecter) AppPath() *ChainerInterface_AppPath_Call
- func (_e *ChainerInterface_Expecter) ConfigPath() *ChainerInterface_ConfigPath_Call
- func (_e *ChainerInterface_Expecter) Home() *ChainerInterface_Home_Call
- func (_e *ChainerInterface_Expecter) ID() *ChainerInterface_ID_Call
- func (_e *ChainerInterface_Expecter) RPCPublicAddress() *ChainerInterface_RPCPublicAddress_Call
- type ChainerInterface_Home_Call
- type ChainerInterface_ID_Call
- type ChainerInterface_RPCPublicAddress_Call
- func (_c *ChainerInterface_RPCPublicAddress_Call) Return(_a0 string, _a1 error) *ChainerInterface_RPCPublicAddress_Call
- func (_c *ChainerInterface_RPCPublicAddress_Call) Run(run func()) *ChainerInterface_RPCPublicAddress_Call
- func (_c *ChainerInterface_RPCPublicAddress_Call) RunAndReturn(run func() (string, error)) *ChainerInterface_RPCPublicAddress_Call
- type PluginClientAPI
- type PluginClientAPI_Expecter
- type PluginClientAPI_GetChainInfo_Call
- func (_c *PluginClientAPI_GetChainInfo_Call) Return(_a0 *v1.ChainInfo, _a1 error) *PluginClientAPI_GetChainInfo_Call
- func (_c *PluginClientAPI_GetChainInfo_Call) Run(run func(_a0 context.Context)) *PluginClientAPI_GetChainInfo_Call
- func (_c *PluginClientAPI_GetChainInfo_Call) RunAndReturn(run func(context.Context) (*v1.ChainInfo, error)) *PluginClientAPI_GetChainInfo_Call
- type PluginInterface
- func (_m *PluginInterface) EXPECT() *PluginInterface_Expecter
- func (_m *PluginInterface) Execute(_a0 context.Context, _a1 *v1.ExecutedCommand, _a2 plugin.ClientAPI) error
- func (_m *PluginInterface) ExecuteHookCleanUp(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI) error
- func (_m *PluginInterface) ExecuteHookPost(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI) error
- func (_m *PluginInterface) ExecuteHookPre(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI) error
- func (_m *PluginInterface) Manifest(_a0 context.Context) (*v1.Manifest, error)
- type PluginInterface_ExecuteHookCleanUp_Call
- func (_c *PluginInterface_ExecuteHookCleanUp_Call) Return(_a0 error) *PluginInterface_ExecuteHookCleanUp_Call
- func (_c *PluginInterface_ExecuteHookCleanUp_Call) Run(run func(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI)) *PluginInterface_ExecuteHookCleanUp_Call
- func (_c *PluginInterface_ExecuteHookCleanUp_Call) RunAndReturn(run func(context.Context, *v1.ExecutedHook, plugin.ClientAPI) error) *PluginInterface_ExecuteHookCleanUp_Call
- type PluginInterface_ExecuteHookPost_Call
- func (_c *PluginInterface_ExecuteHookPost_Call) Return(_a0 error) *PluginInterface_ExecuteHookPost_Call
- func (_c *PluginInterface_ExecuteHookPost_Call) Run(run func(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI)) *PluginInterface_ExecuteHookPost_Call
- func (_c *PluginInterface_ExecuteHookPost_Call) RunAndReturn(run func(context.Context, *v1.ExecutedHook, plugin.ClientAPI) error) *PluginInterface_ExecuteHookPost_Call
- type PluginInterface_ExecuteHookPre_Call
- func (_c *PluginInterface_ExecuteHookPre_Call) Return(_a0 error) *PluginInterface_ExecuteHookPre_Call
- func (_c *PluginInterface_ExecuteHookPre_Call) Run(run func(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI)) *PluginInterface_ExecuteHookPre_Call
- func (_c *PluginInterface_ExecuteHookPre_Call) RunAndReturn(run func(context.Context, *v1.ExecutedHook, plugin.ClientAPI) error) *PluginInterface_ExecuteHookPre_Call
- type PluginInterface_Execute_Call
- func (_c *PluginInterface_Execute_Call) Return(_a0 error) *PluginInterface_Execute_Call
- func (_c *PluginInterface_Execute_Call) Run(run func(_a0 context.Context, _a1 *v1.ExecutedCommand, _a2 plugin.ClientAPI)) *PluginInterface_Execute_Call
- func (_c *PluginInterface_Execute_Call) RunAndReturn(run func(context.Context, *v1.ExecutedCommand, plugin.ClientAPI) error) *PluginInterface_Execute_Call
- type PluginInterface_Expecter
- func (_e *PluginInterface_Expecter) Execute(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PluginInterface_Execute_Call
- func (_e *PluginInterface_Expecter) ExecuteHookCleanUp(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PluginInterface_ExecuteHookCleanUp_Call
- func (_e *PluginInterface_Expecter) ExecuteHookPost(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PluginInterface_ExecuteHookPost_Call
- func (_e *PluginInterface_Expecter) ExecuteHookPre(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PluginInterface_ExecuteHookPre_Call
- func (_e *PluginInterface_Expecter) Manifest(_a0 interface{}) *PluginInterface_Manifest_Call
- type PluginInterface_Manifest_Call
- func (_c *PluginInterface_Manifest_Call) Return(_a0 *v1.Manifest, _a1 error) *PluginInterface_Manifest_Call
- func (_c *PluginInterface_Manifest_Call) Run(run func(_a0 context.Context)) *PluginInterface_Manifest_Call
- func (_c *PluginInterface_Manifest_Call) RunAndReturn(run func(context.Context) (*v1.Manifest, error)) *PluginInterface_Manifest_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainerInterface ¶
ChainerInterface is an autogenerated mock type for the Chainer type
func NewChainerInterface ¶
func NewChainerInterface(t interface { mock.TestingT Cleanup(func()) }) *ChainerInterface
NewChainerInterface creates a new instance of ChainerInterface. 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 (*ChainerInterface) AppPath ¶
func (_m *ChainerInterface) AppPath() string
AppPath provides a mock function with given fields:
func (*ChainerInterface) ConfigPath ¶
func (_m *ChainerInterface) ConfigPath() string
ConfigPath provides a mock function with given fields:
func (*ChainerInterface) EXPECT ¶
func (_m *ChainerInterface) EXPECT() *ChainerInterface_Expecter
func (*ChainerInterface) Home ¶
func (_m *ChainerInterface) Home() (string, error)
Home provides a mock function with given fields:
func (*ChainerInterface) ID ¶
func (_m *ChainerInterface) ID() (string, error)
ID provides a mock function with given fields:
func (*ChainerInterface) RPCPublicAddress ¶
func (_m *ChainerInterface) RPCPublicAddress() (string, error)
RPCPublicAddress provides a mock function with given fields:
type ChainerInterface_AppPath_Call ¶
ChainerInterface_AppPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AppPath'
func (*ChainerInterface_AppPath_Call) Return ¶
func (_c *ChainerInterface_AppPath_Call) Return(_a0 string) *ChainerInterface_AppPath_Call
func (*ChainerInterface_AppPath_Call) Run ¶
func (_c *ChainerInterface_AppPath_Call) Run(run func()) *ChainerInterface_AppPath_Call
func (*ChainerInterface_AppPath_Call) RunAndReturn ¶
func (_c *ChainerInterface_AppPath_Call) RunAndReturn(run func() string) *ChainerInterface_AppPath_Call
type ChainerInterface_ConfigPath_Call ¶
ChainerInterface_ConfigPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfigPath'
func (*ChainerInterface_ConfigPath_Call) Return ¶
func (_c *ChainerInterface_ConfigPath_Call) Return(_a0 string) *ChainerInterface_ConfigPath_Call
func (*ChainerInterface_ConfigPath_Call) Run ¶
func (_c *ChainerInterface_ConfigPath_Call) Run(run func()) *ChainerInterface_ConfigPath_Call
func (*ChainerInterface_ConfigPath_Call) RunAndReturn ¶
func (_c *ChainerInterface_ConfigPath_Call) RunAndReturn(run func() string) *ChainerInterface_ConfigPath_Call
type ChainerInterface_Expecter ¶
type ChainerInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*ChainerInterface_Expecter) AppPath ¶
func (_e *ChainerInterface_Expecter) AppPath() *ChainerInterface_AppPath_Call
AppPath is a helper method to define mock.On call
func (*ChainerInterface_Expecter) ConfigPath ¶
func (_e *ChainerInterface_Expecter) ConfigPath() *ChainerInterface_ConfigPath_Call
ConfigPath is a helper method to define mock.On call
func (*ChainerInterface_Expecter) Home ¶
func (_e *ChainerInterface_Expecter) Home() *ChainerInterface_Home_Call
Home is a helper method to define mock.On call
func (*ChainerInterface_Expecter) ID ¶
func (_e *ChainerInterface_Expecter) ID() *ChainerInterface_ID_Call
ID is a helper method to define mock.On call
func (*ChainerInterface_Expecter) RPCPublicAddress ¶
func (_e *ChainerInterface_Expecter) RPCPublicAddress() *ChainerInterface_RPCPublicAddress_Call
RPCPublicAddress is a helper method to define mock.On call
type ChainerInterface_Home_Call ¶
ChainerInterface_Home_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Home'
func (*ChainerInterface_Home_Call) Return ¶
func (_c *ChainerInterface_Home_Call) Return(_a0 string, _a1 error) *ChainerInterface_Home_Call
func (*ChainerInterface_Home_Call) Run ¶
func (_c *ChainerInterface_Home_Call) Run(run func()) *ChainerInterface_Home_Call
func (*ChainerInterface_Home_Call) RunAndReturn ¶
func (_c *ChainerInterface_Home_Call) RunAndReturn(run func() (string, error)) *ChainerInterface_Home_Call
type ChainerInterface_ID_Call ¶
ChainerInterface_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*ChainerInterface_ID_Call) Return ¶
func (_c *ChainerInterface_ID_Call) Return(_a0 string, _a1 error) *ChainerInterface_ID_Call
func (*ChainerInterface_ID_Call) Run ¶
func (_c *ChainerInterface_ID_Call) Run(run func()) *ChainerInterface_ID_Call
func (*ChainerInterface_ID_Call) RunAndReturn ¶
func (_c *ChainerInterface_ID_Call) RunAndReturn(run func() (string, error)) *ChainerInterface_ID_Call
type ChainerInterface_RPCPublicAddress_Call ¶
ChainerInterface_RPCPublicAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RPCPublicAddress'
func (*ChainerInterface_RPCPublicAddress_Call) Return ¶
func (_c *ChainerInterface_RPCPublicAddress_Call) Return(_a0 string, _a1 error) *ChainerInterface_RPCPublicAddress_Call
func (*ChainerInterface_RPCPublicAddress_Call) Run ¶
func (_c *ChainerInterface_RPCPublicAddress_Call) Run(run func()) *ChainerInterface_RPCPublicAddress_Call
func (*ChainerInterface_RPCPublicAddress_Call) RunAndReturn ¶
func (_c *ChainerInterface_RPCPublicAddress_Call) RunAndReturn(run func() (string, error)) *ChainerInterface_RPCPublicAddress_Call
type PluginClientAPI ¶
PluginClientAPI is an autogenerated mock type for the ClientAPI type
func NewPluginClientAPI ¶
func NewPluginClientAPI(t interface { mock.TestingT Cleanup(func()) }) *PluginClientAPI
NewPluginClientAPI creates a new instance of PluginClientAPI. 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 (*PluginClientAPI) EXPECT ¶
func (_m *PluginClientAPI) EXPECT() *PluginClientAPI_Expecter
func (*PluginClientAPI) GetChainInfo ¶
GetChainInfo provides a mock function with given fields: _a0
type PluginClientAPI_Expecter ¶
type PluginClientAPI_Expecter struct {
// contains filtered or unexported fields
}
func (*PluginClientAPI_Expecter) GetChainInfo ¶
func (_e *PluginClientAPI_Expecter) GetChainInfo(_a0 interface{}) *PluginClientAPI_GetChainInfo_Call
GetChainInfo is a helper method to define mock.On call
- _a0 context.Context
type PluginClientAPI_GetChainInfo_Call ¶
PluginClientAPI_GetChainInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChainInfo'
func (*PluginClientAPI_GetChainInfo_Call) Return ¶
func (_c *PluginClientAPI_GetChainInfo_Call) Return(_a0 *v1.ChainInfo, _a1 error) *PluginClientAPI_GetChainInfo_Call
func (*PluginClientAPI_GetChainInfo_Call) Run ¶
func (_c *PluginClientAPI_GetChainInfo_Call) Run(run func(_a0 context.Context)) *PluginClientAPI_GetChainInfo_Call
func (*PluginClientAPI_GetChainInfo_Call) RunAndReturn ¶
func (_c *PluginClientAPI_GetChainInfo_Call) RunAndReturn(run func(context.Context) (*v1.ChainInfo, error)) *PluginClientAPI_GetChainInfo_Call
type PluginInterface ¶
PluginInterface is an autogenerated mock type for the Interface type
func NewPluginInterface ¶
func NewPluginInterface(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*PluginInterface) EXPECT ¶
func (_m *PluginInterface) EXPECT() *PluginInterface_Expecter
func (*PluginInterface) Execute ¶
func (_m *PluginInterface) Execute(_a0 context.Context, _a1 *v1.ExecutedCommand, _a2 plugin.ClientAPI) error
Execute provides a mock function with given fields: _a0, _a1, _a2
func (*PluginInterface) ExecuteHookCleanUp ¶
func (_m *PluginInterface) ExecuteHookCleanUp(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI) error
ExecuteHookCleanUp provides a mock function with given fields: _a0, _a1, _a2
func (*PluginInterface) ExecuteHookPost ¶
func (_m *PluginInterface) ExecuteHookPost(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI) error
ExecuteHookPost provides a mock function with given fields: _a0, _a1, _a2
func (*PluginInterface) ExecuteHookPre ¶
func (_m *PluginInterface) ExecuteHookPre(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI) error
ExecuteHookPre provides a mock function with given fields: _a0, _a1, _a2
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(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI)) *PluginInterface_ExecuteHookCleanUp_Call
func (*PluginInterface_ExecuteHookCleanUp_Call) RunAndReturn ¶
func (_c *PluginInterface_ExecuteHookCleanUp_Call) RunAndReturn(run func(context.Context, *v1.ExecutedHook, plugin.ClientAPI) error) *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(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI)) *PluginInterface_ExecuteHookPost_Call
func (*PluginInterface_ExecuteHookPost_Call) RunAndReturn ¶
func (_c *PluginInterface_ExecuteHookPost_Call) RunAndReturn(run func(context.Context, *v1.ExecutedHook, plugin.ClientAPI) error) *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(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI)) *PluginInterface_ExecuteHookPre_Call
func (*PluginInterface_ExecuteHookPre_Call) RunAndReturn ¶
func (_c *PluginInterface_ExecuteHookPre_Call) RunAndReturn(run func(context.Context, *v1.ExecutedHook, plugin.ClientAPI) error) *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(_a0 context.Context, _a1 *v1.ExecutedCommand, _a2 plugin.ClientAPI)) *PluginInterface_Execute_Call
func (*PluginInterface_Execute_Call) RunAndReturn ¶
func (_c *PluginInterface_Execute_Call) RunAndReturn(run func(context.Context, *v1.ExecutedCommand, plugin.ClientAPI) error) *PluginInterface_Execute_Call
type PluginInterface_Expecter ¶
type PluginInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*PluginInterface_Expecter) Execute ¶
func (_e *PluginInterface_Expecter) Execute(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PluginInterface_Execute_Call
Execute is a helper method to define mock.On call
- _a0 context.Context
- _a1 *v1.ExecutedCommand
- _a2 plugin.ClientAPI
func (*PluginInterface_Expecter) ExecuteHookCleanUp ¶
func (_e *PluginInterface_Expecter) ExecuteHookCleanUp(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PluginInterface_ExecuteHookCleanUp_Call
ExecuteHookCleanUp is a helper method to define mock.On call
- _a0 context.Context
- _a1 *v1.ExecutedHook
- _a2 plugin.ClientAPI
func (*PluginInterface_Expecter) ExecuteHookPost ¶
func (_e *PluginInterface_Expecter) ExecuteHookPost(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PluginInterface_ExecuteHookPost_Call
ExecuteHookPost is a helper method to define mock.On call
- _a0 context.Context
- _a1 *v1.ExecutedHook
- _a2 plugin.ClientAPI
func (*PluginInterface_Expecter) ExecuteHookPre ¶
func (_e *PluginInterface_Expecter) ExecuteHookPre(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PluginInterface_ExecuteHookPre_Call
ExecuteHookPre is a helper method to define mock.On call
- _a0 context.Context
- _a1 *v1.ExecutedHook
- _a2 plugin.ClientAPI
func (*PluginInterface_Expecter) Manifest ¶
func (_e *PluginInterface_Expecter) Manifest(_a0 interface{}) *PluginInterface_Manifest_Call
Manifest is a helper method to define mock.On call
- _a0 context.Context
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 *v1.Manifest, _a1 error) *PluginInterface_Manifest_Call
func (*PluginInterface_Manifest_Call) Run ¶
func (_c *PluginInterface_Manifest_Call) Run(run func(_a0 context.Context)) *PluginInterface_Manifest_Call
func (*PluginInterface_Manifest_Call) RunAndReturn ¶
func (_c *PluginInterface_Manifest_Call) RunAndReturn(run func(context.Context) (*v1.Manifest, error)) *PluginInterface_Manifest_Call