sigs.k8s.io/cluster-api-provider-aws@v1.5.5/pkg/cloud/services/mock_services/secretsmanager_machine_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: SecretInterface) 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 scope "sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/scope" 28 ) 29 30 // MockSecretInterface is a mock of SecretInterface interface. 31 type MockSecretInterface struct { 32 ctrl *gomock.Controller 33 recorder *MockSecretInterfaceMockRecorder 34 } 35 36 // MockSecretInterfaceMockRecorder is the mock recorder for MockSecretInterface. 37 type MockSecretInterfaceMockRecorder struct { 38 mock *MockSecretInterface 39 } 40 41 // NewMockSecretInterface creates a new mock instance. 42 func NewMockSecretInterface(ctrl *gomock.Controller) *MockSecretInterface { 43 mock := &MockSecretInterface{ctrl: ctrl} 44 mock.recorder = &MockSecretInterfaceMockRecorder{mock} 45 return mock 46 } 47 48 // EXPECT returns an object that allows the caller to indicate expected use. 49 func (m *MockSecretInterface) EXPECT() *MockSecretInterfaceMockRecorder { 50 return m.recorder 51 } 52 53 // Create mocks base method. 54 func (m *MockSecretInterface) Create(arg0 *scope.MachineScope, arg1 []byte) (string, int32, error) { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "Create", arg0, arg1) 57 ret0, _ := ret[0].(string) 58 ret1, _ := ret[1].(int32) 59 ret2, _ := ret[2].(error) 60 return ret0, ret1, ret2 61 } 62 63 // Create indicates an expected call of Create. 64 func (mr *MockSecretInterfaceMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockSecretInterface)(nil).Create), arg0, arg1) 67 } 68 69 // Delete mocks base method. 70 func (m *MockSecretInterface) Delete(arg0 *scope.MachineScope) error { 71 m.ctrl.T.Helper() 72 ret := m.ctrl.Call(m, "Delete", arg0) 73 ret0, _ := ret[0].(error) 74 return ret0 75 } 76 77 // Delete indicates an expected call of Delete. 78 func (mr *MockSecretInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call { 79 mr.mock.ctrl.T.Helper() 80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockSecretInterface)(nil).Delete), arg0) 81 } 82 83 // UserData mocks base method. 84 func (m *MockSecretInterface) UserData(arg0 string, arg1 int32, arg2 string, arg3 []scope.ServiceEndpoint) ([]byte, error) { 85 m.ctrl.T.Helper() 86 ret := m.ctrl.Call(m, "UserData", arg0, arg1, arg2, arg3) 87 ret0, _ := ret[0].([]byte) 88 ret1, _ := ret[1].(error) 89 return ret0, ret1 90 } 91 92 // UserData indicates an expected call of UserData. 93 func (mr *MockSecretInterfaceMockRecorder) UserData(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 94 mr.mock.ctrl.T.Helper() 95 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserData", reflect.TypeOf((*MockSecretInterface)(nil).UserData), arg0, arg1, arg2, arg3) 96 }