...

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

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

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

View as plain text