...

Source file src/edge-infra.dev/pkg/edge/api/mocks/mock_gke_client.go

Documentation: edge-infra.dev/pkg/edge/api/mocks

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: edge-infra.dev/pkg/edge/api/services (interfaces: GkeClient)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	types "edge-infra.dev/pkg/edge/api/types"
    12  	gomock "github.com/golang/mock/gomock"
    13  	rest "k8s.io/client-go/rest"
    14  	client "sigs.k8s.io/controller-runtime/pkg/client"
    15  )
    16  
    17  // MockGkeClient is a mock of GkeClient interface.
    18  type MockGkeClient struct {
    19  	ctrl     *gomock.Controller
    20  	recorder *MockGkeClientMockRecorder
    21  }
    22  
    23  // MockGkeClientMockRecorder is the mock recorder for MockGkeClient.
    24  type MockGkeClientMockRecorder struct {
    25  	mock *MockGkeClient
    26  }
    27  
    28  // NewMockGkeClient creates a new mock instance.
    29  func NewMockGkeClient(ctrl *gomock.Controller) *MockGkeClient {
    30  	mock := &MockGkeClient{ctrl: ctrl}
    31  	mock.recorder = &MockGkeClientMockRecorder{mock}
    32  	return mock
    33  }
    34  
    35  // EXPECT returns an object that allows the caller to indicate expected use.
    36  func (m *MockGkeClient) EXPECT() *MockGkeClientMockRecorder {
    37  	return m.recorder
    38  }
    39  
    40  // GetConfigForCluster mocks base method.
    41  func (m *MockGkeClient) GetConfigForCluster(arg0 context.Context, arg1 *types.GkeCluster) (*rest.Config, error) {
    42  	m.ctrl.T.Helper()
    43  	ret := m.ctrl.Call(m, "GetConfigForCluster", arg0, arg1)
    44  	ret0, _ := ret[0].(*rest.Config)
    45  	ret1, _ := ret[1].(error)
    46  	return ret0, ret1
    47  }
    48  
    49  // GetConfigForCluster indicates an expected call of GetConfigForCluster.
    50  func (mr *MockGkeClientMockRecorder) GetConfigForCluster(arg0, arg1 interface{}) *gomock.Call {
    51  	mr.mock.ctrl.T.Helper()
    52  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigForCluster", reflect.TypeOf((*MockGkeClient)(nil).GetConfigForCluster), arg0, arg1)
    53  }
    54  
    55  // GetRuntimeClient mocks base method.
    56  func (m *MockGkeClient) GetRuntimeClient(arg0 context.Context, arg1 *types.GkeCluster) (client.WithWatch, error) {
    57  	m.ctrl.T.Helper()
    58  	ret := m.ctrl.Call(m, "GetRuntimeClient", arg0, arg1)
    59  	ret0, _ := ret[0].(client.WithWatch)
    60  	ret1, _ := ret[1].(error)
    61  	return ret0, ret1
    62  }
    63  
    64  // GetRuntimeClient indicates an expected call of GetRuntimeClient.
    65  func (mr *MockGkeClientMockRecorder) GetRuntimeClient(arg0, arg1 interface{}) *gomock.Call {
    66  	mr.mock.ctrl.T.Helper()
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRuntimeClient", reflect.TypeOf((*MockGkeClient)(nil).GetRuntimeClient), arg0, arg1)
    68  }
    69  

View as plain text