...

Source file src/edge-infra.dev/pkg/edge/api/mocks/mock_chariot_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: ChariotService)
     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  	client "edge-infra.dev/pkg/edge/chariot/client"
    13  	gomock "github.com/golang/mock/gomock"
    14  )
    15  
    16  // MockChariotService is a mock of ChariotService interface.
    17  type MockChariotService struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockChariotServiceMockRecorder
    20  }
    21  
    22  // MockChariotServiceMockRecorder is the mock recorder for MockChariotService.
    23  type MockChariotServiceMockRecorder struct {
    24  	mock *MockChariotService
    25  }
    26  
    27  // NewMockChariotService creates a new mock instance.
    28  func NewMockChariotService(ctrl *gomock.Controller) *MockChariotService {
    29  	mock := &MockChariotService{ctrl: ctrl}
    30  	mock.recorder = &MockChariotServiceMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockChariotService) EXPECT() *MockChariotServiceMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // CheckClusterAndInvokeChariotPubsub mocks base method.
    40  func (m *MockChariotService) CheckClusterAndInvokeChariotPubsub(arg0 context.Context, arg1 *model.Cluster, arg2 *client.ChariotMessage, arg3 map[string]string) error {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "CheckClusterAndInvokeChariotPubsub", arg0, arg1, arg2, arg3)
    43  	ret0, _ := ret[0].(error)
    44  	return ret0
    45  }
    46  
    47  // CheckClusterAndInvokeChariotPubsub indicates an expected call of CheckClusterAndInvokeChariotPubsub.
    48  func (mr *MockChariotServiceMockRecorder) CheckClusterAndInvokeChariotPubsub(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckClusterAndInvokeChariotPubsub", reflect.TypeOf((*MockChariotService)(nil).CheckClusterAndInvokeChariotPubsub), arg0, arg1, arg2, arg3)
    51  }
    52  
    53  // InvokeChariotPubsub mocks base method.
    54  func (m *MockChariotService) InvokeChariotPubsub(arg0 context.Context, arg1 *client.ChariotMessage, arg2 map[string]string) error {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "InvokeChariotPubsub", arg0, arg1, arg2)
    57  	ret0, _ := ret[0].(error)
    58  	return ret0
    59  }
    60  
    61  // InvokeChariotPubsub indicates an expected call of InvokeChariotPubsub.
    62  func (mr *MockChariotServiceMockRecorder) InvokeChariotPubsub(arg0, arg1, arg2 interface{}) *gomock.Call {
    63  	mr.mock.ctrl.T.Helper()
    64  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InvokeChariotPubsub", reflect.TypeOf((*MockChariotService)(nil).InvokeChariotPubsub), arg0, arg1, arg2)
    65  }
    66  

View as plain text