Documentation ¶
Overview ¶
Package test is a generated GoMock package.
Package test is a generated GoMock package.
Index ¶
- type MockModelPlugin
- func (m *MockModelPlugin) Capabilities(ctx context.Context) *gnmi.CapabilityResponse
- func (m *MockModelPlugin) EXPECT() *MockModelPluginMockRecorder
- func (m *MockModelPlugin) GetInfo() *pluginregistry.ModelPluginInfo
- func (m *MockModelPlugin) GetPathValues(ctx context.Context, pathPrefix string, jsonData []byte) ([]*v2.PathValue, error)
- func (m *MockModelPlugin) Validate(ctx context.Context, jsonData []byte) error
- type MockModelPluginMockRecorder
- func (mr *MockModelPluginMockRecorder) Capabilities(ctx interface{}) *gomock.Call
- func (mr *MockModelPluginMockRecorder) GetInfo() *gomock.Call
- func (mr *MockModelPluginMockRecorder) GetPathValues(ctx, pathPrefix, jsonData interface{}) *gomock.Call
- func (mr *MockModelPluginMockRecorder) Validate(ctx, jsonData interface{}) *gomock.Call
- type MockPluginRegistry
- func (m *MockPluginRegistry) EXPECT() *MockPluginRegistryMockRecorder
- func (m *MockPluginRegistry) GetPlugin(model v2.TargetType, version v2.TargetVersion) (pluginregistry.ModelPlugin, bool)
- func (m *MockPluginRegistry) GetPlugins() []pluginregistry.ModelPlugin
- func (m *MockPluginRegistry) Start()
- func (m *MockPluginRegistry) Stop()
- type MockPluginRegistryMockRecorder
- type MockStore
- func (m *MockStore) Create(ctx context.Context, object *topo.Object) error
- func (m *MockStore) Delete(ctx context.Context, object *topo.Object) error
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) Get(ctx context.Context, id topo.ID) (*topo.Object, error)
- func (m *MockStore) List(ctx context.Context, filters *topo.Filters) ([]topo.Object, error)
- func (m *MockStore) Update(ctx context.Context, object *topo.Object) error
- func (m *MockStore) Watch(ctx context.Context, ch chan<- topo.Event, filters *topo.Filters) error
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) Create(ctx, object interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Delete(ctx, object interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Get(ctx, id interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) List(ctx, filters interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Update(ctx, object interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Watch(ctx, ch, filters interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockModelPlugin ¶ added in v0.10.16
type MockModelPlugin struct {
// contains filtered or unexported fields
}
MockModelPlugin is a mock of ModelPlugin interface.
func NewMockModelPlugin ¶ added in v0.10.16
func NewMockModelPlugin(ctrl *gomock.Controller) *MockModelPlugin
NewMockModelPlugin creates a new mock instance.
func (*MockModelPlugin) Capabilities ¶ added in v0.10.16
func (m *MockModelPlugin) Capabilities(ctx context.Context) *gnmi.CapabilityResponse
Capabilities mocks base method.
func (*MockModelPlugin) EXPECT ¶ added in v0.10.16
func (m *MockModelPlugin) EXPECT() *MockModelPluginMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockModelPlugin) GetInfo ¶ added in v0.10.16
func (m *MockModelPlugin) GetInfo() *pluginregistry.ModelPluginInfo
GetInfo mocks base method.
func (*MockModelPlugin) GetPathValues ¶ added in v0.10.16
func (m *MockModelPlugin) GetPathValues(ctx context.Context, pathPrefix string, jsonData []byte) ([]*v2.PathValue, error)
GetPathValues mocks base method.
type MockModelPluginMockRecorder ¶ added in v0.10.16
type MockModelPluginMockRecorder struct {
// contains filtered or unexported fields
}
MockModelPluginMockRecorder is the mock recorder for MockModelPlugin.
func (*MockModelPluginMockRecorder) Capabilities ¶ added in v0.10.16
func (mr *MockModelPluginMockRecorder) Capabilities(ctx interface{}) *gomock.Call
Capabilities indicates an expected call of Capabilities.
func (*MockModelPluginMockRecorder) GetInfo ¶ added in v0.10.16
func (mr *MockModelPluginMockRecorder) GetInfo() *gomock.Call
GetInfo indicates an expected call of GetInfo.
func (*MockModelPluginMockRecorder) GetPathValues ¶ added in v0.10.16
func (mr *MockModelPluginMockRecorder) GetPathValues(ctx, pathPrefix, jsonData interface{}) *gomock.Call
GetPathValues indicates an expected call of GetPathValues.
func (*MockModelPluginMockRecorder) Validate ¶ added in v0.10.16
func (mr *MockModelPluginMockRecorder) Validate(ctx, jsonData interface{}) *gomock.Call
Validate indicates an expected call of Validate.
type MockPluginRegistry ¶
type MockPluginRegistry struct {
// contains filtered or unexported fields
}
MockPluginRegistry is a mock of PluginRegistry interface.
func NewMockPluginRegistry ¶
func NewMockPluginRegistry(ctrl *gomock.Controller) *MockPluginRegistry
NewMockPluginRegistry creates a new mock instance.
func (*MockPluginRegistry) EXPECT ¶
func (m *MockPluginRegistry) EXPECT() *MockPluginRegistryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPluginRegistry) GetPlugin ¶
func (m *MockPluginRegistry) GetPlugin(model v2.TargetType, version v2.TargetVersion) (pluginregistry.ModelPlugin, bool)
GetPlugin mocks base method.
func (*MockPluginRegistry) GetPlugins ¶
func (m *MockPluginRegistry) GetPlugins() []pluginregistry.ModelPlugin
GetPlugins mocks base method.
type MockPluginRegistryMockRecorder ¶
type MockPluginRegistryMockRecorder struct {
// contains filtered or unexported fields
}
MockPluginRegistryMockRecorder is the mock recorder for MockPluginRegistry.
func (*MockPluginRegistryMockRecorder) GetPlugin ¶
func (mr *MockPluginRegistryMockRecorder) GetPlugin(model, version interface{}) *gomock.Call
GetPlugin indicates an expected call of GetPlugin.
func (*MockPluginRegistryMockRecorder) GetPlugins ¶
func (mr *MockPluginRegistryMockRecorder) GetPlugins() *gomock.Call
GetPlugins indicates an expected call of GetPlugins.
func (*MockPluginRegistryMockRecorder) Start ¶
func (mr *MockPluginRegistryMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockPluginRegistryMockRecorder) Stop ¶
func (mr *MockPluginRegistryMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface.
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance.
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) Create ¶
func (mr *MockStoreMockRecorder) Create(ctx, object interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockStoreMockRecorder) Delete ¶
func (mr *MockStoreMockRecorder) Delete(ctx, object interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockStoreMockRecorder) Get ¶
func (mr *MockStoreMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockStoreMockRecorder) List ¶
func (mr *MockStoreMockRecorder) List(ctx, filters interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockStoreMockRecorder) Update ¶
func (mr *MockStoreMockRecorder) Update(ctx, object interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockStoreMockRecorder) Watch ¶
func (mr *MockStoreMockRecorder) Watch(ctx, ch, filters interface{}) *gomock.Call
Watch indicates an expected call of Watch.