mocks

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Store) AgentCreate

func (_m *Store) AgentCreate(_a0 *model.Agent) error

AgentCreate provides a mock function with given fields: _a0

func (*Store) AgentDelete

func (_m *Store) AgentDelete(_a0 *model.Agent) error

AgentDelete provides a mock function with given fields: _a0

func (*Store) AgentFind

func (_m *Store) AgentFind(_a0 int64) (*model.Agent, error)

AgentFind provides a mock function with given fields: _a0

func (*Store) AgentFindByToken

func (_m *Store) AgentFindByToken(_a0 string) (*model.Agent, error)

AgentFindByToken provides a mock function with given fields: _a0

func (*Store) AgentList

func (_m *Store) AgentList(p *model.ListOptions) ([]*model.Agent, error)

AgentList provides a mock function with given fields: p

func (*Store) AgentUpdate

func (_m *Store) AgentUpdate(_a0 *model.Agent) error

AgentUpdate provides a mock function with given fields: _a0

func (*Store) Close

func (_m *Store) Close() error

Close provides a mock function with given fields:

func (*Store) ConfigCreate

func (_m *Store) ConfigCreate(_a0 *model.Config) error

ConfigCreate provides a mock function with given fields: _a0

func (*Store) ConfigFindApproved

func (_m *Store) ConfigFindApproved(_a0 *model.Config) (bool, error)

ConfigFindApproved provides a mock function with given fields: _a0

func (*Store) ConfigFindIdentical

func (_m *Store) ConfigFindIdentical(repoID int64, hash string) (*model.Config, error)

ConfigFindIdentical provides a mock function with given fields: repoID, hash

func (*Store) ConfigsForPipeline

func (_m *Store) ConfigsForPipeline(pipelineID int64) ([]*model.Config, error)

ConfigsForPipeline provides a mock function with given fields: pipelineID

func (*Store) CreatePipeline

func (_m *Store) CreatePipeline(_a0 *model.Pipeline, _a1 ...*model.Step) error

CreatePipeline provides a mock function with given fields: _a0, _a1

func (*Store) CreateRedirection

func (_m *Store) CreateRedirection(redirection *model.Redirection) error

CreateRedirection provides a mock function with given fields: redirection

func (*Store) CreateRepo

func (_m *Store) CreateRepo(_a0 *model.Repo) error

CreateRepo provides a mock function with given fields: _a0

func (*Store) CreateUser

func (_m *Store) CreateUser(_a0 *model.User) error

CreateUser provides a mock function with given fields: _a0

func (*Store) CronCreate

func (_m *Store) CronCreate(_a0 *model.Cron) error

CronCreate provides a mock function with given fields: _a0

func (*Store) CronDelete

func (_m *Store) CronDelete(_a0 *model.Repo, _a1 int64) error

CronDelete provides a mock function with given fields: _a0, _a1

func (*Store) CronFind

func (_m *Store) CronFind(_a0 *model.Repo, _a1 int64) (*model.Cron, error)

CronFind provides a mock function with given fields: _a0, _a1

func (*Store) CronGetLock

func (_m *Store) CronGetLock(_a0 *model.Cron, _a1 int64) (bool, error)

CronGetLock provides a mock function with given fields: _a0, _a1

func (*Store) CronList

func (_m *Store) CronList(_a0 *model.Repo, _a1 *model.ListOptions) ([]*model.Cron, error)

CronList provides a mock function with given fields: _a0, _a1

func (*Store) CronListNextExecute

func (_m *Store) CronListNextExecute(_a0 int64, _a1 int64) ([]*model.Cron, error)

CronListNextExecute provides a mock function with given fields: _a0, _a1

func (*Store) CronUpdate

func (_m *Store) CronUpdate(_a0 *model.Repo, _a1 *model.Cron) error

CronUpdate provides a mock function with given fields: _a0, _a1

func (*Store) DeleteRepo

func (_m *Store) DeleteRepo(_a0 *model.Repo) error

DeleteRepo provides a mock function with given fields: _a0

func (*Store) DeleteUser

func (_m *Store) DeleteUser(_a0 *model.User) error

DeleteUser provides a mock function with given fields: _a0

func (*Store) GetActivePipelineList

func (_m *Store) GetActivePipelineList(repo *model.Repo) ([]*model.Pipeline, error)

GetActivePipelineList provides a mock function with given fields: repo

func (*Store) GetPipeline

func (_m *Store) GetPipeline(_a0 int64) (*model.Pipeline, error)

GetPipeline provides a mock function with given fields: _a0

