mock_domain

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_domain is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApplicationRepository

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

MockApplicationRepository is a mock of ApplicationRepository interface.

func NewMockApplicationRepository

func NewMockApplicationRepository(ctrl *gomock.Controller) *MockApplicationRepository

NewMockApplicationRepository creates a new mock instance.

func (*MockApplicationRepository) BulkUpdateState

func (m_2 *MockApplicationRepository) BulkUpdateState(ctx context.Context, m map[string]domain.ContainerState) error

BulkUpdateState mocks base method.

func (*MockApplicationRepository) CreateApplication

func (m *MockApplicationRepository) CreateApplication(ctx context.Context, app *domain.Application) error

CreateApplication mocks base method.

func (*MockApplicationRepository) DeleteApplication

func (m *MockApplicationRepository) DeleteApplication(ctx context.Context, id string) error

DeleteApplication mocks base method.

func (*MockApplicationRepository) EXPECT

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

func (*MockApplicationRepository) GetApplication

func (m *MockApplicationRepository) GetApplication(ctx context.Context, id string) (*domain.Application, error)

GetApplication mocks base method.

func (*MockApplicationRepository) GetApplications

GetApplications mocks base method.

func (*MockApplicationRepository) UpdateApplication

func (m *MockApplicationRepository) UpdateApplication(ctx context.Context, id string, args *domain.UpdateApplicationArgs) error

UpdateApplication mocks base method.

type MockApplicationRepositoryMockRecorder

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

MockApplicationRepositoryMockRecorder is the mock recorder for MockApplicationRepository.

func (*MockApplicationRepositoryMockRecorder) BulkUpdateState

func (mr *MockApplicationRepositoryMockRecorder) BulkUpdateState(ctx, m interface{}) *gomock.Call

BulkUpdateState indicates an expected call of BulkUpdateState.

func (*MockApplicationRepositoryMockRecorder) CreateApplication

func (mr *MockApplicationRepositoryMockRecorder) CreateApplication(ctx, app interface{}) *gomock.Call

CreateApplication indicates an expected call of CreateApplication.

func (*MockApplicationRepositoryMockRecorder) DeleteApplication

func (mr *MockApplicationRepositoryMockRecorder) DeleteApplication(ctx, id interface{}) *gomock.Call

DeleteApplication indicates an expected call of DeleteApplication.

func (*MockApplicationRepositoryMockRecorder) GetApplication

func (mr *MockApplicationRepositoryMockRecorder) GetApplication(ctx, id interface{}) *gomock.Call

GetApplication indicates an expected call of GetApplication.

func (*MockApplicationRepositoryMockRecorder) GetApplications

func (mr *MockApplicationRepositoryMockRecorder) GetApplications(ctx, cond interface{}) *gomock.Call

GetApplications indicates an expected call of GetApplications.

func (*MockApplicationRepositoryMockRecorder) UpdateApplication

func (mr *MockApplicationRepositoryMockRecorder) UpdateApplication(ctx, id, args interface{}) *gomock.Call

UpdateApplication indicates an expected call of UpdateApplication.

type MockArtifactRepository

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

MockArtifactRepository is a mock of ArtifactRepository interface.

func NewMockArtifactRepository

func NewMockArtifactRepository(ctrl *gomock.Controller) *MockArtifactRepository

NewMockArtifactRepository creates a new mock instance.

func (*MockArtifactRepository) CreateArtifact

func (m *MockArtifactRepository) CreateArtifact(ctx context.Context, artifact *domain.Artifact) error

CreateArtifact mocks base method.

func (*MockArtifactRepository) EXPECT

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

func (*MockArtifactRepository) GetArtifacts

GetArtifacts mocks base method.

func (*MockArtifactRepository) HardDeleteArtifacts

func (m *MockArtifactRepository) HardDeleteArtifacts(ctx context.Context, cond domain.GetArtifactCondition) error

HardDeleteArtifacts mocks base method.

func (*MockArtifactRepository) UpdateArtifact

func (m *MockArtifactRepository) UpdateArtifact(ctx context.Context, id string, args domain.UpdateArtifactArgs) error

UpdateArtifact mocks base method.

type MockArtifactRepositoryMockRecorder

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

MockArtifactRepositoryMockRecorder is the mock recorder for MockArtifactRepository.

func (*MockArtifactRepositoryMockRecorder) CreateArtifact

func (mr *MockArtifactRepositoryMockRecorder) CreateArtifact(ctx, artifact interface{}) *gomock.Call

CreateArtifact indicates an expected call of CreateArtifact.

func (*MockArtifactRepositoryMockRecorder) GetArtifacts

func (mr *MockArtifactRepositoryMockRecorder) GetArtifacts(ctx, cond interface{}) *gomock.Call

GetArtifacts indicates an expected call of GetArtifacts.

func (*MockArtifactRepositoryMockRecorder) HardDeleteArtifacts

