runtime

package
v0.0.0-...-c8e7285 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 6 Imported by: 0

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) FindAll

func (m *MockRepository) FindAll(ctx context.Context) ([]entity.Runtime, error)

FindAll mocks base method.

func (*MockRepository) Get

Get mocks base method.

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

func (m *MockUseCase) GetRuntimes(ctx context.Context, username string) ([]entity.Runtime, error)

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 logging.Logger,
	k8sClient k8s.Client,
	repo Repository,
) UseCase

NewInteractor factory function.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL