Documentation ¶
Index ¶
- type Store
- func (_m *Store) AgentCreate(_a0 *model.Agent) error
- func (_m *Store) AgentDelete(_a0 *model.Agent) error
- func (_m *Store) AgentFind(_a0 int64) (*model.Agent, error)
- func (_m *Store) AgentFindByToken(_a0 string) (*model.Agent, error)
- func (_m *Store) AgentList(p *model.ListOptions) ([]*model.Agent, error)
- func (_m *Store) AgentUpdate(_a0 *model.Agent) error
- func (_m *Store) Close() error
- func (_m *Store) ConfigCreate(_a0 *model.Config) error
- func (_m *Store) ConfigFindApproved(_a0 *model.Config) (bool, error)
- func (_m *Store) ConfigFindIdentical(repoID int64, hash string) (*model.Config, error)
- func (_m *Store) ConfigsForPipeline(pipelineID int64) ([]*model.Config, error)
- func (_m *Store) CreatePipeline(_a0 *model.Pipeline, _a1 ...*model.Step) error
- func (_m *Store) CreateRedirection(redirection *model.Redirection) error
- func (_m *Store) CreateRepo(_a0 *model.Repo) error
- func (_m *Store) CreateUser(_a0 *model.User) error
- func (_m *Store) CronCreate(_a0 *model.Cron) error
- func (_m *Store) CronDelete(_a0 *model.Repo, _a1 int64) error
- func (_m *Store) CronFind(_a0 *model.Repo, _a1 int64) (*model.Cron, error)
- func (_m *Store) CronGetLock(_a0 *model.Cron, _a1 int64) (bool, error)
- func (_m *Store) CronList(_a0 *model.Repo, _a1 *model.ListOptions) ([]*model.Cron, error)
- func (_m *Store) CronListNextExecute(_a0 int64, _a1 int64) ([]*model.Cron, error)
- func (_m *Store) CronUpdate(_a0 *model.Repo, _a1 *model.Cron) error
- func (_m *Store) DeleteRepo(_a0 *model.Repo) error
- func (_m *Store) DeleteUser(_a0 *model.User) error
- func (_m *Store) GetActivePipelineList(repo *model.Repo) ([]*model.Pipeline, error)
- func (_m *Store) GetPipeline(_a0 int64) (*model.Pipeline, error)
- func (_m *Store) GetPipelineCommit(_a0 *model.Repo, _a1 string, _a2 string) (*model.Pipeline, error)
- func (_m *Store) GetPipelineCount() (int64, error)
- func (_m *Store) GetPipelineLast(_a0 *model.Repo, _a1 string) (*model.Pipeline, error)
- func (_m *Store) GetPipelineLastBefore(_a0 *model.Repo, _a1 string, _a2 int64) (*model.Pipeline, error)
- func (_m *Store) GetPipelineList(_a0 *model.Repo, _a1 *model.ListOptions) ([]*model.Pipeline, error)
- func (_m *Store) GetPipelineNumber(_a0 *model.Repo, _a1 int64) (*model.Pipeline, error)
- func (_m *Store) GetPipelineQueue() ([]*model.Feed, error)
- func (_m *Store) GetPipelineRef(_a0 *model.Repo, _a1 string) (*model.Pipeline, error)
- func (_m *Store) GetRedirection(_a0 string) (*model.Redirection, error)
- func (_m *Store) GetRepo(_a0 int64) (*model.Repo, error)
- func (_m *Store) GetRepoCount() (int64, error)
- func (_m *Store) GetRepoForgeID(_a0 model.ForgeRemoteID) (*model.Repo, error)
- func (_m *Store) GetRepoName(_a0 string) (*model.Repo, error)
- func (_m *Store) GetRepoNameFallback(remoteID model.ForgeRemoteID, fullName string) (*model.Repo, error)
- func (_m *Store) GetUser(_a0 int64) (*model.User, error)
- func (_m *Store) GetUserCount() (int64, error)
- func (_m *Store) GetUserList(p *model.ListOptions) ([]*model.User, error)
- func (_m *Store) GetUserLogin(_a0 string) (*model.User, error)
- func (_m *Store) GetUserRemoteID(_a0 model.ForgeRemoteID, _a1 string) (*model.User, error)
- func (_m *Store) GlobalSecretFind(_a0 string) (*model.Secret, error)
- func (_m *Store) GlobalSecretList(_a0 *model.ListOptions) ([]*model.Secret, error)
- func (_m *Store) HasRedirectionForRepo(_a0 int64, _a1 string) (bool, error)
- func (_m *Store) LogAppend(logEntry *model.LogEntry) error
- func (_m *Store) LogDelete(_a0 *model.Step) error
- func (_m *Store) LogFind(_a0 *model.Step) ([]*model.LogEntry, error)
- func (_m *Store) LogSave(_a0 *model.Step, _a1 []*model.LogEntry) error
- func (_m *Store) Migrate() error
- func (_m *Store) OrgCreate(_a0 *model.Org) error
- func (_m *Store) OrgDelete(_a0 int64) error
- func (_m *Store) OrgFindByName(_a0 string) (*model.Org, error)
- func (_m *Store) OrgGet(_a0 int64) (*model.Org, error)
- func (_m *Store) OrgRepoList(_a0 *model.Org, _a1 *model.ListOptions) ([]*model.Repo, error)
- func (_m *Store) OrgSecretFind(_a0 int64, _a1 string) (*model.Secret, error)
- func (_m *Store) OrgSecretList(_a0 int64, _a1 *model.ListOptions) ([]*model.Secret, error)
- func (_m *Store) OrgUpdate(_a0 *model.Org) error
- func (_m *Store) PermDelete(perm *model.Perm) error
- func (_m *Store) PermFind(user *model.User, repo *model.Repo) (*model.Perm, error)
- func (_m *Store) PermFlush(user *model.User, before int64) error
- func (_m *Store) PermUpsert(perm *model.Perm) error
- func (_m *Store) Ping() error
- func (_m *Store) PipelineConfigCreate(_a0 *model.PipelineConfig) error
- func (_m *Store) RegistryCreate(_a0 *model.Registry) error
- func (_m *Store) RegistryDelete(repo *model.Repo, addr string) error
- func (_m *Store) RegistryFind(_a0 *model.Repo, _a1 string) (*model.Registry, error)
- func (_m *Store) RegistryList(_a0 *model.Repo, _a1 *model.ListOptions) ([]*model.Registry, error)
- func (_m *Store) RegistryUpdate(_a0 *model.Registry) error
- func (_m *Store) RepoList(user *model.User, owned bool, active bool) ([]*model.Repo, error)
- func (_m *Store) RepoListLatest(_a0 *model.User) ([]*model.Feed, error)
- func (_m *Store) SecretCreate(_a0 *model.Secret) error
- func (_m *Store) SecretDelete(_a0 *model.Secret) error
- func (_m *Store) SecretFind(_a0 *model.Repo, _a1 string) (*model.Secret, error)
- func (_m *Store) SecretList(_a0 *model.Repo, _a1 bool, _a2 *model.ListOptions) ([]*model.Secret, error)
- func (_m *Store) SecretListAll() ([]*model.Secret, error)
- func (_m *Store) SecretUpdate(_a0 *model.Secret) error
- func (_m *Store) ServerConfigDelete(_a0 string) error
- func (_m *Store) ServerConfigGet(_a0 string) (string, error)
- func (_m *Store) ServerConfigSet(_a0 string, _a1 string) error
- func (_m *Store) StepByUUID(_a0 string) (*model.Step, error)
- func (_m *Store) StepChild(_a0 *model.Pipeline, _a1 int, _a2 string) (*model.Step, error)
- func (_m *Store) StepClear(_a0 *model.Pipeline) error
- func (_m *Store) StepFind(_a0 *model.Pipeline, _a1 int) (*model.Step, error)
- func (_m *Store) StepList(_a0 *model.Pipeline) ([]*model.Step, error)
- func (_m *Store) StepListFromWorkflowFind(_a0 *model.Workflow) ([]*model.Step, error)
- func (_m *Store) StepLoad(_a0 int64) (*model.Step, error)
- func (_m *Store) StepUpdate(_a0 *model.Step) error
- func (_m *Store) TaskDelete(_a0 string) error
- func (_m *Store) TaskInsert(_a0 *model.Task) error
- func (_m *Store) TaskList() ([]*model.Task, error)
- func (_m *Store) UpdatePipeline(_a0 *model.Pipeline) error
- func (_m *Store) UpdateRepo(_a0 *model.Repo) error
- func (_m *Store) UpdateUser(_a0 *model.User) error
- func (_m *Store) UserFeed(_a0 *model.User) ([]*model.Feed, error)
- func (_m *Store) WorkflowGetTree(_a0 *model.Pipeline) ([]*model.Workflow, error)
- func (_m *Store) WorkflowLoad(_a0 int64) (*model.Workflow, error)
- func (_m *Store) WorkflowUpdate(_a0 *model.Workflow) error
- func (_m *Store) WorkflowsCreate(_a0 []*model.Workflow) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
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 ¶
AgentCreate provides a mock function with given fields: _a0
func (*Store) AgentDelete ¶
AgentDelete provides a mock function with given fields: _a0
func (*Store) AgentFindByToken ¶
AgentFindByToken provides a mock function with given fields: _a0
func (*Store) AgentUpdate ¶
AgentUpdate provides a mock function with given fields: _a0
func (*Store) ConfigCreate ¶
ConfigCreate provides a mock function with given fields: _a0
func (*Store) ConfigFindApproved ¶
ConfigFindApproved provides a mock function with given fields: _a0
func (*Store) ConfigFindIdentical ¶
ConfigFindIdentical provides a mock function with given fields: repoID, hash
func (*Store) ConfigsForPipeline ¶
ConfigsForPipeline provides a mock function with given fields: pipelineID
func (*Store) CreatePipeline ¶
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 ¶
CreateRepo provides a mock function with given fields: _a0
func (*Store) CreateUser ¶
CreateUser provides a mock function with given fields: _a0
func (*Store) CronCreate ¶
CronCreate provides a mock function with given fields: _a0
func (*Store) CronDelete ¶
CronDelete provides a mock function with given fields: _a0, _a1
func (*Store) CronGetLock ¶
CronGetLock provides a mock function with given fields: _a0, _a1
func (*Store) CronListNextExecute ¶
CronListNextExecute provides a mock function with given fields: _a0, _a1
func (*Store) CronUpdate ¶
CronUpdate provides a mock function with given fields: _a0, _a1
func (*Store) DeleteRepo ¶
DeleteRepo provides a mock function with given fields: _a0
func (*Store) DeleteUser ¶
DeleteUser provides a mock function with given fields: _a0
func (*Store) GetActivePipelineList ¶
GetActivePipelineList provides a mock function with given fields: repo
func (*Store) GetPipeline ¶
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 ¶
GetPipelineCount provides a mock function with given fields:
func (*Store) GetPipelineLast ¶
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 ¶
GetPipelineNumber provides a mock function with given fields: _a0, _a1
func (*Store) GetPipelineQueue ¶
GetPipelineQueue provides a mock function with given fields:
func (*Store) GetPipelineRef ¶
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) GetRepoCount ¶
GetRepoCount provides a mock function with given fields:
func (*Store) GetRepoForgeID ¶
GetRepoForgeID provides a mock function with given fields: _a0
func (*Store) GetRepoName ¶
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) GetUserCount ¶
GetUserCount provides a mock function with given fields:
func (*Store) GetUserList ¶
GetUserList provides a mock function with given fields: p
func (*Store) GetUserLogin ¶
GetUserLogin provides a mock function with given fields: _a0
func (*Store) GetUserRemoteID ¶
GetUserRemoteID provides a mock function with given fields: _a0, _a1
func (*Store) GlobalSecretFind ¶
GlobalSecretFind provides a mock function with given fields: _a0
func (*Store) GlobalSecretList ¶
GlobalSecretList provides a mock function with given fields: _a0
func (*Store) HasRedirectionForRepo ¶
HasRedirectionForRepo provides a mock function with given fields: _a0, _a1
func (*Store) OrgFindByName ¶
OrgFindByName provides a mock function with given fields: _a0
func (*Store) OrgRepoList ¶
OrgRepoList provides a mock function with given fields: _a0, _a1
func (*Store) OrgSecretFind ¶
OrgSecretFind provides a mock function with given fields: _a0, _a1
func (*Store) OrgSecretList ¶
OrgSecretList provides a mock function with given fields: _a0, _a1
func (*Store) PermDelete ¶
PermDelete provides a mock function with given fields: perm
func (*Store) PermUpsert ¶
PermUpsert provides a mock function with given fields: perm
func (*Store) PipelineConfigCreate ¶
func (_m *Store) PipelineConfigCreate(_a0 *model.PipelineConfig) error
PipelineConfigCreate provides a mock function with given fields: _a0
func (*Store) RegistryCreate ¶
RegistryCreate provides a mock function with given fields: _a0
func (*Store) RegistryDelete ¶
RegistryDelete provides a mock function with given fields: repo, addr
func (*Store) RegistryFind ¶
RegistryFind provides a mock function with given fields: _a0, _a1
func (*Store) RegistryList ¶
RegistryList provides a mock function with given fields: _a0, _a1
func (*Store) RegistryUpdate ¶
RegistryUpdate provides a mock function with given fields: _a0
func (*Store) RepoListLatest ¶
RepoListLatest provides a mock function with given fields: _a0
func (*Store) SecretCreate ¶
SecretCreate provides a mock function with given fields: _a0
func (*Store) SecretDelete ¶
SecretDelete provides a mock function with given fields: _a0
func (*Store) SecretFind ¶
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 ¶
SecretListAll provides a mock function with given fields:
func (*Store) SecretUpdate ¶
SecretUpdate provides a mock function with given fields: _a0
func (*Store) ServerConfigDelete ¶
ServerConfigDelete provides a mock function with given fields: _a0
func (*Store) ServerConfigGet ¶
ServerConfigGet provides a mock function with given fields: _a0
func (*Store) ServerConfigSet ¶
ServerConfigSet provides a mock function with given fields: _a0, _a1
func (*Store) StepByUUID ¶
StepByUUID provides a mock function with given fields: _a0
func (*Store) StepListFromWorkflowFind ¶
StepListFromWorkflowFind provides a mock function with given fields: _a0
func (*Store) StepUpdate ¶
StepUpdate provides a mock function with given fields: _a0
func (*Store) TaskDelete ¶
TaskDelete provides a mock function with given fields: _a0
func (*Store) TaskInsert ¶
TaskInsert provides a mock function with given fields: _a0
func (*Store) UpdatePipeline ¶
UpdatePipeline provides a mock function with given fields: _a0
func (*Store) UpdateRepo ¶
UpdateRepo provides a mock function with given fields: _a0
func (*Store) UpdateUser ¶
UpdateUser provides a mock function with given fields: _a0
func (*Store) WorkflowGetTree ¶
WorkflowGetTree provides a mock function with given fields: _a0
func (*Store) WorkflowLoad ¶
WorkflowLoad provides a mock function with given fields: _a0
func (*Store) WorkflowUpdate ¶
WorkflowUpdate provides a mock function with given fields: _a0