mock_api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock_api is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

type MockStore struct {
	// contains filtered or unexported fields
}

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) CompleteUpload

func (m *MockStore) CompleteUpload(uploadID, errorMessage string) error

CompleteUpload mocks base method.

func (*MockStore) CreateTranslation added in v0.2.0

func (m *MockStore) CreateTranslation(t *model.Translation) error

CreateTranslation mocks base method.

func (*MockStore) CreateUpload

func (m *MockStore) CreateUpload(id string, archiveType model.BackupType) error

CreateUpload mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) GetAllImports

func (m *MockStore) GetAllImports() ([]*model.Import, error)

GetAllImports mocks base method.

func (*MockStore) GetAllTranslations

func (m *MockStore) GetAllTranslations() ([]*model.Translation, error)

GetAllTranslations mocks base method.

func (*MockStore) GetAndClaimNextReadyImport

func (m *MockStore) GetAndClaimNextReadyImport(provisionerID string) (*model.Import, error)

GetAndClaimNextReadyImport mocks base method.

func (*MockStore) GetImport

func (m *MockStore) GetImport(id string) (*model.Import, error)

GetImport mocks base method.

func (*MockStore) GetImportsByInstallation

func (m *MockStore) GetImportsByInstallation(id string) ([]*model.Import, error)

GetImportsByInstallation mocks base method.

func (*MockStore) GetImportsByTranslation

func (m *MockStore) GetImportsByTranslation(id string) ([]*model.Import, error)

GetImportsByTranslation mocks base method.

func (*MockStore) GetImportsInProgress

func (m *MockStore) GetImportsInProgress() ([]*model.Import, error)

GetImportsInProgress mocks base method.

func (*MockStore) GetTranslation

func (m *MockStore) GetTranslation(id string) (*model.Translation, error)

GetTranslation mocks base method.

func (*MockStore) GetTranslationsByInstallation

func (m *MockStore) GetTranslationsByInstallation(id string) ([]*model.Translation, error)

GetTranslationsByInstallation mocks base method.

func (*MockStore) GetUpload

func (m *MockStore) GetUpload(id string) (*model.Upload, error)

GetUpload mocks base method.

func (*MockStore) UpdateImport

func (m *MockStore) UpdateImport(imp *model.Import) error

UpdateImport mocks base method.

func (*MockStore) UpdateTranslation

func (m *MockStore) UpdateTranslation(t *model.Translation) error

UpdateTranslation mocks base method.

type MockStoreMockRecorder

type MockStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) CompleteUpload

func (mr *MockStoreMockRecorder) CompleteUpload(uploadID, errorMessage interface{}) *gomock.Call

CompleteUpload indicates an expected call of CompleteUpload.

func (*MockStoreMockRecorder) CreateTranslation added in v0.2.0

func (mr *MockStoreMockRecorder) CreateTranslation(t interface{}) *gomock.Call

CreateTranslation indicates an expected call of CreateTranslation.

func (*MockStoreMockRecorder) CreateUpload

func (mr *MockStoreMockRecorder) CreateUpload(id, archiveType interface{}) *gomock.Call

CreateUpload indicates an expected call of CreateUpload.

func (*MockStoreMockRecorder) GetAllImports

func (mr *MockStoreMockRecorder) GetAllImports() *gomock.Call

GetAllImports indicates an expected call of GetAllImports.

func (*MockStoreMockRecorder) GetAllTranslations

func (mr *MockStoreMockRecorder) GetAllTranslations() *gomock.Call

GetAllTranslations indicates an expected call of GetAllTranslations.

func (*MockStoreMockRecorder) GetAndClaimNextReadyImport

func (mr *MockStoreMockRecorder) GetAndClaimNextReadyImport(provisionerID interface{}) *gomock.Call

GetAndClaimNextReadyImport indicates an expected call of GetAndClaimNextReadyImport.

func (*MockStoreMockRecorder) GetImport

func (mr *MockStoreMockRecorder) GetImport(id interface{}) *gomock.Call

GetImport indicates an expected call of GetImport.

func (*MockStoreMockRecorder) GetImportsByInstallation

func (mr *MockStoreMockRecorder) GetImportsByInstallation(id interface{}) *gomock.Call

GetImportsByInstallation indicates an expected call of GetImportsByInstallation.

func (*MockStoreMockRecorder) GetImportsByTranslation

func (mr *MockStoreMockRecorder) GetImportsByTranslation(id interface{}) *gomock.Call

GetImportsByTranslation indicates an expected call of GetImportsByTranslation.

func (*MockStoreMockRecorder) GetImportsInProgress

func (mr *MockStoreMockRecorder) GetImportsInProgress() *gomock.Call

GetImportsInProgress indicates an expected call of GetImportsInProgress.

func (*MockStoreMockRecorder) GetTranslation

func (mr *MockStoreMockRecorder) GetTranslation(id interface{}) *gomock.Call

GetTranslation indicates an expected call of GetTranslation.

func (*MockStoreMockRecorder) GetTranslationsByInstallation

func (mr *MockStoreMockRecorder) GetTranslationsByInstallation(id interface{}) *gomock.Call

GetTranslationsByInstallation indicates an expected call of GetTranslationsByInstallation.

func (*MockStoreMockRecorder) GetUpload

func (mr *MockStoreMockRecorder) GetUpload(id interface{}) *gomock.Call

GetUpload indicates an expected call of GetUpload.

func (*MockStoreMockRecorder) UpdateImport

func (mr *MockStoreMockRecorder) UpdateImport(imp interface{}) *gomock.Call

UpdateImport indicates an expected call of UpdateImport.

func (*MockStoreMockRecorder) UpdateTranslation

func (mr *MockStoreMockRecorder) UpdateTranslation(t interface{}) *gomock.Call

UpdateTranslation indicates an expected call of UpdateTranslation.

Jump to

Keyboard shortcuts

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