sigs.k8s.io/cluster-api-provider-azure@v1.14.3/azure/services/managedclusters/mock_managedclusters/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_managedclusters -source ../client.go CredentialGetter
    23  //
    24  // Package mock_managedclusters is a generated GoMock package.
    25  package mock_managedclusters
    26  
    27  import (
    28  	context "context"
    29  	reflect "reflect"
    30  
    31  	gomock "go.uber.org/mock/gomock"
    32  )
    33  
    34  // MockCredentialGetter is a mock of CredentialGetter interface.
    35  type MockCredentialGetter struct {
    36  	ctrl     *gomock.Controller
    37  	recorder *MockCredentialGetterMockRecorder
    38  }
    39  
    40  // MockCredentialGetterMockRecorder is the mock recorder for MockCredentialGetter.
    41  type MockCredentialGetterMockRecorder struct {
    42  	mock *MockCredentialGetter
    43  }
    44  
    45  // NewMockCredentialGetter creates a new mock instance.
    46  func NewMockCredentialGetter(ctrl *gomock.Controller) *MockCredentialGetter {
    47  	mock := &MockCredentialGetter{ctrl: ctrl}
    48  	mock.recorder = &MockCredentialGetterMockRecorder{mock}
    49  	return mock
    50  }
    51  
    52  // EXPECT returns an object that allows the caller to indicate expected use.
    53  func (m *MockCredentialGetter) EXPECT() *MockCredentialGetterMockRecorder {
    54  	return m.recorder
    55  }
    56  
    57  // GetCredentials mocks base method.
    58  func (m *MockCredentialGetter) GetCredentials(arg0 context.Context, arg1, arg2 string) ([]byte, error) {
    59  	m.ctrl.T.Helper()
    60  	ret := m.ctrl.Call(m, "GetCredentials", arg0, arg1, arg2)
    61  	ret0, _ := ret[0].([]byte)
    62  	ret1, _ := ret[1].(error)
    63  	return ret0, ret1
    64  }
    65  
    66  // GetCredentials indicates an expected call of GetCredentials.
    67  func (mr *MockCredentialGetterMockRecorder) GetCredentials(arg0, arg1, arg2 any) *gomock.Call {
    68  	mr.mock.ctrl.T.Helper()
    69  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCredentials", reflect.TypeOf((*MockCredentialGetter)(nil).GetCredentials), arg0, arg1, arg2)
    70  }
    71  
    72  // GetUserCredentials mocks base method.
    73  func (m *MockCredentialGetter) GetUserCredentials(arg0 context.Context, arg1, arg2 string) ([]byte, error) {
    74  	m.ctrl.T.Helper()
    75  	ret := m.ctrl.Call(m, "GetUserCredentials", arg0, arg1, arg2)
    76  	ret0, _ := ret[0].([]byte)
    77  	ret1, _ := ret[1].(error)
    78  	return ret0, ret1
    79  }
    80  
    81  // GetUserCredentials indicates an expected call of GetUserCredentials.
    82  func (mr *MockCredentialGetterMockRecorder) GetUserCredentials(arg0, arg1, arg2 any) *gomock.Call {
    83  	mr.mock.ctrl.T.Helper()
    84  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserCredentials", reflect.TypeOf((*MockCredentialGetter)(nil).GetUserCredentials), arg0, arg1, arg2)
    85  }