feat: runtime manager
This commit is contained in:
@@ -0,0 +1,217 @@
|
||||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: galaxy/rtmanager/internal/api/internalhttp/handlers (interfaces: StartService,StopService,RestartService,PatchService,CleanupService)
|
||||
//
|
||||
// Generated by this command:
|
||||
//
|
||||
// mockgen -destination=mocks/mock_services.go -package=mocks galaxy/rtmanager/internal/api/internalhttp/handlers StartService,StopService,RestartService,PatchService,CleanupService
|
||||
//
|
||||
|
||||
// Package mocks is a generated GoMock package.
|
||||
package mocks
|
||||
|
||||
import (
|
||||
context "context"
|
||||
cleanupcontainer "galaxy/rtmanager/internal/service/cleanupcontainer"
|
||||
patchruntime "galaxy/rtmanager/internal/service/patchruntime"
|
||||
restartruntime "galaxy/rtmanager/internal/service/restartruntime"
|
||||
startruntime "galaxy/rtmanager/internal/service/startruntime"
|
||||
stopruntime "galaxy/rtmanager/internal/service/stopruntime"
|
||||
reflect "reflect"
|
||||
|
||||
gomock "go.uber.org/mock/gomock"
|
||||
)
|
||||
|
||||
// MockStartService is a mock of StartService interface.
|
||||
type MockStartService struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockStartServiceMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockStartServiceMockRecorder is the mock recorder for MockStartService.
|
||||
type MockStartServiceMockRecorder struct {
|
||||
mock *MockStartService
|
||||
}
|
||||
|
||||
// NewMockStartService creates a new mock instance.
|
||||
func NewMockStartService(ctrl *gomock.Controller) *MockStartService {
|
||||
mock := &MockStartService{ctrl: ctrl}
|
||||
mock.recorder = &MockStartServiceMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use.
|
||||
func (m *MockStartService) EXPECT() *MockStartServiceMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// Handle mocks base method.
|
||||
func (m *MockStartService) Handle(ctx context.Context, in startruntime.Input) (startruntime.Result, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Handle", ctx, in)
|
||||
ret0, _ := ret[0].(startruntime.Result)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Handle indicates an expected call of Handle.
|
||||
func (mr *MockStartServiceMockRecorder) Handle(ctx, in any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handle", reflect.TypeOf((*MockStartService)(nil).Handle), ctx, in)
|
||||
}
|
||||
|
||||
// MockStopService is a mock of StopService interface.
|
||||
type MockStopService struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockStopServiceMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockStopServiceMockRecorder is the mock recorder for MockStopService.
|
||||
type MockStopServiceMockRecorder struct {
|
||||
mock *MockStopService
|
||||
}
|
||||
|
||||
// NewMockStopService creates a new mock instance.
|
||||
func NewMockStopService(ctrl *gomock.Controller) *MockStopService {
|
||||
mock := &MockStopService{ctrl: ctrl}
|
||||
mock.recorder = &MockStopServiceMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use.
|
||||
func (m *MockStopService) EXPECT() *MockStopServiceMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// Handle mocks base method.
|
||||
func (m *MockStopService) Handle(ctx context.Context, in stopruntime.Input) (stopruntime.Result, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Handle", ctx, in)
|
||||
ret0, _ := ret[0].(stopruntime.Result)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Handle indicates an expected call of Handle.
|
||||
func (mr *MockStopServiceMockRecorder) Handle(ctx, in any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handle", reflect.TypeOf((*MockStopService)(nil).Handle), ctx, in)
|
||||
}
|
||||
|
||||
// MockRestartService is a mock of RestartService interface.
|
||||
type MockRestartService struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockRestartServiceMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockRestartServiceMockRecorder is the mock recorder for MockRestartService.
|
||||
type MockRestartServiceMockRecorder struct {
|
||||
mock *MockRestartService
|
||||
}
|
||||
|
||||
// NewMockRestartService creates a new mock instance.
|
||||
func NewMockRestartService(ctrl *gomock.Controller) *MockRestartService {
|
||||
mock := &MockRestartService{ctrl: ctrl}
|
||||
mock.recorder = &MockRestartServiceMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use.
|
||||
func (m *MockRestartService) EXPECT() *MockRestartServiceMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// Handle mocks base method.
|
||||
func (m *MockRestartService) Handle(ctx context.Context, in restartruntime.Input) (restartruntime.Result, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Handle", ctx, in)
|
||||
ret0, _ := ret[0].(restartruntime.Result)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Handle indicates an expected call of Handle.
|
||||
func (mr *MockRestartServiceMockRecorder) Handle(ctx, in any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handle", reflect.TypeOf((*MockRestartService)(nil).Handle), ctx, in)
|
||||
}
|
||||
|
||||
// MockPatchService is a mock of PatchService interface.
|
||||
type MockPatchService struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockPatchServiceMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockPatchServiceMockRecorder is the mock recorder for MockPatchService.
|
||||
type MockPatchServiceMockRecorder struct {
|
||||
mock *MockPatchService
|
||||
}
|
||||
|
||||
// NewMockPatchService creates a new mock instance.
|
||||
func NewMockPatchService(ctrl *gomock.Controller) *MockPatchService {
|
||||
mock := &MockPatchService{ctrl: ctrl}
|
||||
mock.recorder = &MockPatchServiceMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use.
|
||||
func (m *MockPatchService) EXPECT() *MockPatchServiceMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// Handle mocks base method.
|
||||
func (m *MockPatchService) Handle(ctx context.Context, in patchruntime.Input) (patchruntime.Result, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Handle", ctx, in)
|
||||
ret0, _ := ret[0].(patchruntime.Result)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Handle indicates an expected call of Handle.
|
||||
func (mr *MockPatchServiceMockRecorder) Handle(ctx, in any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handle", reflect.TypeOf((*MockPatchService)(nil).Handle), ctx, in)
|
||||
}
|
||||
|
||||
// MockCleanupService is a mock of CleanupService interface.
|
||||
type MockCleanupService struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockCleanupServiceMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockCleanupServiceMockRecorder is the mock recorder for MockCleanupService.
|
||||
type MockCleanupServiceMockRecorder struct {
|
||||
mock *MockCleanupService
|
||||
}
|
||||
|
||||
// NewMockCleanupService creates a new mock instance.
|
||||
func NewMockCleanupService(ctrl *gomock.Controller) *MockCleanupService {
|
||||
mock := &MockCleanupService{ctrl: ctrl}
|
||||
mock.recorder = &MockCleanupServiceMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use.
|
||||
func (m *MockCleanupService) EXPECT() *MockCleanupServiceMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// Handle mocks base method.
|
||||
func (m *MockCleanupService) Handle(ctx context.Context, in cleanupcontainer.Input) (cleanupcontainer.Result, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Handle", ctx, in)
|
||||
ret0, _ := ret[0].(cleanupcontainer.Result)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// Handle indicates an expected call of Handle.
|
||||
func (mr *MockCleanupServiceMockRecorder) Handle(ctx, in any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Handle", reflect.TypeOf((*MockCleanupService)(nil).Handle), ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user