func (*Store) GetPipelineCommit

func (_m *Store) GetPipelineCommit(_a0 *model.Repo, _a1 string, _a2 string) (*model.Pipeline, error)

GetPipelineCommit provides a mock function with given fields: _a0, _a1, _a2

func (*Store) GetPipelineCount

func (_m *Store) GetPipelineCount() (int64, error)

GetPipelineCount provides a mock function with given fields:

func (*Store) GetPipelineLast

func (_m *Store) GetPipelineLast(_a0 *model.Repo, _a1 string) (*model.Pipeline, error)

GetPipelineLast provides a mock function with given fields: _a0, _a1

func (*Store) GetPipelineLastBefore

func (_m *Store) GetPipelineLastBefore(_a0 *model.Repo, _a1 string, _a2 int64) (*model.Pipeline, error)

GetPipelineLastBefore provides a mock function with given fields: _a0, _a1, _a2

func (*Store) GetPipelineList

func (_m *Store) GetPipelineList(_a0 *model.Repo, _a1 *model.ListOptions) ([]*model.Pipeline, error)

GetPipelineList provides a mock function with given fields: _a0, _a1

func (*Store) GetPipelineNumber

func (_m *Store) GetPipelineNumber(_a0 *model.Repo, _a1 int64) (*model.Pipeline, error)

GetPipelineNumber provides a mock function with given fields: _a0, _a1

func (*Store) GetPipelineQueue

func (_m *Store) GetPipelineQueue() ([]*model.Feed, error)

GetPipelineQueue provides a mock function with given fields:

func (*Store) GetPipelineRef

func (_m *Store) GetPipelineRef(_a0 *model.Repo, _a1 string) (*model.Pipeline, error)

GetPipelineRef provides a mock function with given fields: _a0, _a1

func (*Store) GetRedirection

func (_m *Store) GetRedirection(_a0 string) (*model.Redirection, error)

GetRedirection provides a mock function with given fields: _a0

func (*Store) GetRepo

func (_m *Store) GetRepo(_a0 int64) (*model.Repo, error)

GetRepo provides a mock function with given fields: _a0

func (*Store) GetRepoCount

func (_m *Store) GetRepoCount() (int64, error)

GetRepoCount provides a mock function with given fields:

func (*Store) GetRepoForgeID

func (_m *Store) GetRepoForgeID(_a0 model.ForgeRemoteID) (*model.Repo, error)

GetRepoForgeID provides a mock function with given fields: _a0

func (*Store) GetRepoName

func (_m *Store) GetRepoName(_a0 string) (*model.Repo, error)

GetRepoName provides a mock function with given fields: _a0

func (*Store) GetRepoNameFallback

func (_m *Store) GetRepoNameFallback(remoteID model.ForgeRemoteID, fullName string) (*model.Repo, error)

GetRepoNameFallback provides a mock function with given fields: remoteID, fullName

func (*Store) GetUser

func (_m *Store) GetUser(_a0 int64) (*model.User, error)

GetUser provides a mock function with given fields: _a0

func (*Store) GetUserCount

func (_m *Store) GetUserCount() (int64, error)

GetUserCount provides a mock function with given fields:

func (*Store) GetUserList

func (_m *Store) GetUserList(p *model.ListOptions) ([]*model.User, error)

GetUserList provides a mock function with given fields: p

func (*Store) GetUserLogin

func (_m *Store) GetUserLogin(_a0 string) (*model.User, error)

GetUserLogin provides a mock function with given fields: _a0

func (*Store) GetUserRemoteID

func (_m *Store) GetUserRemoteID(_a0 model.ForgeRemoteID, _a1 string) (*model.User, error)

GetUserRemoteID provides a mock function with given fields: _a0, _a1

func (*Store) GlobalSecretFind

func (_m *Store) GlobalSecretFind(_a0 string) (*model.Secret, error)

GlobalSecretFind provides a mock function with given fields: _a0

func (*Store) GlobalSecretList

func (_m *Store) GlobalSecretList(_a0 *model.ListOptions) ([]*model.Secret, error)

GlobalSecretList provides a mock function with given fields: _a0

func (*Store) HasRedirectionForRepo

func (_m *Store) HasRedirectionForRepo(_a0 int64, _a1 string) (bool, error)

HasRedirectionForRepo provides a mock function with given fields: _a0, _a1

func (*Store) LogAppend

func (_m *Store) LogAppend(logEntry *model.LogEntry) error

LogAppend provides a mock function with given fields: logEntry

func (*Store) LogDelete

