sigs.k8s.io/cluster-api-provider-azure@v1.14.3/azure/services/identities/mock_identities/client_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: ../client.go 19 // 20 // Generated by this command: 21 // 22 // mockgen -destination client_mock.go -package mock_identities -source ../client.go Client 23 // 24 25 // Package mock_identities is a generated GoMock package. 26 package mock_identities 27 28 import ( 29 context "context" 30 reflect "reflect" 31 32 armmsi "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi" 33 gomock "go.uber.org/mock/gomock" 34 ) 35 36 // MockClient is a mock of Client interface. 37 type MockClient struct { 38 ctrl *gomock.Controller 39 recorder *MockClientMockRecorder 40 } 41 42 // MockClientMockRecorder is the mock recorder for MockClient. 43 type MockClientMockRecorder struct { 44 mock *MockClient 45 } 46 47 // NewMockClient creates a new mock instance. 48 func NewMockClient(ctrl *gomock.Controller) *MockClient { 49 mock := &MockClient{ctrl: ctrl} 50 mock.recorder = &MockClientMockRecorder{mock} 51 return mock 52 } 53 54 // EXPECT returns an object that allows the caller to indicate expected use. 55 func (m *MockClient) EXPECT() *MockClientMockRecorder { 56 return m.recorder 57 } 58 59 // Get mocks base method. 60 func (m *MockClient) Get(ctx context.Context, resourceGroupName, name string) (armmsi.Identity, error) { 61 m.ctrl.T.Helper() 62 ret := m.ctrl.Call(m, "Get", ctx, resourceGroupName, name) 63 ret0, _ := ret[0].(armmsi.Identity) 64 ret1, _ := ret[1].(error) 65 return ret0, ret1 66 } 67 68 // Get indicates an expected call of Get. 69 func (mr *MockClientMockRecorder) Get(ctx, resourceGroupName, name any) *gomock.Call { 70 mr.mock.ctrl.T.Helper() 71 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClient)(nil).Get), ctx, resourceGroupName, name) 72 } 73 74 // GetClientID mocks base method. 75 func (m *MockClient) GetClientID(ctx context.Context, providerID string) (string, error) { 76 m.ctrl.T.Helper() 77 ret := m.ctrl.Call(m, "GetClientID", ctx, providerID) 78 ret0, _ := ret[0].(string) 79 ret1, _ := ret[1].(error) 80 return ret0, ret1 81 } 82 83 // GetClientID indicates an expected call of GetClientID. 84 func (mr *MockClientMockRecorder) GetClientID(ctx, providerID any) *gomock.Call { 85 mr.mock.ctrl.T.Helper() 86 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClientID", reflect.TypeOf((*MockClient)(nil).GetClientID), ctx, providerID) 87 }