mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-30 03:54:35 +01:00
1d9feab2d9
Works only with userspace implementation: 1. Configure host to solve DNS requests via a fake DSN server address in the Netbird network. 2. Add to firewall catch rule for these DNS requests. 3. Resolve these DNS requests and respond by writing directly to wireguard device.
92 lines
2.8 KiB
Go
92 lines
2.8 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/netbirdio/netbird/client/internal/acl (interfaces: IFaceMapper)
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
package mocks
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
iface "github.com/netbirdio/netbird/iface"
|
|
)
|
|
|
|
// MockIFaceMapper is a mock of IFaceMapper interface.
|
|
type MockIFaceMapper struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockIFaceMapperMockRecorder
|
|
}
|
|
|
|
// MockIFaceMapperMockRecorder is the mock recorder for MockIFaceMapper.
|
|
type MockIFaceMapperMockRecorder struct {
|
|
mock *MockIFaceMapper
|
|
}
|
|
|
|
// NewMockIFaceMapper creates a new mock instance.
|
|
func NewMockIFaceMapper(ctrl *gomock.Controller) *MockIFaceMapper {
|
|
mock := &MockIFaceMapper{ctrl: ctrl}
|
|
mock.recorder = &MockIFaceMapperMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockIFaceMapper) EXPECT() *MockIFaceMapperMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Address mocks base method.
|
|
func (m *MockIFaceMapper) Address() iface.WGAddress {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Address")
|
|
ret0, _ := ret[0].(iface.WGAddress)
|
|
return ret0
|
|
}
|
|
|
|
// Address indicates an expected call of Address.
|
|
func (mr *MockIFaceMapperMockRecorder) Address() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Address", reflect.TypeOf((*MockIFaceMapper)(nil).Address))
|
|
}
|
|
|
|
// IsUserspaceBind mocks base method.
|
|
func (m *MockIFaceMapper) IsUserspaceBind() bool {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "IsUserspaceBind")
|
|
ret0, _ := ret[0].(bool)
|
|
return ret0
|
|
}
|
|
|
|
// IsUserspaceBind indicates an expected call of IsUserspaceBind.
|
|
func (mr *MockIFaceMapperMockRecorder) IsUserspaceBind() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsUserspaceBind", reflect.TypeOf((*MockIFaceMapper)(nil).IsUserspaceBind))
|
|
}
|
|
|
|
// Name mocks base method.
|
|
func (m *MockIFaceMapper) Name() string {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Name")
|
|
ret0, _ := ret[0].(string)
|
|
return ret0
|
|
}
|
|
|
|
// Name indicates an expected call of Name.
|
|
func (mr *MockIFaceMapperMockRecorder) Name() *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockIFaceMapper)(nil).Name))
|
|
}
|
|
|
|
// SetFilter mocks base method.
|
|
func (m *MockIFaceMapper) SetFilter(arg0 iface.PacketFilter) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "SetFilter", arg0)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// SetFilter indicates an expected call of SetFilter.
|
|
func (mr *MockIFaceMapperMockRecorder) SetFilter(arg0 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFilter", reflect.TypeOf((*MockIFaceMapper)(nil).SetFilter), arg0)
|
|
}
|