Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockABI
- func (m *MockABI) EXPECT() *MockABIMockRecorder
- func (m *MockABI) GetABIExports() interface{}
- func (m *MockABI) GetABIImports() interface{}
- func (m *MockABI) Name() string
- func (m *MockABI) OnInstanceCreate(arg0 common.WasmInstance)
- func (m *MockABI) OnInstanceDestroy(arg0 common.WasmInstance)
- func (m *MockABI) OnInstanceStart(arg0 common.WasmInstance)
- func (m *MockABI) SetABIImports(arg0 interface{})
- type MockABIHandler
- type MockABIHandlerMockRecorder
- type MockABIMockRecorder
- func (mr *MockABIMockRecorder) GetABIExports() *gomock.Call
- func (mr *MockABIMockRecorder) GetABIImports() *gomock.Call
- func (mr *MockABIMockRecorder) Name() *gomock.Call
- func (mr *MockABIMockRecorder) OnInstanceCreate(arg0 interface{}) *gomock.Call
- func (mr *MockABIMockRecorder) OnInstanceDestroy(arg0 interface{}) *gomock.Call
- func (mr *MockABIMockRecorder) OnInstanceStart(arg0 interface{}) *gomock.Call
- func (mr *MockABIMockRecorder) SetABIImports(arg0 interface{}) *gomock.Call
- type MockWasmFunction
- type MockWasmFunctionMockRecorder
- type MockWasmInstance
- func (m *MockWasmInstance) Acquire() bool
- func (m *MockWasmInstance) EXPECT() *MockWasmInstanceMockRecorder
- func (m *MockWasmInstance) GetByte(arg0 uint64) (byte, error)
- func (m *MockWasmInstance) GetData() interface{}
- func (m *MockWasmInstance) GetExportsFunc(arg0 string) (common.WasmFunction, error)
- func (m *MockWasmInstance) GetExportsMem(arg0 string) ([]byte, error)
- func (m *MockWasmInstance) GetMemory(arg0, arg1 uint64) ([]byte, error)
- func (m *MockWasmInstance) GetModule() common.WasmModule
- func (m *MockWasmInstance) GetUint32(arg0 uint64) (uint32, error)
- func (m *MockWasmInstance) HandleError(arg0 error)
- func (m *MockWasmInstance) Lock(arg0 interface{})
- func (m *MockWasmInstance) Malloc(arg0 int32) (uint64, error)
- func (m *MockWasmInstance) PutByte(arg0 uint64, arg1 byte) error
- func (m *MockWasmInstance) PutMemory(arg0, arg1 uint64, arg2 []byte) error
- func (m *MockWasmInstance) PutUint32(arg0 uint64, arg1 uint32) error
- func (m *MockWasmInstance) RegisterImports(arg0 string) error
- func (m *MockWasmInstance) Release()
- func (m *MockWasmInstance) SetData(arg0 interface{})
- func (m *MockWasmInstance) Start() error
- func (m *MockWasmInstance) Stop()
- func (m *MockWasmInstance) Unlock()
- type MockWasmInstanceMockRecorder
- func (mr *MockWasmInstanceMockRecorder) Acquire() *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) GetByte(arg0 interface{}) *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) GetData() *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) GetExportsFunc(arg0 interface{}) *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) GetExportsMem(arg0 interface{}) *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) GetMemory(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) GetModule() *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) GetUint32(arg0 interface{}) *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) HandleError(arg0 interface{}) *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) Lock(arg0 interface{}) *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) Malloc(arg0 interface{}) *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) PutByte(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) PutMemory(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) PutUint32(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) RegisterImports(arg0 interface{}) *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) Release() *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) SetData(arg0 interface{}) *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) Start() *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) Stop() *gomock.Call
- func (mr *MockWasmInstanceMockRecorder) Unlock() *gomock.Call
- type MockWasmManager
- type MockWasmManagerMockRecorder
- type MockWasmModule
- type MockWasmModuleMockRecorder
- type MockWasmPlugin
- func (m *MockWasmPlugin) Clear()
- func (m *MockWasmPlugin) EXPECT() *MockWasmPluginMockRecorder
- func (m *MockWasmPlugin) EnsureInstanceNum(arg0 int) int
- func (m *MockWasmPlugin) Exec(arg0 func(common.WasmInstance) bool)
- func (m *MockWasmPlugin) GetInstance() common.WasmInstance
- func (m *MockWasmPlugin) GetPluginConfig() v2.WasmPluginConfig
- func (m *MockWasmPlugin) GetVmConfig() v2.WasmVmConfig
- func (m *MockWasmPlugin) InstanceNum() int
- func (m *MockWasmPlugin) PluginName() string
- func (m *MockWasmPlugin) ReleaseInstance(arg0 common.WasmInstance)
- func (m *MockWasmPlugin) SetCpuLimit(arg0 int)
- func (m *MockWasmPlugin) SetMemLimit(arg0 int)
- type MockWasmPluginHandler
- type MockWasmPluginHandlerMockRecorder
- type MockWasmPluginMockRecorder
- func (mr *MockWasmPluginMockRecorder) Clear() *gomock.Call
- func (mr *MockWasmPluginMockRecorder) EnsureInstanceNum(arg0 interface{}) *gomock.Call
- func (mr *MockWasmPluginMockRecorder) Exec(arg0 interface{}) *gomock.Call
- func (mr *MockWasmPluginMockRecorder) GetInstance() *gomock.Call
- func (mr *MockWasmPluginMockRecorder) GetPluginConfig() *gomock.Call
- func (mr *MockWasmPluginMockRecorder) GetVmConfig() *gomock.Call
- func (mr *MockWasmPluginMockRecorder) InstanceNum() *gomock.Call
- func (mr *MockWasmPluginMockRecorder) PluginName() *gomock.Call
- func (mr *MockWasmPluginMockRecorder) ReleaseInstance(arg0 interface{}) *gomock.Call
- func (mr *MockWasmPluginMockRecorder) SetCpuLimit(arg0 interface{}) *gomock.Call
- func (mr *MockWasmPluginMockRecorder) SetMemLimit(arg0 interface{}) *gomock.Call
- type MockWasmPluginWrapper
- func (m *MockWasmPluginWrapper) EXPECT() *MockWasmPluginWrapperMockRecorder
- func (m *MockWasmPluginWrapper) GetConfig() v2.WasmPluginConfig
- func (m *MockWasmPluginWrapper) GetPlugin() types.WasmPlugin
- func (m *MockWasmPluginWrapper) RegisterPluginHandler(arg0 types.WasmPluginHandler)
- func (m *MockWasmPluginWrapper) Update(arg0 v2.WasmPluginConfig, arg1 types.WasmPlugin)
- type MockWasmPluginWrapperMockRecorder
- func (mr *MockWasmPluginWrapperMockRecorder) GetConfig() *gomock.Call
- func (mr *MockWasmPluginWrapperMockRecorder) GetPlugin() *gomock.Call
- func (mr *MockWasmPluginWrapperMockRecorder) RegisterPluginHandler(arg0 interface{}) *gomock.Call
- func (mr *MockWasmPluginWrapperMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- type MockWasmVM
- type MockWasmVMMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockABI ¶
type MockABI struct {
// contains filtered or unexported fields
}
MockABI is a mock of ABI interface.
func NewMockABI ¶
func NewMockABI(ctrl *gomock.Controller) *MockABI
NewMockABI creates a new mock instance.
func (*MockABI) EXPECT ¶
func (m *MockABI) EXPECT() *MockABIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockABI) GetABIExports ¶
func (m *MockABI) GetABIExports() interface{}
GetABIExports mocks base method.
func (*MockABI) GetABIImports ¶
func (m *MockABI) GetABIImports() interface{}
GetABIImports mocks base method.
func (*MockABI) OnInstanceCreate ¶
func (m *MockABI) OnInstanceCreate(arg0 common.WasmInstance)
OnInstanceCreate mocks base method.
func (*MockABI) OnInstanceDestroy ¶
func (m *MockABI) OnInstanceDestroy(arg0 common.WasmInstance)
OnInstanceDestroy mocks base method.
func (*MockABI) OnInstanceStart ¶
func (m *MockABI) OnInstanceStart(arg0 common.WasmInstance)
OnInstanceStart mocks base method.
func (*MockABI) SetABIImports ¶
func (m *MockABI) SetABIImports(arg0 interface{})
SetABIImports mocks base method.
type MockABIHandler ¶
type MockABIHandler struct {
// contains filtered or unexported fields
}
MockABIHandler is a mock of ABIHandler interface.
func NewMockABIHandler ¶
func NewMockABIHandler(ctrl *gomock.Controller) *MockABIHandler
NewMockABIHandler creates a new mock instance.
func (*MockABIHandler) EXPECT ¶
func (m *MockABIHandler) EXPECT() *MockABIHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockABIHandler) OnInstanceCreate ¶
func (m *MockABIHandler) OnInstanceCreate(arg0 common.WasmInstance)
OnInstanceCreate mocks base method.
func (*MockABIHandler) OnInstanceDestroy ¶
func (m *MockABIHandler) OnInstanceDestroy(arg0 common.WasmInstance)
OnInstanceDestroy mocks base method.
func (*MockABIHandler) OnInstanceStart ¶
func (m *MockABIHandler) OnInstanceStart(arg0 common.WasmInstance)
OnInstanceStart mocks base method.
type MockABIHandlerMockRecorder ¶
type MockABIHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockABIHandlerMockRecorder is the mock recorder for MockABIHandler.
func (*MockABIHandlerMockRecorder) OnInstanceCreate ¶
func (mr *MockABIHandlerMockRecorder) OnInstanceCreate(arg0 interface{}) *gomock.Call
OnInstanceCreate indicates an expected call of OnInstanceCreate.
func (*MockABIHandlerMockRecorder) OnInstanceDestroy ¶
func (mr *MockABIHandlerMockRecorder) OnInstanceDestroy(arg0 interface{}) *gomock.Call
OnInstanceDestroy indicates an expected call of OnInstanceDestroy.
func (*MockABIHandlerMockRecorder) OnInstanceStart ¶
func (mr *MockABIHandlerMockRecorder) OnInstanceStart(arg0 interface{}) *gomock.Call
OnInstanceStart indicates an expected call of OnInstanceStart.
type MockABIMockRecorder ¶
type MockABIMockRecorder struct {
// contains filtered or unexported fields
}
MockABIMockRecorder is the mock recorder for MockABI.
func (*MockABIMockRecorder) GetABIExports ¶
func (mr *MockABIMockRecorder) GetABIExports() *gomock.Call
GetABIExports indicates an expected call of GetABIExports.
func (*MockABIMockRecorder) GetABIImports ¶
func (mr *MockABIMockRecorder) GetABIImports() *gomock.Call
GetABIImports indicates an expected call of GetABIImports.
func (*MockABIMockRecorder) Name ¶
func (mr *MockABIMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockABIMockRecorder) OnInstanceCreate ¶
func (mr *MockABIMockRecorder) OnInstanceCreate(arg0 interface{}) *gomock.Call
OnInstanceCreate indicates an expected call of OnInstanceCreate.
func (*MockABIMockRecorder) OnInstanceDestroy ¶
func (mr *MockABIMockRecorder) OnInstanceDestroy(arg0 interface{}) *gomock.Call
OnInstanceDestroy indicates an expected call of OnInstanceDestroy.
func (*MockABIMockRecorder) OnInstanceStart ¶
func (mr *MockABIMockRecorder) OnInstanceStart(arg0 interface{}) *gomock.Call
OnInstanceStart indicates an expected call of OnInstanceStart.
func (*MockABIMockRecorder) SetABIImports ¶
func (mr *MockABIMockRecorder) SetABIImports(arg0 interface{}) *gomock.Call
SetABIImports indicates an expected call of SetABIImports.
type MockWasmFunction ¶
type MockWasmFunction struct {
// contains filtered or unexported fields
}
MockWasmFunction is a mock of WasmFunction interface.
func NewMockWasmFunction ¶
func NewMockWasmFunction(ctrl *gomock.Controller) *MockWasmFunction
NewMockWasmFunction creates a new mock instance.
func (*MockWasmFunction) Call ¶
func (m *MockWasmFunction) Call(arg0 ...interface{}) (interface{}, error)
Call mocks base method.
func (*MockWasmFunction) EXPECT ¶
func (m *MockWasmFunction) EXPECT() *MockWasmFunctionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockWasmFunctionMockRecorder ¶
type MockWasmFunctionMockRecorder struct {
// contains filtered or unexported fields
}
MockWasmFunctionMockRecorder is the mock recorder for MockWasmFunction.
func (*MockWasmFunctionMockRecorder) Call ¶
func (mr *MockWasmFunctionMockRecorder) Call(arg0 ...interface{}) *gomock.Call
Call indicates an expected call of Call.
type MockWasmInstance ¶
type MockWasmInstance struct {
// contains filtered or unexported fields
}
MockWasmInstance is a mock of WasmInstance interface.
func NewMockWasmInstance ¶
func NewMockWasmInstance(ctrl *gomock.Controller) *MockWasmInstance
NewMockWasmInstance creates a new mock instance.
func (*MockWasmInstance) Acquire ¶
func (m *MockWasmInstance) Acquire() bool
Acquire mocks base method.
func (*MockWasmInstance) EXPECT ¶
func (m *MockWasmInstance) EXPECT() *MockWasmInstanceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWasmInstance) GetByte ¶
func (m *MockWasmInstance) GetByte(arg0 uint64) (byte, error)
GetByte mocks base method.
func (*MockWasmInstance) GetData ¶
func (m *MockWasmInstance) GetData() interface{}
GetData mocks base method.
func (*MockWasmInstance) GetExportsFunc ¶
func (m *MockWasmInstance) GetExportsFunc(arg0 string) (common.WasmFunction, error)
GetExportsFunc mocks base method.
func (*MockWasmInstance) GetExportsMem ¶
func (m *MockWasmInstance) GetExportsMem(arg0 string) ([]byte, error)
GetExportsMem mocks base method.
func (*MockWasmInstance) GetMemory ¶
func (m *MockWasmInstance) GetMemory(arg0, arg1 uint64) ([]byte, error)
GetMemory mocks base method.
func (*MockWasmInstance) GetModule ¶
func (m *MockWasmInstance) GetModule() common.WasmModule
GetModule mocks base method.
func (*MockWasmInstance) GetUint32 ¶
func (m *MockWasmInstance) GetUint32(arg0 uint64) (uint32, error)
GetUint32 mocks base method.
func (*MockWasmInstance) HandleError ¶
func (m *MockWasmInstance) HandleError(arg0 error)
HandleError mocks base method.
func (*MockWasmInstance) Lock ¶
func (m *MockWasmInstance) Lock(arg0 interface{})
Lock mocks base method.
func (*MockWasmInstance) Malloc ¶
func (m *MockWasmInstance) Malloc(arg0 int32) (uint64, error)
Malloc mocks base method.
func (*MockWasmInstance) PutByte ¶
func (m *MockWasmInstance) PutByte(arg0 uint64, arg1 byte) error
PutByte mocks base method.
func (*MockWasmInstance) PutMemory ¶
func (m *MockWasmInstance) PutMemory(arg0, arg1 uint64, arg2 []byte) error
PutMemory mocks base method.
func (*MockWasmInstance) PutUint32 ¶
func (m *MockWasmInstance) PutUint32(arg0 uint64, arg1 uint32) error
PutUint32 mocks base method.
func (*MockWasmInstance) RegisterImports ¶
func (m *MockWasmInstance) RegisterImports(arg0 string) error
RegisterFunc mocks base method.
func (*MockWasmInstance) SetData ¶
func (m *MockWasmInstance) SetData(arg0 interface{})
SetData mocks base method.
type MockWasmInstanceMockRecorder ¶
type MockWasmInstanceMockRecorder struct {
// contains filtered or unexported fields
}
MockWasmInstanceMockRecorder is the mock recorder for MockWasmInstance.
func (*MockWasmInstanceMockRecorder) Acquire ¶
func (mr *MockWasmInstanceMockRecorder) Acquire() *gomock.Call
Acquire indicates an expected call of Acquire.
func (*MockWasmInstanceMockRecorder) GetByte ¶
func (mr *MockWasmInstanceMockRecorder) GetByte(arg0 interface{}) *gomock.Call
GetByte indicates an expected call of GetByte.
func (*MockWasmInstanceMockRecorder) GetData ¶
func (mr *MockWasmInstanceMockRecorder) GetData() *gomock.Call
GetData indicates an expected call of GetData.
func (*MockWasmInstanceMockRecorder) GetExportsFunc ¶
func (mr *MockWasmInstanceMockRecorder) GetExportsFunc(arg0 interface{}) *gomock.Call
GetExportsFunc indicates an expected call of GetExportsFunc.
func (*MockWasmInstanceMockRecorder) GetExportsMem ¶
func (mr *MockWasmInstanceMockRecorder) GetExportsMem(arg0 interface{}) *gomock.Call
GetExportsMem indicates an expected call of GetExportsMem.
func (*MockWasmInstanceMockRecorder) GetMemory ¶
func (mr *MockWasmInstanceMockRecorder) GetMemory(arg0, arg1 interface{}) *gomock.Call
GetMemory indicates an expected call of GetMemory.
func (*MockWasmInstanceMockRecorder) GetModule ¶
func (mr *MockWasmInstanceMockRecorder) GetModule() *gomock.Call
GetModule indicates an expected call of GetModule.
func (*MockWasmInstanceMockRecorder) GetUint32 ¶
func (mr *MockWasmInstanceMockRecorder) GetUint32(arg0 interface{}) *gomock.Call
GetUint32 indicates an expected call of GetUint32.
func (*MockWasmInstanceMockRecorder) HandleError ¶
func (mr *MockWasmInstanceMockRecorder) HandleError(arg0 interface{}) *gomock.Call
HandleError indicates an expected call of HandleError.
func (*MockWasmInstanceMockRecorder) Lock ¶
func (mr *MockWasmInstanceMockRecorder) Lock(arg0 interface{}) *gomock.Call
Lock indicates an expected call of Lock.
func (*MockWasmInstanceMockRecorder) Malloc ¶
func (mr *MockWasmInstanceMockRecorder) Malloc(arg0 interface{}) *gomock.Call
Malloc indicates an expected call of Malloc.
func (*MockWasmInstanceMockRecorder) PutByte ¶
func (mr *MockWasmInstanceMockRecorder) PutByte(arg0, arg1 interface{}) *gomock.Call
PutByte indicates an expected call of PutByte.
func (*MockWasmInstanceMockRecorder) PutMemory ¶
func (mr *MockWasmInstanceMockRecorder) PutMemory(arg0, arg1, arg2 interface{}) *gomock.Call
PutMemory indicates an expected call of PutMemory.
func (*MockWasmInstanceMockRecorder) PutUint32 ¶
func (mr *MockWasmInstanceMockRecorder) PutUint32(arg0, arg1 interface{}) *gomock.Call
PutUint32 indicates an expected call of PutUint32.
func (*MockWasmInstanceMockRecorder) RegisterImports ¶
func (mr *MockWasmInstanceMockRecorder) RegisterImports(arg0 interface{}) *gomock.Call
RegisterImports indicates an expected call of RegisterImports.
func (*MockWasmInstanceMockRecorder) Release ¶
func (mr *MockWasmInstanceMockRecorder) Release() *gomock.Call
Release indicates an expected call of Release.
func (*MockWasmInstanceMockRecorder) SetData ¶
func (mr *MockWasmInstanceMockRecorder) SetData(arg0 interface{}) *gomock.Call
SetData indicates an expected call of SetData.
func (*MockWasmInstanceMockRecorder) Start ¶
func (mr *MockWasmInstanceMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockWasmInstanceMockRecorder) Stop ¶
func (mr *MockWasmInstanceMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockWasmInstanceMockRecorder) Unlock ¶
func (mr *MockWasmInstanceMockRecorder) Unlock() *gomock.Call
Unlock indicates an expected call of Unlock.
type MockWasmManager ¶
type MockWasmManager struct {
// contains filtered or unexported fields
}
MockWasmManager is a mock of WasmManager interface.
func NewMockWasmManager ¶
func NewMockWasmManager(ctrl *gomock.Controller) *MockWasmManager
NewMockWasmManager creates a new mock instance.
func (*MockWasmManager) AddOrUpdateWasm ¶
func (m *MockWasmManager) AddOrUpdateWasm(arg0 v2.WasmPluginConfig) error
AddOrUpdateWasm mocks base method.
func (*MockWasmManager) EXPECT ¶
func (m *MockWasmManager) EXPECT() *MockWasmManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWasmManager) GetWasmPluginWrapperByName ¶
func (m *MockWasmManager) GetWasmPluginWrapperByName(arg0 string) types.WasmPluginWrapper
GetWasmPluginWrapperByName mocks base method.
func (*MockWasmManager) UninstallWasmPluginByName ¶
func (m *MockWasmManager) UninstallWasmPluginByName(arg0 string) error
UninstallWasmPluginByName mocks base method.
type MockWasmManagerMockRecorder ¶
type MockWasmManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockWasmManagerMockRecorder is the mock recorder for MockWasmManager.
func (*MockWasmManagerMockRecorder) AddOrUpdateWasm ¶
func (mr *MockWasmManagerMockRecorder) AddOrUpdateWasm(arg0 interface{}) *gomock.Call
AddOrUpdateWasm indicates an expected call of AddOrUpdateWasm.
func (*MockWasmManagerMockRecorder) GetWasmPluginWrapperByName ¶
func (mr *MockWasmManagerMockRecorder) GetWasmPluginWrapperByName(arg0 interface{}) *gomock.Call
GetWasmPluginWrapperByName indicates an expected call of GetWasmPluginWrapperByName.
func (*MockWasmManagerMockRecorder) UninstallWasmPluginByName ¶
func (mr *MockWasmManagerMockRecorder) UninstallWasmPluginByName(arg0 interface{}) *gomock.Call
UninstallWasmPluginByName indicates an expected call of UninstallWasmPluginByName.
type MockWasmModule ¶
type MockWasmModule struct {
// contains filtered or unexported fields
}
MockWasmModule is a mock of WasmModule interface.
func NewMockWasmModule ¶
func NewMockWasmModule(ctrl *gomock.Controller) *MockWasmModule
NewMockWasmModule creates a new mock instance.
func (*MockWasmModule) EXPECT ¶
func (m *MockWasmModule) EXPECT() *MockWasmModuleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWasmModule) GetABINameList ¶
func (m *MockWasmModule) GetABINameList() []string
GetABINameList mocks base method.
func (*MockWasmModule) NewInstance ¶
func (m *MockWasmModule) NewInstance() common.WasmInstance
NewInstance mocks base method.
type MockWasmModuleMockRecorder ¶
type MockWasmModuleMockRecorder struct {
// contains filtered or unexported fields
}
MockWasmModuleMockRecorder is the mock recorder for MockWasmModule.
func (*MockWasmModuleMockRecorder) GetABINameList ¶
func (mr *MockWasmModuleMockRecorder) GetABINameList() *gomock.Call
GetABINameList indicates an expected call of GetABINameList.
func (*MockWasmModuleMockRecorder) Init ¶
func (mr *MockWasmModuleMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init.
func (*MockWasmModuleMockRecorder) NewInstance ¶
func (mr *MockWasmModuleMockRecorder) NewInstance() *gomock.Call
NewInstance indicates an expected call of NewInstance.
type MockWasmPlugin ¶
type MockWasmPlugin struct {
// contains filtered or unexported fields
}
MockWasmPlugin is a mock of WasmPlugin interface.
func NewMockWasmPlugin ¶
func NewMockWasmPlugin(ctrl *gomock.Controller) *MockWasmPlugin
NewMockWasmPlugin creates a new mock instance.
func (*MockWasmPlugin) EXPECT ¶
func (m *MockWasmPlugin) EXPECT() *MockWasmPluginMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWasmPlugin) EnsureInstanceNum ¶
func (m *MockWasmPlugin) EnsureInstanceNum(arg0 int) int
EnsureInstanceNum mocks base method.
func (*MockWasmPlugin) Exec ¶
func (m *MockWasmPlugin) Exec(arg0 func(common.WasmInstance) bool)
Exec mocks base method.
func (*MockWasmPlugin) GetInstance ¶
func (m *MockWasmPlugin) GetInstance() common.WasmInstance
GetInstance mocks base method.
func (*MockWasmPlugin) GetPluginConfig ¶
func (m *MockWasmPlugin) GetPluginConfig() v2.WasmPluginConfig
GetPluginConfig mocks base method.
func (*MockWasmPlugin) GetVmConfig ¶
func (m *MockWasmPlugin) GetVmConfig() v2.WasmVmConfig
GetVmConfig mocks base method.
func (*MockWasmPlugin) InstanceNum ¶
func (m *MockWasmPlugin) InstanceNum() int
InstanceNum mocks base method.
func (*MockWasmPlugin) PluginName ¶
func (m *MockWasmPlugin) PluginName() string
PluginName mocks base method.
func (*MockWasmPlugin) ReleaseInstance ¶
func (m *MockWasmPlugin) ReleaseInstance(arg0 common.WasmInstance)
ReleaseInstance mocks base method.
func (*MockWasmPlugin) SetCpuLimit ¶
func (m *MockWasmPlugin) SetCpuLimit(arg0 int)
SetCpuLimit mocks base method.
func (*MockWasmPlugin) SetMemLimit ¶
func (m *MockWasmPlugin) SetMemLimit(arg0 int)
SetMemLimit mocks base method.
type MockWasmPluginHandler ¶
type MockWasmPluginHandler struct {
// contains filtered or unexported fields
}
MockWasmPluginHandler is a mock of WasmPluginHandler interface.
func NewMockWasmPluginHandler ¶
func NewMockWasmPluginHandler(ctrl *gomock.Controller) *MockWasmPluginHandler
NewMockWasmPluginHandler creates a new mock instance.
func (*MockWasmPluginHandler) EXPECT ¶
func (m *MockWasmPluginHandler) EXPECT() *MockWasmPluginHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWasmPluginHandler) OnConfigUpdate ¶
func (m *MockWasmPluginHandler) OnConfigUpdate(arg0 v2.WasmPluginConfig)
OnConfigUpdate mocks base method.
func (*MockWasmPluginHandler) OnPluginDestroy ¶
func (m *MockWasmPluginHandler) OnPluginDestroy(arg0 types.WasmPlugin)
OnPluginDestroy mocks base method.
func (*MockWasmPluginHandler) OnPluginStart ¶
func (m *MockWasmPluginHandler) OnPluginStart(arg0 types.WasmPlugin)
OnPluginStart mocks base method.
type MockWasmPluginHandlerMockRecorder ¶
type MockWasmPluginHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockWasmPluginHandlerMockRecorder is the mock recorder for MockWasmPluginHandler.
func (*MockWasmPluginHandlerMockRecorder) OnConfigUpdate ¶
func (mr *MockWasmPluginHandlerMockRecorder) OnConfigUpdate(arg0 interface{}) *gomock.Call
OnConfigUpdate indicates an expected call of OnConfigUpdate.
func (*MockWasmPluginHandlerMockRecorder) OnPluginDestroy ¶
func (mr *MockWasmPluginHandlerMockRecorder) OnPluginDestroy(arg0 interface{}) *gomock.Call
OnPluginDestroy indicates an expected call of OnPluginDestroy.
func (*MockWasmPluginHandlerMockRecorder) OnPluginStart ¶
func (mr *MockWasmPluginHandlerMockRecorder) OnPluginStart(arg0 interface{}) *gomock.Call
OnPluginStart indicates an expected call of OnPluginStart.
type MockWasmPluginMockRecorder ¶
type MockWasmPluginMockRecorder struct {
// contains filtered or unexported fields
}
MockWasmPluginMockRecorder is the mock recorder for MockWasmPlugin.
func (*MockWasmPluginMockRecorder) Clear ¶
func (mr *MockWasmPluginMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockWasmPluginMockRecorder) EnsureInstanceNum ¶
func (mr *MockWasmPluginMockRecorder) EnsureInstanceNum(arg0 interface{}) *gomock.Call
EnsureInstanceNum indicates an expected call of EnsureInstanceNum.
func (*MockWasmPluginMockRecorder) Exec ¶
func (mr *MockWasmPluginMockRecorder) Exec(arg0 interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockWasmPluginMockRecorder) GetInstance ¶
func (mr *MockWasmPluginMockRecorder) GetInstance() *gomock.Call
GetInstance indicates an expected call of GetInstance.
func (*MockWasmPluginMockRecorder) GetPluginConfig ¶
func (mr *MockWasmPluginMockRecorder) GetPluginConfig() *gomock.Call
GetPluginConfig indicates an expected call of GetPluginConfig.
func (*MockWasmPluginMockRecorder) GetVmConfig ¶
func (mr *MockWasmPluginMockRecorder) GetVmConfig() *gomock.Call
GetVmConfig indicates an expected call of GetVmConfig.
func (*MockWasmPluginMockRecorder) InstanceNum ¶
func (mr *MockWasmPluginMockRecorder) InstanceNum() *gomock.Call
InstanceNum indicates an expected call of InstanceNum.
func (*MockWasmPluginMockRecorder) PluginName ¶
func (mr *MockWasmPluginMockRecorder) PluginName() *gomock.Call
PluginName indicates an expected call of PluginName.
func (*MockWasmPluginMockRecorder) ReleaseInstance ¶
func (mr *MockWasmPluginMockRecorder) ReleaseInstance(arg0 interface{}) *gomock.Call
ReleaseInstance indicates an expected call of ReleaseInstance.
func (*MockWasmPluginMockRecorder) SetCpuLimit ¶
func (mr *MockWasmPluginMockRecorder) SetCpuLimit(arg0 interface{}) *gomock.Call
SetCpuLimit indicates an expected call of SetCpuLimit.
func (*MockWasmPluginMockRecorder) SetMemLimit ¶
func (mr *MockWasmPluginMockRecorder) SetMemLimit(arg0 interface{}) *gomock.Call
SetMemLimit indicates an expected call of SetMemLimit.
type MockWasmPluginWrapper ¶
type MockWasmPluginWrapper struct {
// contains filtered or unexported fields
}
MockWasmPluginWrapper is a mock of WasmPluginWrapper interface.
func NewMockWasmPluginWrapper ¶
func NewMockWasmPluginWrapper(ctrl *gomock.Controller) *MockWasmPluginWrapper
NewMockWasmPluginWrapper creates a new mock instance.
func (*MockWasmPluginWrapper) EXPECT ¶
func (m *MockWasmPluginWrapper) EXPECT() *MockWasmPluginWrapperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWasmPluginWrapper) GetConfig ¶
func (m *MockWasmPluginWrapper) GetConfig() v2.WasmPluginConfig
GetConfig mocks base method.
func (*MockWasmPluginWrapper) GetPlugin ¶
func (m *MockWasmPluginWrapper) GetPlugin() types.WasmPlugin
GetPlugin mocks base method.
func (*MockWasmPluginWrapper) RegisterPluginHandler ¶
func (m *MockWasmPluginWrapper) RegisterPluginHandler(arg0 types.WasmPluginHandler)
RegisterPluginHandler mocks base method.
func (*MockWasmPluginWrapper) Update ¶
func (m *MockWasmPluginWrapper) Update(arg0 v2.WasmPluginConfig, arg1 types.WasmPlugin)
Update mocks base method.
type MockWasmPluginWrapperMockRecorder ¶
type MockWasmPluginWrapperMockRecorder struct {
// contains filtered or unexported fields
}
MockWasmPluginWrapperMockRecorder is the mock recorder for MockWasmPluginWrapper.
func (*MockWasmPluginWrapperMockRecorder) GetConfig ¶
func (mr *MockWasmPluginWrapperMockRecorder) GetConfig() *gomock.Call
GetConfig indicates an expected call of GetConfig.
func (*MockWasmPluginWrapperMockRecorder) GetPlugin ¶
func (mr *MockWasmPluginWrapperMockRecorder) GetPlugin() *gomock.Call
GetPlugin indicates an expected call of GetPlugin.
func (*MockWasmPluginWrapperMockRecorder) RegisterPluginHandler ¶
func (mr *MockWasmPluginWrapperMockRecorder) RegisterPluginHandler(arg0 interface{}) *gomock.Call
RegisterPluginHandler indicates an expected call of RegisterPluginHandler.
func (*MockWasmPluginWrapperMockRecorder) Update ¶
func (mr *MockWasmPluginWrapperMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockWasmVM ¶
type MockWasmVM struct {
// contains filtered or unexported fields
}
MockWasmVM is a mock of WasmVM interface.
func NewMockWasmVM ¶
func NewMockWasmVM(ctrl *gomock.Controller) *MockWasmVM
NewMockWasmVM creates a new mock instance.
func (*MockWasmVM) EXPECT ¶
func (m *MockWasmVM) EXPECT() *MockWasmVMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWasmVM) NewModule ¶
func (m *MockWasmVM) NewModule(arg0 []byte) common.WasmModule
NewModule mocks base method.
type MockWasmVMMockRecorder ¶
type MockWasmVMMockRecorder struct {
// contains filtered or unexported fields
}
MockWasmVMMockRecorder is the mock recorder for MockWasmVM.
func (*MockWasmVMMockRecorder) Close ¶
func (mr *MockWasmVMMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockWasmVMMockRecorder) Init ¶
func (mr *MockWasmVMMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init.
func (*MockWasmVMMockRecorder) Name ¶
func (mr *MockWasmVMMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockWasmVMMockRecorder) NewModule ¶
func (mr *MockWasmVMMockRecorder) NewModule(arg0 interface{}) *gomock.Call
NewModule indicates an expected call of NewModule.