sigs.k8s.io/cluster-api-provider-aws@v1.5.5/pkg/cloud/services/mock_services/autoscaling_interface_mock.go (about) 1 /* 2 Copyright The Kubernetes Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 // Code generated by MockGen. DO NOT EDIT. 18 // Source: sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/services (interfaces: ASGInterface) 19 20 // Package mock_services is a generated GoMock package. 21 package mock_services 22 23 import ( 24 reflect "reflect" 25 26 gomock "github.com/golang/mock/gomock" 27 v1beta1 "sigs.k8s.io/cluster-api-provider-aws/exp/api/v1beta1" 28 scope "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/scope" 29 ) 30 31 // MockASGInterface is a mock of ASGInterface interface. 32 type MockASGInterface struct { 33 ctrl *gomock.Controller 34 recorder *MockASGInterfaceMockRecorder 35 } 36 37 // MockASGInterfaceMockRecorder is the mock recorder for MockASGInterface. 38 type MockASGInterfaceMockRecorder struct { 39 mock *MockASGInterface 40 } 41 42 // NewMockASGInterface creates a new mock instance. 43 func NewMockASGInterface(ctrl *gomock.Controller) *MockASGInterface { 44 mock := &MockASGInterface{ctrl: ctrl} 45 mock.recorder = &MockASGInterfaceMockRecorder{mock} 46 return mock 47 } 48 49 // EXPECT returns an object that allows the caller to indicate expected use. 50 func (m *MockASGInterface) EXPECT() *MockASGInterfaceMockRecorder { 51 return m.recorder 52 } 53 54 // ASGIfExists mocks base method. 55 func (m *MockASGInterface) ASGIfExists(arg0 *string) (*v1beta1.AutoScalingGroup, error) { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "ASGIfExists", arg0) 58 ret0, _ := ret[0].(*v1beta1.AutoScalingGroup) 59 ret1, _ := ret[1].(error) 60 return ret0, ret1 61 } 62 63 // ASGIfExists indicates an expected call of ASGIfExists. 64 func (mr *MockASGInterfaceMockRecorder) ASGIfExists(arg0 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ASGIfExists", reflect.TypeOf((*MockASGInterface)(nil).ASGIfExists), arg0) 67 } 68 69 // CanStartASGInstanceRefresh mocks base method. 70 func (m *MockASGInterface) CanStartASGInstanceRefresh(arg0 *scope.MachinePoolScope) (bool, error) { 71 m.ctrl.T.Helper() 72 ret := m.ctrl.Call(m, "CanStartASGInstanceRefresh", arg0) 73 ret0, _ := ret[0].(bool) 74 ret1, _ := ret[1].(error) 75 return ret0, ret1 76 } 77 78 // CanStartASGInstanceRefresh indicates an expected call of CanStartASGInstanceRefresh. 79 func (mr *MockASGInterfaceMockRecorder) CanStartASGInstanceRefresh(arg0 interface{}) *gomock.Call { 80 mr.mock.ctrl.T.Helper() 81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CanStartASGInstanceRefresh", reflect.TypeOf((*MockASGInterface)(nil).CanStartASGInstanceRefresh), arg0) 82 } 83 84 // CreateASG mocks base method. 85 func (m *MockASGInterface) CreateASG(arg0 *scope.MachinePoolScope) (*v1beta1.AutoScalingGroup, error) { 86 m.ctrl.T.Helper() 87 ret := m.ctrl.Call(m, "CreateASG", arg0) 88 ret0, _ := ret[0].(*v1beta1.AutoScalingGroup) 89 ret1, _ := ret[1].(error) 90 return ret0, ret1 91 } 92 93 // CreateASG indicates an expected call of CreateASG. 94 func (mr *MockASGInterfaceMockRecorder) CreateASG(arg0 interface{}) *gomock.Call { 95 mr.mock.ctrl.T.Helper() 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateASG", reflect.TypeOf((*MockASGInterface)(nil).CreateASG), arg0) 97 } 98 99 // DeleteASGAndWait mocks base method. 100 func (m *MockASGInterface) DeleteASGAndWait(arg0 string) error { 101 m.ctrl.T.Helper() 102 ret := m.ctrl.Call(m, "DeleteASGAndWait", arg0) 103 ret0, _ := ret[0].(error) 104 return ret0 105 } 106 107 // DeleteASGAndWait indicates an expected call of DeleteASGAndWait. 108 func (mr *MockASGInterfaceMockRecorder) DeleteASGAndWait(arg0 interface{}) *gomock.Call { 109 mr.mock.ctrl.T.Helper() 110 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteASGAndWait", reflect.TypeOf((*MockASGInterface)(nil).DeleteASGAndWait), arg0) 111 } 112 113 // GetASGByName mocks base method. 114 func (m *MockASGInterface) GetASGByName(arg0 *scope.MachinePoolScope) (*v1beta1.AutoScalingGroup, error) { 115 m.ctrl.T.Helper() 116 ret := m.ctrl.Call(m, "GetASGByName", arg0) 117 ret0, _ := ret[0].(*v1beta1.AutoScalingGroup) 118 ret1, _ := ret[1].(error) 119 return ret0, ret1 120 } 121 122 // GetASGByName indicates an expected call of GetASGByName. 123 func (mr *MockASGInterfaceMockRecorder) GetASGByName(arg0 interface{}) *gomock.Call { 124 mr.mock.ctrl.T.Helper() 125 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetASGByName", reflect.TypeOf((*MockASGInterface)(nil).GetASGByName), arg0) 126 } 127 128 // StartASGInstanceRefresh mocks base method. 129 func (m *MockASGInterface) StartASGInstanceRefresh(arg0 *scope.MachinePoolScope) error { 130 m.ctrl.T.Helper() 131 ret := m.ctrl.Call(m, "StartASGInstanceRefresh", arg0) 132 ret0, _ := ret[0].(error) 133 return ret0 134 } 135 136 // StartASGInstanceRefresh indicates an expected call of StartASGInstanceRefresh. 137 func (mr *MockASGInterfaceMockRecorder) StartASGInstanceRefresh(arg0 interface{}) *gomock.Call { 138 mr.mock.ctrl.T.Helper() 139 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartASGInstanceRefresh", reflect.TypeOf((*MockASGInterface)(nil).StartASGInstanceRefresh), arg0) 140 } 141 142 // UpdateASG mocks base method. 143 func (m *MockASGInterface) UpdateASG(arg0 *scope.MachinePoolScope) error { 144 m.ctrl.T.Helper() 145 ret := m.ctrl.Call(m, "UpdateASG", arg0) 146 ret0, _ := ret[0].(error) 147 return ret0 148 } 149 150 // UpdateASG indicates an expected call of UpdateASG. 151 func (mr *MockASGInterfaceMockRecorder) UpdateASG(arg0 interface{}) *gomock.Call { 152 mr.mock.ctrl.T.Helper() 153 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateASG", reflect.TypeOf((*MockASGInterface)(nil).UpdateASG), arg0) 154 } 155 156 // UpdateResourceTags mocks base method. 157 func (m *MockASGInterface) UpdateResourceTags(arg0 *string, arg1, arg2 map[string]string) error { 158 m.ctrl.T.Helper() 159 ret := m.ctrl.Call(m, "UpdateResourceTags", arg0, arg1, arg2) 160 ret0, _ := ret[0].(error) 161 return ret0 162 } 163 164 // UpdateResourceTags indicates an expected call of UpdateResourceTags. 165 func (mr *MockASGInterfaceMockRecorder) UpdateResourceTags(arg0, arg1, arg2 interface{}) *gomock.Call { 166 mr.mock.ctrl.T.Helper() 167 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResourceTags", reflect.TypeOf((*MockASGInterface)(nil).UpdateResourceTags), arg0, arg1, arg2) 168 }