github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/policy/mockpolicy/mockpolicy.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: policy/interfaces.go 3 4 // Package mockpolicy is a generated GoMock package. 5 package mockpolicy 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 nat "github.com/docker/go-connections/nat" 12 gomock "github.com/golang/mock/gomock" 13 common "go.aporeto.io/enforcerd/trireme-lib/common" 14 policy "go.aporeto.io/enforcerd/trireme-lib/policy" 15 ) 16 17 // MockRuntimeReader is a mock of RuntimeReader interface 18 // nolint 19 type MockRuntimeReader struct { 20 ctrl *gomock.Controller 21 recorder *MockRuntimeReaderMockRecorder 22 } 23 24 // MockRuntimeReaderMockRecorder is the mock recorder for MockRuntimeReader 25 // nolint 26 type MockRuntimeReaderMockRecorder struct { 27 mock *MockRuntimeReader 28 } 29 30 // NewMockRuntimeReader creates a new mock instance 31 // nolint 32 func NewMockRuntimeReader(ctrl *gomock.Controller) *MockRuntimeReader { 33 mock := &MockRuntimeReader{ctrl: ctrl} 34 mock.recorder = &MockRuntimeReaderMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use 39 // nolint 40 func (m *MockRuntimeReader) EXPECT() *MockRuntimeReaderMockRecorder { 41 return m.recorder 42 } 43 44 // Pid mocks base method 45 // nolint 46 func (m *MockRuntimeReader) Pid() int { 47 m.ctrl.T.Helper() 48 ret := m.ctrl.Call(m, "Pid") 49 ret0, _ := ret[0].(int) 50 return ret0 51 } 52 53 // Pid indicates an expected call of Pid 54 // nolint 55 func (mr *MockRuntimeReaderMockRecorder) Pid() *gomock.Call { 56 mr.mock.ctrl.T.Helper() 57 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Pid", reflect.TypeOf((*MockRuntimeReader)(nil).Pid)) 58 } 59 60 // Name mocks base method 61 // nolint 62 func (m *MockRuntimeReader) Name() string { 63 m.ctrl.T.Helper() 64 ret := m.ctrl.Call(m, "Name") 65 ret0, _ := ret[0].(string) 66 return ret0 67 } 68 69 // Name indicates an expected call of Name 70 // nolint 71 func (mr *MockRuntimeReaderMockRecorder) Name() *gomock.Call { 72 mr.mock.ctrl.T.Helper() 73 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockRuntimeReader)(nil).Name)) 74 } 75 76 // NSPath mocks base method 77 // nolint 78 func (m *MockRuntimeReader) NSPath() string { 79 m.ctrl.T.Helper() 80 ret := m.ctrl.Call(m, "NSPath") 81 ret0, _ := ret[0].(string) 82 return ret0 83 } 84 85 // NSPath indicates an expected call of NSPath 86 // nolint 87 func (mr *MockRuntimeReaderMockRecorder) NSPath() *gomock.Call { 88 mr.mock.ctrl.T.Helper() 89 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NSPath", reflect.TypeOf((*MockRuntimeReader)(nil).NSPath)) 90 } 91 92 // Tag mocks base method 93 // nolint 94 func (m *MockRuntimeReader) Tag(arg0 string) (string, bool) { 95 m.ctrl.T.Helper() 96 ret := m.ctrl.Call(m, "Tag", arg0) 97 ret0, _ := ret[0].(string) 98 ret1, _ := ret[1].(bool) 99 return ret0, ret1 100 } 101 102 // Tag indicates an expected call of Tag 103 // nolint 104 func (mr *MockRuntimeReaderMockRecorder) Tag(arg0 interface{}) *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tag", reflect.TypeOf((*MockRuntimeReader)(nil).Tag), arg0) 107 } 108 109 // Tags mocks base method 110 // nolint 111 func (m *MockRuntimeReader) Tags() *policy.TagStore { 112 m.ctrl.T.Helper() 113 ret := m.ctrl.Call(m, "Tags") 114 ret0, _ := ret[0].(*policy.TagStore) 115 return ret0 116 } 117 118 // Tags indicates an expected call of Tags 119 // nolint 120 func (mr *MockRuntimeReaderMockRecorder) Tags() *gomock.Call { 121 mr.mock.ctrl.T.Helper() 122 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tags", reflect.TypeOf((*MockRuntimeReader)(nil).Tags)) 123 } 124 125 // Options mocks base method 126 // nolint 127 func (m *MockRuntimeReader) Options() policy.OptionsType { 128 m.ctrl.T.Helper() 129 ret := m.ctrl.Call(m, "Options") 130 ret0, _ := ret[0].(policy.OptionsType) 131 return ret0 132 } 133 134 // Options indicates an expected call of Options 135 // nolint 136 func (mr *MockRuntimeReaderMockRecorder) Options() *gomock.Call { 137 mr.mock.ctrl.T.Helper() 138 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Options", reflect.TypeOf((*MockRuntimeReader)(nil).Options)) 139 } 140 141 // IPAddresses mocks base method 142 // nolint 143 func (m *MockRuntimeReader) IPAddresses() policy.ExtendedMap { 144 m.ctrl.T.Helper() 145 ret := m.ctrl.Call(m, "IPAddresses") 146 ret0, _ := ret[0].(policy.ExtendedMap) 147 return ret0 148 } 149 150 // IPAddresses indicates an expected call of IPAddresses 151 // nolint 152 func (mr *MockRuntimeReaderMockRecorder) IPAddresses() *gomock.Call { 153 mr.mock.ctrl.T.Helper() 154 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IPAddresses", reflect.TypeOf((*MockRuntimeReader)(nil).IPAddresses)) 155 } 156 157 // PUType mocks base method 158 // nolint 159 func (m *MockRuntimeReader) PUType() common.PUType { 160 m.ctrl.T.Helper() 161 ret := m.ctrl.Call(m, "PUType") 162 ret0, _ := ret[0].(common.PUType) 163 return ret0 164 } 165 166 // PUType indicates an expected call of PUType 167 // nolint 168 func (mr *MockRuntimeReaderMockRecorder) PUType() *gomock.Call { 169 mr.mock.ctrl.T.Helper() 170 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PUType", reflect.TypeOf((*MockRuntimeReader)(nil).PUType)) 171 } 172 173 // SetServices mocks base method 174 // nolint 175 func (m *MockRuntimeReader) SetServices(services []common.Service) { 176 m.ctrl.T.Helper() 177 m.ctrl.Call(m, "SetServices", services) 178 } 179 180 // SetServices indicates an expected call of SetServices 181 // nolint 182 func (mr *MockRuntimeReaderMockRecorder) SetServices(services interface{}) *gomock.Call { 183 mr.mock.ctrl.T.Helper() 184 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetServices", reflect.TypeOf((*MockRuntimeReader)(nil).SetServices), services) 185 } 186 187 // PortMap mocks base method 188 // nolint 189 func (m *MockRuntimeReader) PortMap() map[nat.Port][]string { 190 m.ctrl.T.Helper() 191 ret := m.ctrl.Call(m, "PortMap") 192 ret0, _ := ret[0].(map[nat.Port][]string) 193 return ret0 194 } 195 196 // PortMap indicates an expected call of PortMap 197 // nolint 198 func (mr *MockRuntimeReaderMockRecorder) PortMap() *gomock.Call { 199 mr.mock.ctrl.T.Helper() 200 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PortMap", reflect.TypeOf((*MockRuntimeReader)(nil).PortMap)) 201 } 202 203 // MockResolver is a mock of Resolver interface 204 // nolint 205 type MockResolver struct { 206 ctrl *gomock.Controller 207 recorder *MockResolverMockRecorder 208 } 209 210 // MockResolverMockRecorder is the mock recorder for MockResolver 211 // nolint 212 type MockResolverMockRecorder struct { 213 mock *MockResolver 214 } 215 216 // NewMockResolver creates a new mock instance 217 // nolint 218 func NewMockResolver(ctrl *gomock.Controller) *MockResolver { 219 mock := &MockResolver{ctrl: ctrl} 220 mock.recorder = &MockResolverMockRecorder{mock} 221 return mock 222 } 223 224 // EXPECT returns an object that allows the caller to indicate expected use 225 // nolint 226 func (m *MockResolver) EXPECT() *MockResolverMockRecorder { 227 return m.recorder 228 } 229 230 // HandlePUEvent mocks base method 231 // nolint 232 func (m *MockResolver) HandlePUEvent(ctx context.Context, puID string, event common.Event, runtime policy.RuntimeReader) error { 233 m.ctrl.T.Helper() 234 ret := m.ctrl.Call(m, "HandlePUEvent", ctx, puID, event, runtime) 235 ret0, _ := ret[0].(error) 236 return ret0 237 } 238 239 // HandlePUEvent indicates an expected call of HandlePUEvent 240 // nolint 241 func (mr *MockResolverMockRecorder) HandlePUEvent(ctx, puID, event, runtime interface{}) *gomock.Call { 242 mr.mock.ctrl.T.Helper() 243 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandlePUEvent", reflect.TypeOf((*MockResolver)(nil).HandlePUEvent), ctx, puID, event, runtime) 244 }