github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/caas/kubernetes/provider/mocks/appv1_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: k8s.io/client-go/kubernetes/typed/apps/v1 (interfaces: AppsV1Interface,DeploymentInterface,StatefulSetInterface)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	v1 "k8s.io/api/apps/v1"
    12  	v10 "k8s.io/apimachinery/pkg/apis/meta/v1"
    13  	types "k8s.io/apimachinery/pkg/types"
    14  	watch "k8s.io/apimachinery/pkg/watch"
    15  	v11 "k8s.io/client-go/kubernetes/typed/apps/v1"
    16  	rest "k8s.io/client-go/rest"
    17  )
    18  
    19  // MockAppsV1Interface is a mock of AppsV1Interface interface
    20  type MockAppsV1Interface struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockAppsV1InterfaceMockRecorder
    23  }
    24  
    25  // MockAppsV1InterfaceMockRecorder is the mock recorder for MockAppsV1Interface
    26  type MockAppsV1InterfaceMockRecorder struct {
    27  	mock *MockAppsV1Interface
    28  }
    29  
    30  // NewMockAppsV1Interface creates a new mock instance
    31  func NewMockAppsV1Interface(ctrl *gomock.Controller) *MockAppsV1Interface {
    32  	mock := &MockAppsV1Interface{ctrl: ctrl}
    33  	mock.recorder = &MockAppsV1InterfaceMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use
    38  func (m *MockAppsV1Interface) EXPECT() *MockAppsV1InterfaceMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // ControllerRevisions mocks base method
    43  func (m *MockAppsV1Interface) ControllerRevisions(arg0 string) v11.ControllerRevisionInterface {
    44  	ret := m.ctrl.Call(m, "ControllerRevisions", arg0)
    45  	ret0, _ := ret[0].(v11.ControllerRevisionInterface)
    46  	return ret0
    47  }
    48  
    49  // ControllerRevisions indicates an expected call of ControllerRevisions
    50  func (mr *MockAppsV1InterfaceMockRecorder) ControllerRevisions(arg0 interface{}) *gomock.Call {
    51  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerRevisions", reflect.TypeOf((*MockAppsV1Interface)(nil).ControllerRevisions), arg0)
    52  }
    53  
    54  // DaemonSets mocks base method
    55  func (m *MockAppsV1Interface) DaemonSets(arg0 string) v11.DaemonSetInterface {
    56  	ret := m.ctrl.Call(m, "DaemonSets", arg0)
    57  	ret0, _ := ret[0].(v11.DaemonSetInterface)
    58  	return ret0
    59  }
    60  
    61  // DaemonSets indicates an expected call of DaemonSets
    62  func (mr *MockAppsV1InterfaceMockRecorder) DaemonSets(arg0 interface{}) *gomock.Call {
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DaemonSets", reflect.TypeOf((*MockAppsV1Interface)(nil).DaemonSets), arg0)
    64  }
    65  
    66  // Deployments mocks base method
    67  func (m *MockAppsV1Interface) Deployments(arg0 string) v11.DeploymentInterface {
    68  	ret := m.ctrl.Call(m, "Deployments", arg0)
    69  	ret0, _ := ret[0].(v11.DeploymentInterface)
    70  	return ret0
    71  }
    72  
    73  // Deployments indicates an expected call of Deployments
    74  func (mr *MockAppsV1InterfaceMockRecorder) Deployments(arg0 interface{}) *gomock.Call {
    75  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deployments", reflect.TypeOf((*MockAppsV1Interface)(nil).Deployments), arg0)
    76  }
    77  
    78  // RESTClient mocks base method
    79  func (m *MockAppsV1Interface) RESTClient() rest.Interface {
    80  	ret := m.ctrl.Call(m, "RESTClient")
    81  	ret0, _ := ret[0].(rest.Interface)
    82  	return ret0
    83  }
    84  
    85  // RESTClient indicates an expected call of RESTClient
    86  func (mr *MockAppsV1InterfaceMockRecorder) RESTClient() *gomock.Call {
    87  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RESTClient", reflect.TypeOf((*MockAppsV1Interface)(nil).RESTClient))
    88  }
    89  
    90  // ReplicaSets mocks base method
    91  func (m *MockAppsV1Interface) ReplicaSets(arg0 string) v11.ReplicaSetInterface {
    92  	ret := m.ctrl.Call(m, "ReplicaSets", arg0)
    93  	ret0, _ := ret[0].(v11.ReplicaSetInterface)
    94  	return ret0
    95  }
    96  
    97  // ReplicaSets indicates an expected call of ReplicaSets
    98  func (mr *MockAppsV1InterfaceMockRecorder) ReplicaSets(arg0 interface{}) *gomock.Call {
    99  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplicaSets", reflect.TypeOf((*MockAppsV1Interface)(nil).ReplicaSets), arg0)
   100  }
   101  
   102  // StatefulSets mocks base method
   103  func (m *MockAppsV1Interface) StatefulSets(arg0 string) v11.StatefulSetInterface {
   104  	ret := m.ctrl.Call(m, "StatefulSets", arg0)
   105  	ret0, _ := ret[0].(v11.StatefulSetInterface)
   106  	return ret0
   107  }
   108  
   109  // StatefulSets indicates an expected call of StatefulSets
   110  func (mr *MockAppsV1InterfaceMockRecorder) StatefulSets(arg0 interface{}) *gomock.Call {
   111  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StatefulSets", reflect.TypeOf((*MockAppsV1Interface)(nil).StatefulSets), arg0)
   112  }
   113  
   114  // MockDeploymentInterface is a mock of DeploymentInterface interface
   115  type MockDeploymentInterface struct {
   116  	ctrl     *gomock.Controller
   117  	recorder *MockDeploymentInterfaceMockRecorder
   118  }
   119  
   120  // MockDeploymentInterfaceMockRecorder is the mock recorder for MockDeploymentInterface
   121  type MockDeploymentInterfaceMockRecorder struct {
   122  	mock *MockDeploymentInterface
   123  }
   124  
   125  // NewMockDeploymentInterface creates a new mock instance
   126  func NewMockDeploymentInterface(ctrl *gomock.Controller) *MockDeploymentInterface {
   127  	mock := &MockDeploymentInterface{ctrl: ctrl}
   128  	mock.recorder = &MockDeploymentInterfaceMockRecorder{mock}
   129  	return mock
   130  }
   131  
   132  // EXPECT returns an object that allows the caller to indicate expected use
   133  func (m *MockDeploymentInterface) EXPECT() *MockDeploymentInterfaceMockRecorder {
   134  	return m.recorder
   135  }
   136  
   137  // Create mocks base method
   138  func (m *MockDeploymentInterface) Create(arg0 *v1.Deployment) (*v1.Deployment, error) {
   139  	ret := m.ctrl.Call(m, "Create", arg0)
   140  	ret0, _ := ret[0].(*v1.Deployment)
   141  	ret1, _ := ret[1].(error)
   142  	return ret0, ret1
   143  }
   144  
   145  // Create indicates an expected call of Create
   146  func (mr *MockDeploymentInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call {
   147  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockDeploymentInterface)(nil).Create), arg0)
   148  }
   149  
   150  // Delete mocks base method
   151  func (m *MockDeploymentInterface) Delete(arg0 string, arg1 *v10.DeleteOptions) error {
   152  	ret := m.ctrl.Call(m, "Delete", arg0, arg1)
   153  	ret0, _ := ret[0].(error)
   154  	return ret0
   155  }
   156  
   157  // Delete indicates an expected call of Delete
   158  func (mr *MockDeploymentInterfaceMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
   159  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockDeploymentInterface)(nil).Delete), arg0, arg1)
   160  }
   161  
   162  // DeleteCollection mocks base method
   163  func (m *MockDeploymentInterface) DeleteCollection(arg0 *v10.DeleteOptions, arg1 v10.ListOptions) error {
   164  	ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1)
   165  	ret0, _ := ret[0].(error)
   166  	return ret0
   167  }
   168  
   169  // DeleteCollection indicates an expected call of DeleteCollection
   170  func (mr *MockDeploymentInterfaceMockRecorder) DeleteCollection(arg0, arg1 interface{}) *gomock.Call {
   171  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockDeploymentInterface)(nil).DeleteCollection), arg0, arg1)
   172  }
   173  
   174  // Get mocks base method
   175  func (m *MockDeploymentInterface) Get(arg0 string, arg1 v10.GetOptions) (*v1.Deployment, error) {
   176  	ret := m.ctrl.Call(m, "Get", arg0, arg1)
   177  	ret0, _ := ret[0].(*v1.Deployment)
   178  	ret1, _ := ret[1].(error)
   179  	return ret0, ret1
   180  }
   181  
   182  // Get indicates an expected call of Get
   183  func (mr *MockDeploymentInterfaceMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call {
   184  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockDeploymentInterface)(nil).Get), arg0, arg1)
   185  }
   186  
   187  // List mocks base method
   188  func (m *MockDeploymentInterface) List(arg0 v10.ListOptions) (*v1.DeploymentList, error) {
   189  	ret := m.ctrl.Call(m, "List", arg0)
   190  	ret0, _ := ret[0].(*v1.DeploymentList)
   191  	ret1, _ := ret[1].(error)
   192  	return ret0, ret1
   193  }
   194  
   195  // List indicates an expected call of List
   196  func (mr *MockDeploymentInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call {
   197  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockDeploymentInterface)(nil).List), arg0)
   198  }
   199  
   200  // Patch mocks base method
   201  func (m *MockDeploymentInterface) Patch(arg0 string, arg1 types.PatchType, arg2 []byte, arg3 ...string) (*v1.Deployment, error) {
   202  	varargs := []interface{}{arg0, arg1, arg2}
   203  	for _, a := range arg3 {
   204  		varargs = append(varargs, a)
   205  	}
   206  	ret := m.ctrl.Call(m, "Patch", varargs...)
   207  	ret0, _ := ret[0].(*v1.Deployment)
   208  	ret1, _ := ret[1].(error)
   209  	return ret0, ret1
   210  }
   211  
   212  // Patch indicates an expected call of Patch
   213  func (mr *MockDeploymentInterfaceMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
   214  	varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
   215  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockDeploymentInterface)(nil).Patch), varargs...)
   216  }
   217  
   218  // Update mocks base method
   219  func (m *MockDeploymentInterface) Update(arg0 *v1.Deployment) (*v1.Deployment, error) {
   220  	ret := m.ctrl.Call(m, "Update", arg0)
   221  	ret0, _ := ret[0].(*v1.Deployment)
   222  	ret1, _ := ret[1].(error)
   223  	return ret0, ret1
   224  }
   225  
   226  // Update indicates an expected call of Update
   227  func (mr *MockDeploymentInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call {
   228  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockDeploymentInterface)(nil).Update), arg0)
   229  }
   230  
   231  // UpdateStatus mocks base method
   232  func (m *MockDeploymentInterface) UpdateStatus(arg0 *v1.Deployment) (*v1.Deployment, error) {
   233  	ret := m.ctrl.Call(m, "UpdateStatus", arg0)
   234  	ret0, _ := ret[0].(*v1.Deployment)
   235  	ret1, _ := ret[1].(error)
   236  	return ret0, ret1
   237  }
   238  
   239  // UpdateStatus indicates an expected call of UpdateStatus
   240  func (mr *MockDeploymentInterfaceMockRecorder) UpdateStatus(arg0 interface{}) *gomock.Call {
   241  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockDeploymentInterface)(nil).UpdateStatus), arg0)
   242  }
   243  
   244  // Watch mocks base method
   245  func (m *MockDeploymentInterface) Watch(arg0 v10.ListOptions) (watch.Interface, error) {
   246  	ret := m.ctrl.Call(m, "Watch", arg0)
   247  	ret0, _ := ret[0].(watch.Interface)
   248  	ret1, _ := ret[1].(error)
   249  	return ret0, ret1
   250  }
   251  
   252  // Watch indicates an expected call of Watch
   253  func (mr *MockDeploymentInterfaceMockRecorder) Watch(arg0 interface{}) *gomock.Call {
   254  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockDeploymentInterface)(nil).Watch), arg0)
   255  }
   256  
   257  // MockStatefulSetInterface is a mock of StatefulSetInterface interface
   258  type MockStatefulSetInterface struct {
   259  	ctrl     *gomock.Controller
   260  	recorder *MockStatefulSetInterfaceMockRecorder
   261  }
   262  
   263  // MockStatefulSetInterfaceMockRecorder is the mock recorder for MockStatefulSetInterface
   264  type MockStatefulSetInterfaceMockRecorder struct {
   265  	mock *MockStatefulSetInterface
   266  }
   267  
   268  // NewMockStatefulSetInterface creates a new mock instance
   269  func NewMockStatefulSetInterface(ctrl *gomock.Controller) *MockStatefulSetInterface {
   270  	mock := &MockStatefulSetInterface{ctrl: ctrl}
   271  	mock.recorder = &MockStatefulSetInterfaceMockRecorder{mock}
   272  	return mock
   273  }
   274  
   275  // EXPECT returns an object that allows the caller to indicate expected use
   276  func (m *MockStatefulSetInterface) EXPECT() *MockStatefulSetInterfaceMockRecorder {
   277  	return m.recorder
   278  }
   279  
   280  // Create mocks base method
   281  func (m *MockStatefulSetInterface) Create(arg0 *v1.StatefulSet) (*v1.StatefulSet, error) {
   282  	ret := m.ctrl.Call(m, "Create", arg0)
   283  	ret0, _ := ret[0].(*v1.StatefulSet)
   284  	ret1, _ := ret[1].(error)
   285  	return ret0, ret1
   286  }
   287  
   288  // Create indicates an expected call of Create
   289  func (mr *MockStatefulSetInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call {
   290  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockStatefulSetInterface)(nil).Create), arg0)
   291  }
   292  
   293  // Delete mocks base method
   294  func (m *MockStatefulSetInterface) Delete(arg0 string, arg1 *v10.DeleteOptions) error {
   295  	ret := m.ctrl.Call(m, "Delete", arg0, arg1)
   296  	ret0, _ := ret[0].(error)
   297  	return ret0
   298  }
   299  
   300  // Delete indicates an expected call of Delete
   301  func (mr *MockStatefulSetInterfaceMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
   302  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockStatefulSetInterface)(nil).Delete), arg0, arg1)
   303  }
   304  
   305  // DeleteCollection mocks base method
   306  func (m *MockStatefulSetInterface) DeleteCollection(arg0 *v10.DeleteOptions, arg1 v10.ListOptions) error {
   307  	ret := m.ctrl.Call(m, "DeleteCollection", arg0, arg1)
   308  	ret0, _ := ret[0].(error)
   309  	return ret0
   310  }
   311  
   312  // DeleteCollection indicates an expected call of DeleteCollection
   313  func (mr *MockStatefulSetInterfaceMockRecorder) DeleteCollection(arg0, arg1 interface{}) *gomock.Call {
   314  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCollection", reflect.TypeOf((*MockStatefulSetInterface)(nil).DeleteCollection), arg0, arg1)
   315  }
   316  
   317  // Get mocks base method
   318  func (m *MockStatefulSetInterface) Get(arg0 string, arg1 v10.GetOptions) (*v1.StatefulSet, error) {
   319  	ret := m.ctrl.Call(m, "Get", arg0, arg1)
   320  	ret0, _ := ret[0].(*v1.StatefulSet)
   321  	ret1, _ := ret[1].(error)
   322  	return ret0, ret1
   323  }
   324  
   325  // Get indicates an expected call of Get
   326  func (mr *MockStatefulSetInterfaceMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call {
   327  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockStatefulSetInterface)(nil).Get), arg0, arg1)
   328  }
   329  
   330  // List mocks base method
   331  func (m *MockStatefulSetInterface) List(arg0 v10.ListOptions) (*v1.StatefulSetList, error) {
   332  	ret := m.ctrl.Call(m, "List", arg0)
   333  	ret0, _ := ret[0].(*v1.StatefulSetList)
   334  	ret1, _ := ret[1].(error)
   335  	return ret0, ret1
   336  }
   337  
   338  // List indicates an expected call of List
   339  func (mr *MockStatefulSetInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call {
   340  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockStatefulSetInterface)(nil).List), arg0)
   341  }
   342  
   343  // Patch mocks base method
   344  func (m *MockStatefulSetInterface) Patch(arg0 string, arg1 types.PatchType, arg2 []byte, arg3 ...string) (*v1.StatefulSet, error) {
   345  	varargs := []interface{}{arg0, arg1, arg2}
   346  	for _, a := range arg3 {
   347  		varargs = append(varargs, a)
   348  	}
   349  	ret := m.ctrl.Call(m, "Patch", varargs...)
   350  	ret0, _ := ret[0].(*v1.StatefulSet)
   351  	ret1, _ := ret[1].(error)
   352  	return ret0, ret1
   353  }
   354  
   355  // Patch indicates an expected call of Patch
   356  func (mr *MockStatefulSetInterfaceMockRecorder) Patch(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call {
   357  	varargs := append([]interface{}{arg0, arg1, arg2}, arg3...)
   358  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockStatefulSetInterface)(nil).Patch), varargs...)
   359  }
   360  
   361  // Update mocks base method
   362  func (m *MockStatefulSetInterface) Update(arg0 *v1.StatefulSet) (*v1.StatefulSet, error) {
   363  	ret := m.ctrl.Call(m, "Update", arg0)
   364  	ret0, _ := ret[0].(*v1.StatefulSet)
   365  	ret1, _ := ret[1].(error)
   366  	return ret0, ret1
   367  }
   368  
   369  // Update indicates an expected call of Update
   370  func (mr *MockStatefulSetInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call {
   371  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockStatefulSetInterface)(nil).Update), arg0)
   372  }
   373  
   374  // UpdateStatus mocks base method
   375  func (m *MockStatefulSetInterface) UpdateStatus(arg0 *v1.StatefulSet) (*v1.StatefulSet, error) {
   376  	ret := m.ctrl.Call(m, "UpdateStatus", arg0)
   377  	ret0, _ := ret[0].(*v1.StatefulSet)
   378  	ret1, _ := ret[1].(error)
   379  	return ret0, ret1
   380  }
   381  
   382  // UpdateStatus indicates an expected call of UpdateStatus
   383  func (mr *MockStatefulSetInterfaceMockRecorder) UpdateStatus(arg0 interface{}) *gomock.Call {
   384  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockStatefulSetInterface)(nil).UpdateStatus), arg0)
   385  }
   386  
   387  // Watch mocks base method
   388  func (m *MockStatefulSetInterface) Watch(arg0 v10.ListOptions) (watch.Interface, error) {
   389  	ret := m.ctrl.Call(m, "Watch", arg0)
   390  	ret0, _ := ret[0].(watch.Interface)
   391  	ret1, _ := ret[1].(error)
   392  	return ret0, ret1
   393  }
   394  
   395  // Watch indicates an expected call of Watch
   396  func (mr *MockStatefulSetInterfaceMockRecorder) Watch(arg0 interface{}) *gomock.Call {
   397  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockStatefulSetInterface)(nil).Watch), arg0)
   398  }