Documentation ¶
Overview ¶
Package runtime is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) FindAll ¶
func (mr *MockRepositoryMockRecorder) FindAll(ctx interface{}) *gomock.Call
FindAll indicates an expected call of FindAll.
func (*MockRepositoryMockRecorder) Get ¶
func (mr *MockRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockUseCase ¶
type MockUseCase struct {
// contains filtered or unexported fields
}
MockUseCase is a mock of UseCase interface.
func NewMockUseCase ¶
func NewMockUseCase(ctrl *gomock.Controller) *MockUseCase
NewMockUseCase creates a new mock instance.
func (*MockUseCase) EXPECT ¶
func (m *MockUseCase) EXPECT() *MockUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUseCase) GetRunningRuntime ¶
func (m *MockUseCase) GetRunningRuntime(ctx context.Context, username string) (*entity.Runtime, error)
GetRunningRuntime mocks base method.
func (*MockUseCase) GetRuntimes ¶
GetRuntimes mocks base method.
type MockUseCaseMockRecorder ¶
type MockUseCaseMockRecorder struct {
// contains filtered or unexported fields
}
MockUseCaseMockRecorder is the mock recorder for MockUseCase.
func (*MockUseCaseMockRecorder) GetRunningRuntime ¶
func (mr *MockUseCaseMockRecorder) GetRunningRuntime(ctx, username interface{}) *gomock.Call
GetRunningRuntime indicates an expected call of GetRunningRuntime.
func (*MockUseCaseMockRecorder) GetRuntimes ¶
func (mr *MockUseCaseMockRecorder) GetRuntimes(ctx, username interface{}) *gomock.Call
GetRuntimes indicates an expected call of GetRuntimes.
type Repository ¶
type Repository interface { Get(ctx context.Context, id string) (entity.Runtime, error) FindAll(ctx context.Context) ([]entity.Runtime, error) }
Repository interface to retrieve and persists runtimes.
type UseCase ¶
type UseCase interface { GetRuntimes(ctx context.Context, username string) ([]entity.Runtime, error) GetRunningRuntime(ctx context.Context, username string) (*entity.Runtime, error) }
UseCase interface to manage all operations related with runtimes.
func NewInteractor ¶
func NewInteractor( logger logr.Logger, k8sClient k8s.ClientInterface, repo Repository, ) UseCase
NewInteractor factory function.