func (_m *Store) LogDelete(_a0 *model.Step) error

LogDelete provides a mock function with given fields: _a0

func (*Store) LogFind

func (_m *Store) LogFind(_a0 *model.Step) ([]*model.LogEntry, error)

LogFind provides a mock function with given fields: _a0

func (*Store) LogSave

func (_m *Store) LogSave(_a0 *model.Step, _a1 []*model.LogEntry) error

LogSave provides a mock function with given fields: _a0, _a1

func (*Store) Migrate

func (_m *Store) Migrate() error

Migrate provides a mock function with given fields:

func (*Store) OrgCreate

func (_m *Store) OrgCreate(_a0 *model.Org) error

OrgCreate provides a mock function with given fields: _a0

func (*Store) OrgDelete

func (_m *Store) OrgDelete(_a0 int64) error

OrgDelete provides a mock function with given fields: _a0

func (*Store) OrgFindByName

func (_m *Store) OrgFindByName(_a0 string) (*model.Org, error)

OrgFindByName provides a mock function with given fields: _a0

func (*Store) OrgGet

func (_m *Store) OrgGet(_a0 int64) (*model.Org, error)

OrgGet provides a mock function with given fields: _a0

func (*Store) OrgRepoList

func (_m *Store) OrgRepoList(_a0 *model.Org, _a1 *model.ListOptions) ([]*model.Repo, error)

OrgRepoList provides a mock function with given fields: _a0, _a1

func (*Store) OrgSecretFind

func (_m *Store) OrgSecretFind(_a0 int64, _a1 string) (*model.Secret, error)

OrgSecretFind provides a mock function with given fields: _a0, _a1

func (*Store) OrgSecretList

func (_m *Store) OrgSecretList(_a0 int64, _a1 *model.ListOptions) ([]*model.Secret, error)

OrgSecretList provides a mock function with given fields: _a0, _a1

func (*Store) OrgUpdate

func (_m *Store) OrgUpdate(_a0 *model.Org) error

OrgUpdate provides a mock function with given fields: _a0

func (*Store) PermDelete

func (_m *Store) PermDelete(perm *model.Perm) error

PermDelete provides a mock function with given fields: perm

func (*Store) PermFind

func (_m *Store) PermFind(user *model.User, repo *model.Repo) (*model.Perm, error)

PermFind provides a mock function with given fields: user, repo

func (*Store) PermFlush

func (_m *Store) PermFlush(user *model.User, before int64) error

PermFlush provides a mock function with given fields: user, before

func (*Store) PermUpsert

func (_m *Store) PermUpsert(perm *model.Perm) error

PermUpsert provides a mock function with given fields: perm

func (*Store) Ping

func (_m *Store) Ping() error

Ping provides a mock function with given fields:

func (*Store) PipelineConfigCreate

func (_m *Store) PipelineConfigCreate(_a0 *model.PipelineConfig) error

PipelineConfigCreate provides a mock function with given fields: _a0

func (*Store) RegistryCreate

func (_m *Store) RegistryCreate(_a0 *model.Registry) error

RegistryCreate provides a mock function with given fields: _a0

func (*Store) RegistryDelete

func (_m *Store) RegistryDelete(repo *model.Repo, addr string) error

RegistryDelete provides a mock function with given fields: repo, addr

func (*Store) RegistryFind

func (_m *Store) RegistryFind(_a0 *model.Repo, _a1 string) (*model.Registry, error)

RegistryFind provides a mock function with given fields: _a0, _a1

func (*Store) RegistryList

func (_m *Store) RegistryList(_a0 *model.Repo, _a1 *model.ListOptions) ([]*model.Registry, error)

RegistryList provides a mock function with given fields: _a0, _a1

func (*Store) RegistryUpdate

func (_m *Store) RegistryUpdate(_a0 *model.Registry) error

RegistryUpdate provides a mock function with given fields: _a0

func (*Store) RepoList

func (_m *Store) RepoList(user *model.User, owned bool, active bool) ([]*model.Repo, error)

RepoList provides a mock function with given fields: user, owned, active

func (*Store) RepoListLatest

func (_m *Store) RepoListLatest(_a0 *model.User) ([]*model.Feed, error)

RepoListLatest provides a mock function with given fields: _a0

func (*Store) SecretCreate

func (_m *Store) SecretCreate(_a0 *model.Secret) error

SecretCreate provides a mock function with given fields: _a0

func (*Store) SecretDelete

func (_m *Store) SecretDelete(_a0 *model.Secret) error

SecretDelete provides a mock function with given fields: _a0

