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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: trireme-lib/monitor/internal/k8s/runtime_cache.go
     3  
     4  // Package k8smonitor is a generated GoMock package.
     5  package k8smonitor
     6  
     7  import (
     8  	gomock "github.com/golang/mock/gomock"
     9  	policy "go.aporeto.io/enforcerd/trireme-lib/policy"
    10  	reflect "reflect"
    11  )
    12  
    13  // MockruntimeCacheInterface is a mock of runtimeCacheInterface interface
    14  type MockruntimeCacheInterface struct {
    15  	ctrl     *gomock.Controller
    16  	recorder *MockruntimeCacheInterfaceMockRecorder
    17  }
    18  
    19  // MockruntimeCacheInterfaceMockRecorder is the mock recorder for MockruntimeCacheInterface
    20  type MockruntimeCacheInterfaceMockRecorder struct {
    21  	mock *MockruntimeCacheInterface
    22  }
    23  
    24  // NewMockruntimeCacheInterface creates a new mock instance
    25  func NewMockruntimeCacheInterface(ctrl *gomock.Controller) *MockruntimeCacheInterface {
    26  	mock := &MockruntimeCacheInterface{ctrl: ctrl}
    27  	mock.recorder = &MockruntimeCacheInterfaceMockRecorder{mock}
    28  	return mock
    29  }
    30  
    31  // EXPECT returns an object that allows the caller to indicate expected use
    32  func (m *MockruntimeCacheInterface) EXPECT() *MockruntimeCacheInterfaceMockRecorder {
    33  	return m.recorder
    34  }
    35  
    36  // Delete mocks base method
    37  func (m *MockruntimeCacheInterface) Delete(sandboxID string) {
    38  	m.ctrl.T.Helper()
    39  	m.ctrl.Call(m, "Delete", sandboxID)
    40  }
    41  
    42  // Delete indicates an expected call of Delete
    43  func (mr *MockruntimeCacheInterfaceMockRecorder) Delete(sandboxID interface{}) *gomock.Call {
    44  	mr.mock.ctrl.T.Helper()
    45  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockruntimeCacheInterface)(nil).Delete), sandboxID)
    46  }
    47  
    48  // Get mocks base method
    49  func (m *MockruntimeCacheInterface) Get(sandboxID string) policy.RuntimeReader {
    50  	m.ctrl.T.Helper()
    51  	ret := m.ctrl.Call(m, "Get", sandboxID)
    52  	ret0, _ := ret[0].(policy.RuntimeReader)
    53  	return ret0
    54  }
    55  
    56  // Get indicates an expected call of Get
    57  func (mr *MockruntimeCacheInterfaceMockRecorder) Get(sandboxID interface{}) *gomock.Call {
    58  	mr.mock.ctrl.T.Helper()
    59  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockruntimeCacheInterface)(nil).Get), sandboxID)
    60  }
    61  
    62  // Set mocks base method
    63  func (m *MockruntimeCacheInterface) Set(sandboxID string, runtime policy.RuntimeReader) error {
    64  	m.ctrl.T.Helper()
    65  	ret := m.ctrl.Call(m, "Set", sandboxID, runtime)
    66  	ret0, _ := ret[0].(error)
    67  	return ret0
    68  }
    69  
    70  // Set indicates an expected call of Set
    71  func (mr *MockruntimeCacheInterfaceMockRecorder) Set(sandboxID, runtime interface{}) *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockruntimeCacheInterface)(nil).Set), sandboxID, runtime)
    74  }