github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/monitor/internal/k8s/mocks_pod_cache_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: trireme-lib/monitor/internal/k8s/pod_cache.go 3 4 // Package k8smonitor is a generated GoMock package. 5 package k8smonitor 6 7 import ( 8 context "context" 9 gomock "github.com/golang/mock/gomock" 10 v1 "k8s.io/api/core/v1" 11 kubernetes "k8s.io/client-go/kubernetes" 12 v10 "k8s.io/client-go/listers/core/v1" 13 reflect "reflect" 14 ) 15 16 // MockpodCacheInterface is a mock of podCacheInterface interface 17 type MockpodCacheInterface struct { 18 ctrl *gomock.Controller 19 recorder *MockpodCacheInterfaceMockRecorder 20 } 21 22 // MockpodCacheInterfaceMockRecorder is the mock recorder for MockpodCacheInterface 23 type MockpodCacheInterfaceMockRecorder struct { 24 mock *MockpodCacheInterface 25 } 26 27 // NewMockpodCacheInterface creates a new mock instance 28 func NewMockpodCacheInterface(ctrl *gomock.Controller) *MockpodCacheInterface { 29 mock := &MockpodCacheInterface{ctrl: ctrl} 30 mock.recorder = &MockpodCacheInterfaceMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use 35 func (m *MockpodCacheInterface) EXPECT() *MockpodCacheInterfaceMockRecorder { 36 return m.recorder 37 } 38 39 // Delete mocks base method 40 func (m *MockpodCacheInterface) Delete(sandboxID string) { 41 m.ctrl.T.Helper() 42 m.ctrl.Call(m, "Delete", sandboxID) 43 } 44 45 // Delete indicates an expected call of Delete 46 func (mr *MockpodCacheInterfaceMockRecorder) Delete(sandboxID interface{}) *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockpodCacheInterface)(nil).Delete), sandboxID) 49 } 50 51 // Get mocks base method 52 func (m *MockpodCacheInterface) Get(sandboxID string) *v1.Pod { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "Get", sandboxID) 55 ret0, _ := ret[0].(*v1.Pod) 56 return ret0 57 } 58 59 // Get indicates an expected call of Get 60 func (mr *MockpodCacheInterfaceMockRecorder) Get(sandboxID interface{}) *gomock.Call { 61 mr.mock.ctrl.T.Helper() 62 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockpodCacheInterface)(nil).Get), sandboxID) 63 } 64 65 // Set mocks base method 66 func (m *MockpodCacheInterface) Set(sandboxID string, pod *v1.Pod) error { 67 m.ctrl.T.Helper() 68 ret := m.ctrl.Call(m, "Set", sandboxID, pod) 69 ret0, _ := ret[0].(error) 70 return ret0 71 } 72 73 // Set indicates an expected call of Set 74 func (mr *MockpodCacheInterfaceMockRecorder) Set(sandboxID, pod interface{}) *gomock.Call { 75 mr.mock.ctrl.T.Helper() 76 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockpodCacheInterface)(nil).Set), sandboxID, pod) 77 } 78 79 // FindSandboxID mocks base method 80 func (m *MockpodCacheInterface) FindSandboxID(name, namespace string) (string, error) { 81 m.ctrl.T.Helper() 82 ret := m.ctrl.Call(m, "FindSandboxID", name, namespace) 83 ret0, _ := ret[0].(string) 84 ret1, _ := ret[1].(error) 85 return ret0, ret1 86 } 87 88 // FindSandboxID indicates an expected call of FindSandboxID 89 func (mr *MockpodCacheInterfaceMockRecorder) FindSandboxID(name, namespace interface{}) *gomock.Call { 90 mr.mock.ctrl.T.Helper() 91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindSandboxID", reflect.TypeOf((*MockpodCacheInterface)(nil).FindSandboxID), name, namespace) 92 } 93 94 // SetupInformer mocks base method 95 func (m *MockpodCacheInterface) SetupInformer(ctx context.Context, kubeClient kubernetes.Interface, nodeName string, needsUpdate needsUpdateFunc) v10.PodLister { 96 m.ctrl.T.Helper() 97 ret := m.ctrl.Call(m, "SetupInformer", ctx, kubeClient, nodeName, needsUpdate) 98 ret0, _ := ret[0].(v10.PodLister) 99 return ret0 100 } 101 102 // SetupInformer indicates an expected call of SetupInformer 103 func (mr *MockpodCacheInterfaceMockRecorder) SetupInformer(ctx, kubeClient, nodeName, needsUpdate interface{}) *gomock.Call { 104 mr.mock.ctrl.T.Helper() 105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetupInformer", reflect.TypeOf((*MockpodCacheInterface)(nil).SetupInformer), ctx, kubeClient, nodeName, needsUpdate) 106 }