Documentation ¶
Overview ¶
Package mocknetconf is a generated GoMock package.
Index ¶
- type MockDriver
- func (m *MockDriver) Close() error
- func (m *MockDriver) Commit() error
- func (m *MockDriver) Discard() error
- func (m *MockDriver) EXPECT() *MockDriverMockRecorder
- func (m *MockDriver) EditConfig(target, config string) (*types.NetconfResponse, error)
- func (m *MockDriver) Get(filter string) (*types.NetconfResponse, error)
- func (m *MockDriver) GetConfig(source, filter string) (*types.NetconfResponse, error)
- func (m *MockDriver) IsAlive() bool
- func (m *MockDriver) Lock(target string) (*types.NetconfResponse, error)
- func (m *MockDriver) Unlock(target string) (*types.NetconfResponse, error)
- func (m *MockDriver) Validate(source string) (*types.NetconfResponse, error)
- type MockDriverMockRecorder
- func (mr *MockDriverMockRecorder) Close() *gomock.Call
- func (mr *MockDriverMockRecorder) Commit() *gomock.Call
- func (mr *MockDriverMockRecorder) Discard() *gomock.Call
- func (mr *MockDriverMockRecorder) EditConfig(target, config any) *gomock.Call
- func (mr *MockDriverMockRecorder) Get(filter any) *gomock.Call
- func (mr *MockDriverMockRecorder) GetConfig(source, filter any) *gomock.Call
- func (mr *MockDriverMockRecorder) IsAlive() *gomock.Call
- func (mr *MockDriverMockRecorder) Lock(target any) *gomock.Call
- func (mr *MockDriverMockRecorder) Unlock(target any) *gomock.Call
- func (mr *MockDriverMockRecorder) Validate(source any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDriver ¶
type MockDriver struct {
// contains filtered or unexported fields
}
MockDriver is a mock of Driver interface.
func NewMockDriver ¶
func NewMockDriver(ctrl *gomock.Controller) *MockDriver
NewMockDriver creates a new mock instance.
func (*MockDriver) EXPECT ¶
func (m *MockDriver) EXPECT() *MockDriverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDriver) EditConfig ¶
func (m *MockDriver) EditConfig(target, config string) (*types.NetconfResponse, error)
EditConfig mocks base method.
func (*MockDriver) Get ¶
func (m *MockDriver) Get(filter string) (*types.NetconfResponse, error)
Get mocks base method.
func (*MockDriver) GetConfig ¶
func (m *MockDriver) GetConfig(source, filter string) (*types.NetconfResponse, error)
GetConfig mocks base method.
func (*MockDriver) Lock ¶
func (m *MockDriver) Lock(target string) (*types.NetconfResponse, error)
Lock mocks base method.
func (*MockDriver) Unlock ¶
func (m *MockDriver) Unlock(target string) (*types.NetconfResponse, error)
Unlock mocks base method.
func (*MockDriver) Validate ¶
func (m *MockDriver) Validate(source string) (*types.NetconfResponse, error)
Validate mocks base method.
type MockDriverMockRecorder ¶
type MockDriverMockRecorder struct {
// contains filtered or unexported fields
}
MockDriverMockRecorder is the mock recorder for MockDriver.
func (*MockDriverMockRecorder) Close ¶
func (mr *MockDriverMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDriverMockRecorder) Commit ¶
func (mr *MockDriverMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockDriverMockRecorder) Discard ¶
func (mr *MockDriverMockRecorder) Discard() *gomock.Call
Discard indicates an expected call of Discard.
func (*MockDriverMockRecorder) EditConfig ¶
func (mr *MockDriverMockRecorder) EditConfig(target, config any) *gomock.Call
EditConfig indicates an expected call of EditConfig.
func (*MockDriverMockRecorder) Get ¶
func (mr *MockDriverMockRecorder) Get(filter any) *gomock.Call
Get indicates an expected call of Get.
func (*MockDriverMockRecorder) GetConfig ¶
func (mr *MockDriverMockRecorder) GetConfig(source, filter any) *gomock.Call
GetConfig indicates an expected call of GetConfig.
func (*MockDriverMockRecorder) IsAlive ¶
func (mr *MockDriverMockRecorder) IsAlive() *gomock.Call
IsAlive indicates an expected call of IsAlive.
func (*MockDriverMockRecorder) Lock ¶
func (mr *MockDriverMockRecorder) Lock(target any) *gomock.Call
Lock indicates an expected call of Lock.