github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/monitor/internal/pod/mockcache_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: sigs.k8s.io/controller-runtime/pkg/cache (interfaces: Cache)
     3  
     4  // Package podmonitor is a generated GoMock package.
     5  package podmonitor
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	runtime "k8s.io/apimachinery/pkg/runtime"
    13  	schema "k8s.io/apimachinery/pkg/runtime/schema"
    14  	types "k8s.io/apimachinery/pkg/types"
    15  	cache "k8s.io/client-go/tools/cache"
    16  	client "sigs.k8s.io/controller-runtime/pkg/client"
    17  )
    18  
    19  // MockCache is a mock of Cache interface
    20  // nolint
    21  type MockCache struct {
    22  	ctrl     *gomock.Controller
    23  	recorder *MockCacheMockRecorder
    24  }
    25  
    26  // MockCacheMockRecorder is the mock recorder for MockCache
    27  // nolint
    28  type MockCacheMockRecorder struct {
    29  	mock *MockCache
    30  }
    31  
    32  // NewMockCache creates a new mock instance
    33  // nolint
    34  func NewMockCache(ctrl *gomock.Controller) *MockCache {
    35  	mock := &MockCache{ctrl: ctrl}
    36  	mock.recorder = &MockCacheMockRecorder{mock}
    37  	return mock
    38  }
    39  
    40  // EXPECT returns an object that allows the caller to indicate expected use
    41  // nolint
    42  func (m *MockCache) EXPECT() *MockCacheMockRecorder {
    43  	return m.recorder
    44  }
    45  
    46  // Get mocks base method
    47  // nolint
    48  func (m *MockCache) Get(arg0 context.Context, arg1 types.NamespacedName, arg2 runtime.Object) error {
    49  	m.ctrl.T.Helper()
    50  	ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2)
    51  	ret0, _ := ret[0].(error)
    52  	return ret0
    53  }
    54  
    55  // Get indicates an expected call of Get
    56  // nolint
    57  func (mr *MockCacheMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call {
    58  	mr.mock.ctrl.T.Helper()
    59  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockCache)(nil).Get), arg0, arg1, arg2)
    60  }
    61  
    62  // GetInformer mocks base method
    63  // nolint
    64  func (m *MockCache) GetInformer(arg0 runtime.Object) (cache.SharedIndexInformer, error) {
    65  	m.ctrl.T.Helper()
    66  	ret := m.ctrl.Call(m, "GetInformer", arg0)
    67  	ret0, _ := ret[0].(cache.SharedIndexInformer)
    68  	ret1, _ := ret[1].(error)
    69  	return ret0, ret1
    70  }
    71  
    72  // GetInformer indicates an expected call of GetInformer
    73  // nolint
    74  func (mr *MockCacheMockRecorder) GetInformer(arg0 interface{}) *gomock.Call {
    75  	mr.mock.ctrl.T.Helper()
    76  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInformer", reflect.TypeOf((*MockCache)(nil).GetInformer), arg0)
    77  }
    78  
    79  // GetInformerForKind mocks base method
    80  // nolint
    81  func (m *MockCache) GetInformerForKind(arg0 schema.GroupVersionKind) (cache.SharedIndexInformer, error) {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "GetInformerForKind", arg0)
    84  	ret0, _ := ret[0].(cache.SharedIndexInformer)
    85  	ret1, _ := ret[1].(error)
    86  	return ret0, ret1
    87  }
    88  
    89  // GetInformerForKind indicates an expected call of GetInformerForKind
    90  // nolint
    91  func (mr *MockCacheMockRecorder) GetInformerForKind(arg0 interface{}) *gomock.Call {
    92  	mr.mock.ctrl.T.Helper()
    93  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInformerForKind", reflect.TypeOf((*MockCache)(nil).GetInformerForKind), arg0)
    94  }
    95  
    96  // IndexField mocks base method
    97  // nolint
    98  func (m *MockCache) IndexField(arg0 runtime.Object, arg1 string, arg2 client.IndexerFunc) error {
    99  	m.ctrl.T.Helper()
   100  	ret := m.ctrl.Call(m, "IndexField", arg0, arg1, arg2)
   101  	ret0, _ := ret[0].(error)
   102  	return ret0
   103  }
   104  
   105  // IndexField indicates an expected call of IndexField
   106  // nolint
   107  func (mr *MockCacheMockRecorder) IndexField(arg0, arg1, arg2 interface{}) *gomock.Call {
   108  	mr.mock.ctrl.T.Helper()
   109  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexField", reflect.TypeOf((*MockCache)(nil).IndexField), arg0, arg1, arg2)
   110  }
   111  
   112  // List mocks base method
   113  // nolint
   114  func (m *MockCache) List(arg0 context.Context, arg1 *client.ListOptions, arg2 runtime.Object) error {
   115  	m.ctrl.T.Helper()
   116  	ret := m.ctrl.Call(m, "List", arg0, arg1, arg2)
   117  	ret0, _ := ret[0].(error)
   118  	return ret0
   119  }
   120  
   121  // List indicates an expected call of List
   122  // nolint
   123  func (mr *MockCacheMockRecorder) List(arg0, arg1, arg2 interface{}) *gomock.Call {
   124  	mr.mock.ctrl.T.Helper()
   125  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockCache)(nil).List), arg0, arg1, arg2)
   126  }
   127  
   128  // Start mocks base method
   129  // nolint
   130  func (m *MockCache) Start(arg0 <-chan struct{}) error {
   131  	m.ctrl.T.Helper()
   132  	ret := m.ctrl.Call(m, "Start", arg0)
   133  	ret0, _ := ret[0].(error)
   134  	return ret0
   135  }
   136  
   137  // Start indicates an expected call of Start
   138  // nolint
   139  func (mr *MockCacheMockRecorder) Start(arg0 interface{}) *gomock.Call {
   140  	mr.mock.ctrl.T.Helper()
   141  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockCache)(nil).Start), arg0)
   142  }
   143  
   144  // WaitForCacheSync mocks base method
   145  // nolint
   146  func (m *MockCache) WaitForCacheSync(arg0 <-chan struct{}) bool {
   147  	m.ctrl.T.Helper()
   148  	ret := m.ctrl.Call(m, "WaitForCacheSync", arg0)
   149  	ret0, _ := ret[0].(bool)
   150  	return ret0
   151  }
   152  
   153  // WaitForCacheSync indicates an expected call of WaitForCacheSync
   154  // nolint
   155  func (mr *MockCacheMockRecorder) WaitForCacheSync(arg0 interface{}) *gomock.Call {
   156  	mr.mock.ctrl.T.Helper()
   157  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForCacheSync", reflect.TypeOf((*MockCache)(nil).WaitForCacheSync), arg0)
   158  }