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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: sigs.k8s.io/controller-runtime/pkg/client (interfaces: Client)
     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  	types "k8s.io/apimachinery/pkg/types"
    14  	client "sigs.k8s.io/controller-runtime/pkg/client"
    15  )
    16  
    17  // MockClient is a mock of Client interface
    18  // nolint
    19  type MockClient struct {
    20  	ctrl     *gomock.Controller
    21  	recorder *MockClientMockRecorder
    22  }
    23  
    24  // MockClientMockRecorder is the mock recorder for MockClient
    25  // nolint
    26  type MockClientMockRecorder struct {
    27  	mock *MockClient
    28  }
    29  
    30  // NewMockClient creates a new mock instance
    31  // nolint
    32  func NewMockClient(ctrl *gomock.Controller) *MockClient {
    33  	mock := &MockClient{ctrl: ctrl}
    34  	mock.recorder = &MockClientMockRecorder{mock}
    35  	return mock
    36  }
    37  
    38  // EXPECT returns an object that allows the caller to indicate expected use
    39  // nolint
    40  func (m *MockClient) EXPECT() *MockClientMockRecorder {
    41  	return m.recorder
    42  }
    43  
    44  // Create mocks base method
    45  // nolint
    46  func (m *MockClient) Create(arg0 context.Context, arg1 runtime.Object) error {
    47  	m.ctrl.T.Helper()
    48  	ret := m.ctrl.Call(m, "Create", arg0, arg1)
    49  	ret0, _ := ret[0].(error)
    50  	return ret0
    51  }
    52  
    53  // Create indicates an expected call of Create
    54  // nolint
    55  func (mr *MockClientMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call {
    56  	mr.mock.ctrl.T.Helper()
    57  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockClient)(nil).Create), arg0, arg1)
    58  }
    59  
    60  // Delete mocks base method
    61  // nolint
    62  func (m *MockClient) Delete(arg0 context.Context, arg1 runtime.Object, arg2 ...client.DeleteOptionFunc) error {
    63  	m.ctrl.T.Helper()
    64  	varargs := []interface{}{arg0, arg1}
    65  	for _, a := range arg2 {
    66  		varargs = append(varargs, a)
    67  	}
    68  	ret := m.ctrl.Call(m, "Delete", varargs...)
    69  	ret0, _ := ret[0].(error)
    70  	return ret0
    71  }
    72  
    73  // Delete indicates an expected call of Delete
    74  // nolint
    75  func (mr *MockClientMockRecorder) Delete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	varargs := append([]interface{}{arg0, arg1}, arg2...)
    78  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockClient)(nil).Delete), varargs...)
    79  }
    80  
    81  // Get mocks base method
    82  // nolint
    83  func (m *MockClient) Get(arg0 context.Context, arg1 types.NamespacedName, arg2 runtime.Object) error {
    84  	m.ctrl.T.Helper()
    85  	ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2)
    86  	ret0, _ := ret[0].(error)
    87  	return ret0
    88  }
    89  
    90  // Get indicates an expected call of Get
    91  // nolint
    92  func (mr *MockClientMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call {
    93  	mr.mock.ctrl.T.Helper()
    94  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClient)(nil).Get), arg0, arg1, arg2)
    95  }
    96  
    97  // List mocks base method
    98  // nolint
    99  func (m *MockClient) List(arg0 context.Context, arg1 *client.ListOptions, arg2 runtime.Object) error {
   100  	m.ctrl.T.Helper()
   101  	ret := m.ctrl.Call(m, "List", arg0, arg1, arg2)
   102  	ret0, _ := ret[0].(error)
   103  	return ret0
   104  }
   105  
   106  // List indicates an expected call of List
   107  // nolint
   108  func (mr *MockClientMockRecorder) List(arg0, arg1, arg2 interface{}) *gomock.Call {
   109  	mr.mock.ctrl.T.Helper()
   110  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockClient)(nil).List), arg0, arg1, arg2)
   111  }
   112  
   113  // Status mocks base method
   114  // nolint
   115  func (m *MockClient) Status() client.StatusWriter {
   116  	m.ctrl.T.Helper()
   117  	ret := m.ctrl.Call(m, "Status")
   118  	ret0, _ := ret[0].(client.StatusWriter)
   119  	return ret0
   120  }
   121  
   122  // Status indicates an expected call of Status
   123  // nolint
   124  func (mr *MockClientMockRecorder) Status() *gomock.Call {
   125  	mr.mock.ctrl.T.Helper()
   126  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockClient)(nil).Status))
   127  }
   128  
   129  // Update mocks base method
   130  // nolint
   131  func (m *MockClient) Update(arg0 context.Context, arg1 runtime.Object) error {
   132  	m.ctrl.T.Helper()
   133  	ret := m.ctrl.Call(m, "Update", arg0, arg1)
   134  	ret0, _ := ret[0].(error)
   135  	return ret0
   136  }
   137  
   138  // Update indicates an expected call of Update
   139  // nolint
   140  func (mr *MockClientMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call {
   141  	mr.mock.ctrl.T.Helper()
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockClient)(nil).Update), arg0, arg1)
   143  }