...

Source file src/github.com/redhat-developer/odo/pkg/podman/mock.go

Documentation: github.com/redhat-developer/odo/pkg/podman

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: pkg/podman/interface.go
     3  
     4  // Package podman is a generated GoMock package.
     5  package podman
     6  
     7  import (
     8  	context "context"
     9  	io "io"
    10  	reflect "reflect"
    11  
    12  	gomock "github.com/golang/mock/gomock"
    13  	api "github.com/redhat-developer/odo/pkg/api"
    14  	v1 "k8s.io/api/core/v1"
    15  	unstructured "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
    16  	watch "k8s.io/apimachinery/pkg/watch"
    17  )
    18  
    19  // MockClient is a mock of Client interface.
    20  type MockClient struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockClientMockRecorder
    23  }
    24  
    25  // MockClientMockRecorder is the mock recorder for MockClient.
    26  type MockClientMockRecorder struct {
    27  	mock *MockClient
    28  }
    29  
    30  // NewMockClient creates a new mock instance.
    31  func NewMockClient(ctrl *gomock.Controller) *MockClient {
    32  	mock := &MockClient{ctrl: ctrl}
    33  	mock.recorder = &MockClientMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockClient) EXPECT() *MockClientMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // CleanupPodResources mocks base method.
    43  func (m *MockClient) CleanupPodResources(pod *v1.Pod, cleanVolumes bool) error {
    44  	m.ctrl.T.Helper()
    45  	ret := m.ctrl.Call(m, "CleanupPodResources", pod, cleanVolumes)
    46  	ret0, _ := ret[0].(error)
    47  	return ret0
    48  }
    49  
    50  // CleanupPodResources indicates an expected call of CleanupPodResources.
    51  func (mr *MockClientMockRecorder) CleanupPodResources(pod, cleanVolumes interface{}) *gomock.Call {
    52  	mr.mock.ctrl.T.Helper()
    53  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanupPodResources", reflect.TypeOf((*MockClient)(nil).CleanupPodResources), pod, cleanVolumes)
    54  }
    55  
    56  // ExecCMDInContainer mocks base method.
    57  func (m *MockClient) ExecCMDInContainer(ctx context.Context, containerName, podName string, cmd []string, stdout, stderr io.Writer, stdin io.Reader, tty bool) error {
    58  	m.ctrl.T.Helper()
    59  	ret := m.ctrl.Call(m, "ExecCMDInContainer", ctx, containerName, podName, cmd, stdout, stderr, stdin, tty)
    60  	ret0, _ := ret[0].(error)
    61  	return ret0
    62  }
    63  
    64  // ExecCMDInContainer indicates an expected call of ExecCMDInContainer.
    65  func (mr *MockClientMockRecorder) ExecCMDInContainer(ctx, containerName, podName, cmd, stdout, stderr, stdin, tty interface{}) *gomock.Call {
    66  	mr.mock.ctrl.T.Helper()
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExecCMDInContainer", reflect.TypeOf((*MockClient)(nil).ExecCMDInContainer), ctx, containerName, podName, cmd, stdout, stderr, stdin, tty)
    68  }
    69  
    70  // GetAllPodsInNamespaceMatchingSelector mocks base method.
    71  func (m *MockClient) GetAllPodsInNamespaceMatchingSelector(selector, ns string) (*v1.PodList, error) {
    72  	m.ctrl.T.Helper()
    73  	ret := m.ctrl.Call(m, "GetAllPodsInNamespaceMatchingSelector", selector, ns)
    74  	ret0, _ := ret[0].(*v1.PodList)
    75  	ret1, _ := ret[1].(error)
    76  	return ret0, ret1
    77  }
    78  
    79  // GetAllPodsInNamespaceMatchingSelector indicates an expected call of GetAllPodsInNamespaceMatchingSelector.
    80  func (mr *MockClientMockRecorder) GetAllPodsInNamespaceMatchingSelector(selector, ns interface{}) *gomock.Call {
    81  	mr.mock.ctrl.T.Helper()
    82  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllPodsInNamespaceMatchingSelector", reflect.TypeOf((*MockClient)(nil).GetAllPodsInNamespaceMatchingSelector), selector, ns)
    83  }
    84  
    85  // GetAllResourcesFromSelector mocks base method.
    86  func (m *MockClient) GetAllResourcesFromSelector(selector, ns string) ([]unstructured.Unstructured, error) {
    87  	m.ctrl.T.Helper()
    88  	ret := m.ctrl.Call(m, "GetAllResourcesFromSelector", selector, ns)
    89  	ret0, _ := ret[0].([]unstructured.Unstructured)
    90  	ret1, _ := ret[1].(error)
    91  	return ret0, ret1
    92  }
    93  
    94  // GetAllResourcesFromSelector indicates an expected call of GetAllResourcesFromSelector.
    95  func (mr *MockClientMockRecorder) GetAllResourcesFromSelector(selector, ns interface{}) *gomock.Call {
    96  	mr.mock.ctrl.T.Helper()
    97  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllResourcesFromSelector", reflect.TypeOf((*MockClient)(nil).GetAllResourcesFromSelector), selector, ns)
    98  }
    99  
   100  // GetCapabilities mocks base method.
   101  func (m *MockClient) GetCapabilities() (Capabilities, error) {
   102  	m.ctrl.T.Helper()
   103  	ret := m.ctrl.Call(m, "GetCapabilities")
   104  	ret0, _ := ret[0].(Capabilities)
   105  	ret1, _ := ret[1].(error)
   106  	return ret0, ret1
   107  }
   108  
   109  // GetCapabilities indicates an expected call of GetCapabilities.
   110  func (mr *MockClientMockRecorder) GetCapabilities() *gomock.Call {
   111  	mr.mock.ctrl.T.Helper()
   112  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCapabilities", reflect.TypeOf((*MockClient)(nil).GetCapabilities))
   113  }
   114  
   115  // GetPodLogs mocks base method.
   116  func (m *MockClient) GetPodLogs(podName, containerName string, followLog bool) (io.ReadCloser, error) {
   117  	m.ctrl.T.Helper()
   118  	ret := m.ctrl.Call(m, "GetPodLogs", podName, containerName, followLog)
   119  	ret0, _ := ret[0].(io.ReadCloser)
   120  	ret1, _ := ret[1].(error)
   121  	return ret0, ret1
   122  }
   123  
   124  // GetPodLogs indicates an expected call of GetPodLogs.
   125  func (mr *MockClientMockRecorder) GetPodLogs(podName, containerName, followLog interface{}) *gomock.Call {
   126  	mr.mock.ctrl.T.Helper()
   127  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPodLogs", reflect.TypeOf((*MockClient)(nil).GetPodLogs), podName, containerName, followLog)
   128  }
   129  
   130  // GetPodUsingComponentName mocks base method.
   131  func (m *MockClient) GetPodUsingComponentName(componentName string) (*v1.Pod, error) {
   132  	m.ctrl.T.Helper()
   133  	ret := m.ctrl.Call(m, "GetPodUsingComponentName", componentName)
   134  	ret0, _ := ret[0].(*v1.Pod)
   135  	ret1, _ := ret[1].(error)
   136  	return ret0, ret1
   137  }
   138  
   139  // GetPodUsingComponentName indicates an expected call of GetPodUsingComponentName.
   140  func (mr *MockClientMockRecorder) GetPodUsingComponentName(componentName interface{}) *gomock.Call {
   141  	mr.mock.ctrl.T.Helper()
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPodUsingComponentName", reflect.TypeOf((*MockClient)(nil).GetPodUsingComponentName), componentName)
   143  }
   144  
   145  // GetPodsMatchingSelector mocks base method.
   146  func (m *MockClient) GetPodsMatchingSelector(selector string) (*v1.PodList, error) {
   147  	m.ctrl.T.Helper()
   148  	ret := m.ctrl.Call(m, "GetPodsMatchingSelector", selector)
   149  	ret0, _ := ret[0].(*v1.PodList)
   150  	ret1, _ := ret[1].(error)
   151  	return ret0, ret1
   152  }
   153  
   154  // GetPodsMatchingSelector indicates an expected call of GetPodsMatchingSelector.
   155  func (mr *MockClientMockRecorder) GetPodsMatchingSelector(selector interface{}) *gomock.Call {
   156  	mr.mock.ctrl.T.Helper()
   157  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPodsMatchingSelector", reflect.TypeOf((*MockClient)(nil).GetPodsMatchingSelector), selector)
   158  }
   159  
   160  // GetRunningPodFromSelector mocks base method.
   161  func (m *MockClient) GetRunningPodFromSelector(selector string) (*v1.Pod, error) {
   162  	m.ctrl.T.Helper()
   163  	ret := m.ctrl.Call(m, "GetRunningPodFromSelector", selector)
   164  	ret0, _ := ret[0].(*v1.Pod)
   165  	ret1, _ := ret[1].(error)
   166  	return ret0, ret1
   167  }
   168  
   169  // GetRunningPodFromSelector indicates an expected call of GetRunningPodFromSelector.
   170  func (mr *MockClientMockRecorder) GetRunningPodFromSelector(selector interface{}) *gomock.Call {
   171  	mr.mock.ctrl.T.Helper()
   172  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRunningPodFromSelector", reflect.TypeOf((*MockClient)(nil).GetRunningPodFromSelector), selector)
   173  }
   174  
   175  // KubeGenerate mocks base method.
   176  func (m *MockClient) KubeGenerate(name string) (*v1.Pod, error) {
   177  	m.ctrl.T.Helper()
   178  	ret := m.ctrl.Call(m, "KubeGenerate", name)
   179  	ret0, _ := ret[0].(*v1.Pod)
   180  	ret1, _ := ret[1].(error)
   181  	return ret0, ret1
   182  }
   183  
   184  // KubeGenerate indicates an expected call of KubeGenerate.
   185  func (mr *MockClientMockRecorder) KubeGenerate(name interface{}) *gomock.Call {
   186  	mr.mock.ctrl.T.Helper()
   187  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KubeGenerate", reflect.TypeOf((*MockClient)(nil).KubeGenerate), name)
   188  }
   189  
   190  // ListAllComponents mocks base method.
   191  func (m *MockClient) ListAllComponents() ([]api.ComponentAbstract, error) {
   192  	m.ctrl.T.Helper()
   193  	ret := m.ctrl.Call(m, "ListAllComponents")
   194  	ret0, _ := ret[0].([]api.ComponentAbstract)
   195  	ret1, _ := ret[1].(error)
   196  	return ret0, ret1
   197  }
   198  
   199  // ListAllComponents indicates an expected call of ListAllComponents.
   200  func (mr *MockClientMockRecorder) ListAllComponents() *gomock.Call {
   201  	mr.mock.ctrl.T.Helper()
   202  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAllComponents", reflect.TypeOf((*MockClient)(nil).ListAllComponents))
   203  }
   204  
   205  // PlayKube mocks base method.
   206  func (m *MockClient) PlayKube(pod *v1.Pod) error {
   207  	m.ctrl.T.Helper()
   208  	ret := m.ctrl.Call(m, "PlayKube", pod)
   209  	ret0, _ := ret[0].(error)
   210  	return ret0
   211  }
   212  
   213  // PlayKube indicates an expected call of PlayKube.
   214  func (mr *MockClientMockRecorder) PlayKube(pod interface{}) *gomock.Call {
   215  	mr.mock.ctrl.T.Helper()
   216  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PlayKube", reflect.TypeOf((*MockClient)(nil).PlayKube), pod)
   217  }
   218  
   219  // PodLs mocks base method.
   220  func (m *MockClient) PodLs() (map[string]bool, error) {
   221  	m.ctrl.T.Helper()
   222  	ret := m.ctrl.Call(m, "PodLs")
   223  	ret0, _ := ret[0].(map[string]bool)
   224  	ret1, _ := ret[1].(error)
   225  	return ret0, ret1
   226  }
   227  
   228  // PodLs indicates an expected call of PodLs.
   229  func (mr *MockClientMockRecorder) PodLs() *gomock.Call {
   230  	mr.mock.ctrl.T.Helper()
   231  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PodLs", reflect.TypeOf((*MockClient)(nil).PodLs))
   232  }
   233  
   234  // PodRm mocks base method.
   235  func (m *MockClient) PodRm(podname string) error {
   236  	m.ctrl.T.Helper()
   237  	ret := m.ctrl.Call(m, "PodRm", podname)
   238  	ret0, _ := ret[0].(error)
   239  	return ret0
   240  }
   241  
   242  // PodRm indicates an expected call of PodRm.
   243  func (mr *MockClientMockRecorder) PodRm(podname interface{}) *gomock.Call {
   244  	mr.mock.ctrl.T.Helper()
   245  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PodRm", reflect.TypeOf((*MockClient)(nil).PodRm), podname)
   246  }
   247  
   248  // PodStop mocks base method.
   249  func (m *MockClient) PodStop(podname string) error {
   250  	m.ctrl.T.Helper()
   251  	ret := m.ctrl.Call(m, "PodStop", podname)
   252  	ret0, _ := ret[0].(error)
   253  	return ret0
   254  }
   255  
   256  // PodStop indicates an expected call of PodStop.
   257  func (mr *MockClientMockRecorder) PodStop(podname interface{}) *gomock.Call {
   258  	mr.mock.ctrl.T.Helper()
   259  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PodStop", reflect.TypeOf((*MockClient)(nil).PodStop), podname)
   260  }
   261  
   262  // PodWatcher mocks base method.
   263  func (m *MockClient) PodWatcher(ctx context.Context, selector string) (watch.Interface, error) {
   264  	m.ctrl.T.Helper()
   265  	ret := m.ctrl.Call(m, "PodWatcher", ctx, selector)
   266  	ret0, _ := ret[0].(watch.Interface)
   267  	ret1, _ := ret[1].(error)
   268  	return ret0, ret1
   269  }
   270  
   271  // PodWatcher indicates an expected call of PodWatcher.
   272  func (mr *MockClientMockRecorder) PodWatcher(ctx, selector interface{}) *gomock.Call {
   273  	mr.mock.ctrl.T.Helper()
   274  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PodWatcher", reflect.TypeOf((*MockClient)(nil).PodWatcher), ctx, selector)
   275  }
   276  
   277  // Version mocks base method.
   278  func (m *MockClient) Version(ctx context.Context) (SystemVersionReport, error) {
   279  	m.ctrl.T.Helper()
   280  	ret := m.ctrl.Call(m, "Version", ctx)
   281  	ret0, _ := ret[0].(SystemVersionReport)
   282  	ret1, _ := ret[1].(error)
   283  	return ret0, ret1
   284  }
   285  
   286  // Version indicates an expected call of Version.
   287  func (mr *MockClientMockRecorder) Version(ctx interface{}) *gomock.Call {
   288  	mr.mock.ctrl.T.Helper()
   289  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockClient)(nil).Version), ctx)
   290  }
   291  
   292  // VolumeLs mocks base method.
   293  func (m *MockClient) VolumeLs() (map[string]bool, error) {
   294  	m.ctrl.T.Helper()
   295  	ret := m.ctrl.Call(m, "VolumeLs")
   296  	ret0, _ := ret[0].(map[string]bool)
   297  	ret1, _ := ret[1].(error)
   298  	return ret0, ret1
   299  }
   300  
   301  // VolumeLs indicates an expected call of VolumeLs.
   302  func (mr *MockClientMockRecorder) VolumeLs() *gomock.Call {
   303  	mr.mock.ctrl.T.Helper()
   304  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VolumeLs", reflect.TypeOf((*MockClient)(nil).VolumeLs))
   305  }
   306  
   307  // VolumeRm mocks base method.
   308  func (m *MockClient) VolumeRm(volumeName string) error {
   309  	m.ctrl.T.Helper()
   310  	ret := m.ctrl.Call(m, "VolumeRm", volumeName)
   311  	ret0, _ := ret[0].(error)
   312  	return ret0
   313  }
   314  
   315  // VolumeRm indicates an expected call of VolumeRm.
   316  func (mr *MockClientMockRecorder) VolumeRm(volumeName interface{}) *gomock.Call {
   317  	mr.mock.ctrl.T.Helper()
   318  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VolumeRm", reflect.TypeOf((*MockClient)(nil).VolumeRm), volumeName)
   319  }
   320  

View as plain text