func (*Store) SecretFind

func (_m *Store) SecretFind(_a0 *model.Repo, _a1 string) (*model.Secret, error)

SecretFind provides a mock function with given fields: _a0, _a1

func (*Store) SecretList

func (_m *Store) SecretList(_a0 *model.Repo, _a1 bool, _a2 *model.ListOptions) ([]*model.Secret, error)

SecretList provides a mock function with given fields: _a0, _a1, _a2

func (*Store) SecretListAll

func (_m *Store) SecretListAll() ([]*model.Secret, error)

SecretListAll provides a mock function with given fields:

func (*Store) SecretUpdate

func (_m *Store) SecretUpdate(_a0 *model.Secret) error

SecretUpdate provides a mock function with given fields: _a0

func (*Store) ServerConfigDelete

func (_m *Store) ServerConfigDelete(_a0 string) error

ServerConfigDelete provides a mock function with given fields: _a0

func (*Store) ServerConfigGet

func (_m *Store) ServerConfigGet(_a0 string) (string, error)

ServerConfigGet provides a mock function with given fields: _a0

func (*Store) ServerConfigSet

func (_m *Store) ServerConfigSet(_a0 string, _a1 string) error

ServerConfigSet provides a mock function with given fields: _a0, _a1

func (*Store) StepByUUID

func (_m *Store) StepByUUID(_a0 string) (*model.Step, error)

StepByUUID provides a mock function with given fields: _a0

func (*Store) StepChild

func (_m *Store) StepChild(_a0 *model.Pipeline, _a1 int, _a2 string) (*model.Step, error)

StepChild provides a mock function with given fields: _a0, _a1, _a2

func (*Store) StepClear

func (_m *Store) StepClear(_a0 *model.Pipeline) error

StepClear provides a mock function with given fields: _a0

func (*Store) StepFind

func (_m *Store) StepFind(_a0 *model.Pipeline, _a1 int) (*model.Step, error)

StepFind provides a mock function with given fields: _a0, _a1

func (*Store) StepList

func (_m *Store) StepList(_a0 *model.Pipeline) ([]*model.Step, error)

StepList provides a mock function with given fields: _a0

func (*Store) StepListFromWorkflowFind

func (_m *Store) StepListFromWorkflowFind(_a0 *model.Workflow) ([]*model.Step, error)

StepListFromWorkflowFind provides a mock function with given fields: _a0

func (*Store) StepLoad

func (_m *Store) StepLoad(_a0 int64) (*model.Step, error)

StepLoad provides a mock function with given fields: _a0

func (*Store) StepUpdate

func (_m *Store) StepUpdate(_a0 *model.Step) error

StepUpdate provides a mock function with given fields: _a0

func (*Store) TaskDelete

func (_m *Store) TaskDelete(_a0 string) error

TaskDelete provides a mock function with given fields: _a0

func (*Store) TaskInsert

func (_m *Store) TaskInsert(_a0 *model.Task) error

TaskInsert provides a mock function with given fields: _a0

func (*Store) TaskList

func (_m *Store) TaskList() ([]*model.Task, error)

TaskList provides a mock function with given fields:

func (*Store) UpdatePipeline

func (_m *Store) UpdatePipeline(_a0 *model.Pipeline) error

UpdatePipeline provides a mock function with given fields: _a0

func (*Store) UpdateRepo

func (_m *Store) UpdateRepo(_a0 *model.Repo) error

UpdateRepo provides a mock function with given fields: _a0

func (*Store) UpdateUser

func (_m *Store) UpdateUser(_a0 *model.User) error

UpdateUser provides a mock function with given fields: _a0

func (*Store) UserFeed

func (_m *Store) UserFeed(_a0 *model.User) ([]*model.Feed, error)

UserFeed provides a mock function with given fields: _a0

func (*Store) WorkflowGetTree

func (_m *Store) WorkflowGetTree(_a0 *model.Pipeline) ([]*model.Workflow, error)

WorkflowGetTree provides a mock function with given fields: _a0

func (*Store) WorkflowLoad

func (_m *Store) WorkflowLoad(_a0 int64) (*model.Workflow, error)

WorkflowLoad provides a mock function with given fields: _a0

func (*Store) WorkflowUpdate

func (_m *Store) WorkflowUpdate(_a0 *model.Workflow) error

WorkflowUpdate provides a mock function with given fields: _a0

func (*Store) WorkflowsCreate

func (_m *Store) WorkflowsCreate(_a0 []*model.Workflow) error

WorkflowsCreate provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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