...

Source file src/edge-infra.dev/pkg/edge/api/mocks/mock_cluster_config_service.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: ClusterConfigService)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	model "edge-infra.dev/pkg/edge/api/graph/model"
    12  	gomock "github.com/golang/mock/gomock"
    13  )
    14  
    15  // MockClusterConfigService is a mock of ClusterConfigService interface.
    16  type MockClusterConfigService struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockClusterConfigServiceMockRecorder
    19  }
    20  
    21  // MockClusterConfigServiceMockRecorder is the mock recorder for MockClusterConfigService.
    22  type MockClusterConfigServiceMockRecorder struct {
    23  	mock *MockClusterConfigService
    24  }
    25  
    26  // NewMockClusterConfigService creates a new mock instance.
    27  func NewMockClusterConfigService(ctrl *gomock.Controller) *MockClusterConfigService {
    28  	mock := &MockClusterConfigService{ctrl: ctrl}
    29  	mock.recorder = &MockClusterConfigServiceMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockClusterConfigService) EXPECT() *MockClusterConfigServiceMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // GetClusterConfig mocks base method.
    39  func (m *MockClusterConfigService) GetClusterConfig(arg0 context.Context, arg1 string) (*model.ClusterConfig, error) {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "GetClusterConfig", arg0, arg1)
    42  	ret0, _ := ret[0].(*model.ClusterConfig)
    43  	ret1, _ := ret[1].(error)
    44  	return ret0, ret1
    45  }
    46  
    47  // GetClusterConfig indicates an expected call of GetClusterConfig.
    48  func (mr *MockClusterConfigServiceMockRecorder) GetClusterConfig(arg0, arg1 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClusterConfig", reflect.TypeOf((*MockClusterConfigService)(nil).GetClusterConfig), arg0, arg1)
    51  }
    52  
    53  // UpdateClusterConfig mocks base method.
    54  func (m *MockClusterConfigService) UpdateClusterConfig(arg0 context.Context, arg1 string, arg2 *model.UpdateClusterConfig) (*model.ClusterConfig, error) {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "UpdateClusterConfig", arg0, arg1, arg2)
    57  	ret0, _ := ret[0].(*model.ClusterConfig)
    58  	ret1, _ := ret[1].(error)
    59  	return ret0, ret1
    60  }
    61  
    62  // UpdateClusterConfig indicates an expected call of UpdateClusterConfig.
    63  func (mr *MockClusterConfigServiceMockRecorder) UpdateClusterConfig(arg0, arg1, arg2 interface{}) *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateClusterConfig", reflect.TypeOf((*MockClusterConfigService)(nil).UpdateClusterConfig), arg0, arg1, arg2)
    66  }
    67  

View as plain text