func (mr *MockArtifactRepositoryMockRecorder) HardDeleteArtifacts(ctx, cond interface{}) *gomock.Call

HardDeleteArtifacts indicates an expected call of HardDeleteArtifacts.

func (*MockArtifactRepositoryMockRecorder) UpdateArtifact

func (mr *MockArtifactRepositoryMockRecorder) UpdateArtifact(ctx, id, args interface{}) *gomock.Call

UpdateArtifact indicates an expected call of UpdateArtifact.

type MockBuildRepository

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

MockBuildRepository is a mock of BuildRepository interface.

func NewMockBuildRepository

func NewMockBuildRepository(ctrl *gomock.Controller) *MockBuildRepository

NewMockBuildRepository creates a new mock instance.

func (*MockBuildRepository) CreateBuild

func (m *MockBuildRepository) CreateBuild(ctx context.Context, build *domain.Build) error

CreateBuild mocks base method.

func (*MockBuildRepository) DeleteBuilds

func (m *MockBuildRepository) DeleteBuilds(ctx context.Context, cond domain.GetBuildCondition) error

DeleteBuilds mocks base method.

func (*MockBuildRepository) EXPECT

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

func (*MockBuildRepository) GetBuild

func (m *MockBuildRepository) GetBuild(ctx context.Context, buildID string) (*domain.Build, error)

GetBuild mocks base method.

func (*MockBuildRepository) GetBuilds

GetBuilds mocks base method.

func (*MockBuildRepository) MarkCommitAsRetriable

func (m *MockBuildRepository) MarkCommitAsRetriable(ctx context.Context, applicationID, commit string) error

MarkCommitAsRetriable mocks base method.

func (*MockBuildRepository) UpdateBuild

func (m *MockBuildRepository) UpdateBuild(ctx context.Context, id string, args domain.UpdateBuildArgs) error

UpdateBuild mocks base method.

type MockBuildRepositoryMockRecorder

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

MockBuildRepositoryMockRecorder is the mock recorder for MockBuildRepository.

func (*MockBuildRepositoryMockRecorder) CreateBuild

func (mr *MockBuildRepositoryMockRecorder) CreateBuild(ctx, build interface{}) *gomock.Call

CreateBuild indicates an expected call of CreateBuild.

func (*MockBuildRepositoryMockRecorder) DeleteBuilds

func (mr *MockBuildRepositoryMockRecorder) DeleteBuilds(ctx, cond interface{}) *gomock.Call

DeleteBuilds indicates an expected call of DeleteBuilds.

func (*MockBuildRepositoryMockRecorder) GetBuild

func (mr *MockBuildRepositoryMockRecorder) GetBuild(ctx, buildID interface{}) *gomock.Call

GetBuild indicates an expected call of GetBuild.

func (*MockBuildRepositoryMockRecorder) GetBuilds

func (mr *MockBuildRepositoryMockRecorder) GetBuilds(ctx, cond interface{}) *gomock.Call

GetBuilds indicates an expected call of GetBuilds.

func (*MockBuildRepositoryMockRecorder) MarkCommitAsRetriable

func (mr *MockBuildRepositoryMockRecorder) MarkCommitAsRetriable(ctx, applicationID, commit interface{}) *gomock.Call

MarkCommitAsRetriable indicates an expected call of MarkCommitAsRetriable.

func (*MockBuildRepositoryMockRecorder) UpdateBuild

func (mr *MockBuildRepositoryMockRecorder) UpdateBuild(ctx, id, args interface{}) *gomock.Call

UpdateBuild indicates an expected call of UpdateBuild.

type MockEnvironmentRepository

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

MockEnvironmentRepository is a mock of EnvironmentRepository interface.

func NewMockEnvironmentRepository

func NewMockEnvironmentRepository(ctrl *gomock.Controller) *MockEnvironmentRepository

NewMockEnvironmentRepository creates a new mock instance.

func (*MockEnvironmentRepository) DeleteEnv

DeleteEnv mocks base method.

func (*MockEnvironmentRepository) EXPECT

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

func (*MockEnvironmentRepository) GetEnv

GetEnv mocks base method.

func (*MockEnvironmentRepository) SetEnv

SetEnv mocks base method.

type MockEnvironmentRepositoryMockRecorder

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

MockEnvironmentRepositoryMockRecorder is the mock recorder for MockEnvironmentRepository.

func (*MockEnvironmentRepositoryMockRecorder) DeleteEnv

func (mr *MockEnvironmentRepositoryMockRecorder) DeleteEnv(ctx, cond interface{}) *gomock.Call

DeleteEnv indicates an expected call of DeleteEnv.

func (*MockEnvironmentRepositoryMockRecorder) GetEnv

func (mr *MockEnvironmentRepositoryMockRecorder) GetEnv(ctx, cond interface{}) *gomock.Call

GetEnv indicates an expected call of GetEnv.

func (*MockEnvironmentRepositoryMockRecorder) SetEnv

func (mr *MockEnvironmentRepositoryMockRecorder) SetEnv(ctx, env interface{}) *gomock.Call

SetEnv indicates an expected call of SetEnv.

type MockGitRepositoryRepository

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

MockGitRepositoryRepository is a mock of GitRepositoryRepository interface.

func NewMockGitRepositoryRepository

func NewMockGitRepositoryRepository(ctrl *gomock.Controller) *MockGitRepositoryRepository

NewMockGitRepositoryRepository creates a new mock instance.

func (*MockGitRepositoryRepository) CreateRepository

func (m *MockGitRepositoryRepository) CreateRepository(ctx context.Context, repo *domain.Repository) error

CreateRepository mocks base method.

func (*MockGitRepositoryRepository) DeleteRepository

func (m *MockGitRepositoryRepository) DeleteRepository(ctx context.Context, id string) error

DeleteRepository mocks base method.

func (*MockGitRepositoryRepository) EXPECT

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

func (*MockGitRepositoryRepository) GetRepositories

GetRepositories mocks base method.

func (*MockGitRepositoryRepository) GetRepository

GetRepository mocks base method.

func (*MockGitRepositoryRepository) UpdateRepository

UpdateRepository mocks base method.

type MockGitRepositoryRepositoryMockRecorder

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

MockGitRepositoryRepositoryMockRecorder is the mock recorder for MockGitRepositoryRepository.

func (*MockGitRepositoryRepositoryMockRecorder) CreateRepository

func (mr *MockGitRepositoryRepositoryMockRecorder) CreateRepository(ctx, repo interface{}) *gomock.Call

CreateRepository indicates an expected call of CreateRepository.

func (*MockGitRepositoryRepositoryMockRecorder) DeleteRepository

func (mr *MockGitRepositoryRepositoryMockRecorder) DeleteRepository(ctx, id interface{}) *gomock.Call

DeleteRepository indicates an expected call of DeleteRepository.

func (*MockGitRepositoryRepositoryMockRecorder) GetRepositories

func (mr *MockGitRepositoryRepositoryMockRecorder) GetRepositories(ctx, condition interface{}) *gomock.Call

GetRepositories indicates an expected call of GetRepositories.

func (*MockGitRepositoryRepositoryMockRecorder) GetRepository

func (mr *MockGitRepositoryRepositoryMockRecorder) GetRepository(ctx, id interface{}) *gomock.Call

GetRepository indicates an expected call of GetRepository.

func (*MockGitRepositoryRepositoryMockRecorder) UpdateRepository

func (mr *MockGitRepositoryRepositoryMockRecorder) UpdateRepository(ctx, id, args interface{}) *gomock.Call

UpdateRepository indicates an expected call of UpdateRepository.

type MockUserRepository

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

MockUserRepository is a mock of UserRepository interface.

func NewMockUserRepository

func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository

NewMockUserRepository creates a new mock instance.

func (*MockUserRepository) CreateUserKey

func (m *MockUserRepository) CreateUserKey(ctx context.Context, key *domain.UserKey) error

CreateUserKey mocks base method.

func (*MockUserRepository) DeleteUserKey

func (m *MockUserRepository) DeleteUserKey(ctx context.Context, keyID, userID string) error

DeleteUserKey mocks base method.

func (*MockUserRepository) EXPECT

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

func (*MockUserRepository) GetOrCreateUser

func (m *MockUserRepository) GetOrCreateUser(ctx context.Context, name string) (*domain.User, error)

GetOrCreateUser mocks base method.

func (*MockUserRepository) GetUserKeys

GetUserKeys mocks base method.

func (*MockUserRepository) GetUsers

GetUsers mocks base method.

type MockUserRepositoryMockRecorder

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

MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.

func (*MockUserRepositoryMockRecorder) CreateUserKey

func (mr *MockUserRepositoryMockRecorder) CreateUserKey(ctx, key interface{}) *gomock.Call

CreateUserKey indicates an expected call of CreateUserKey.

func (*MockUserRepositoryMockRecorder) DeleteUserKey

func (mr *MockUserRepositoryMockRecorder) DeleteUserKey(ctx, keyID, userID interface{}) *gomock.Call

DeleteUserKey indicates an expected call of DeleteUserKey.

func (*MockUserRepositoryMockRecorder) GetOrCreateUser

func (mr *MockUserRepositoryMockRecorder) GetOrCreateUser(ctx, name interface{}) *gomock.Call

GetOrCreateUser indicates an expected call of GetOrCreateUser.

func (*MockUserRepositoryMockRecorder) GetUserKeys

func (mr *MockUserRepositoryMockRecorder) GetUserKeys(ctx, cond interface{}) *gomock.Call

GetUserKeys indicates an expected call of GetUserKeys.

func (*MockUserRepositoryMockRecorder) GetUsers

func (mr *MockUserRepositoryMockRecorder) GetUsers(ctx, cond interface{}) *gomock.Call

GetUsers indicates an expected call of GetUsers.

Jump to

Keyboard shortcuts

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