Documentation ¶
Index ¶
- type Store
- func (_m *Store) AddInstanceEvent(ctx context.Context, instanceID string, event params.EventType, ...) error
- func (_m *Store) BreakLockJobIsQueued(ctx context.Context, jobID int64) error
- func (_m *Store) ControllerInfo() (params.ControllerInfo, error)
- func (_m *Store) CreateEnterprise(ctx context.Context, name string, credentialsName string, webhookSecret string) (params.Enterprise, error)
- func (_m *Store) CreateEnterprisePool(ctx context.Context, enterpriseID string, param params.CreatePoolParams) (params.Pool, error)
- func (_m *Store) CreateInstance(ctx context.Context, poolID string, param params.CreateInstanceParams) (params.Instance, error)
- func (_m *Store) CreateOrUpdateJob(ctx context.Context, job params.Job) (params.Job, error)
- func (_m *Store) CreateOrganization(ctx context.Context, name string, credentialsName string, webhookSecret string) (params.Organization, error)
- func (_m *Store) CreateOrganizationPool(ctx context.Context, orgId string, param params.CreatePoolParams) (params.Pool, error)
- func (_m *Store) CreateRepository(ctx context.Context, owner string, name string, credentialsName string, ...) (params.Repository, error)
- func (_m *Store) CreateRepositoryPool(ctx context.Context, repoId string, param params.CreatePoolParams) (params.Pool, error)
- func (_m *Store) CreateUser(ctx context.Context, user params.NewUserParams) (params.User, error)
- func (_m *Store) DeleteCompletedJobs(ctx context.Context) error
- func (_m *Store) DeleteEnterprise(ctx context.Context, enterpriseID string) error
- func (_m *Store) DeleteEnterprisePool(ctx context.Context, enterpriseID string, poolID string) error
- func (_m *Store) DeleteInstance(ctx context.Context, poolID string, instanceName string) error
- func (_m *Store) DeleteJob(ctx context.Context, jobID int64) error
- func (_m *Store) DeleteOrganization(ctx context.Context, orgID string) error
- func (_m *Store) DeleteOrganizationPool(ctx context.Context, orgID string, poolID string) error
- func (_m *Store) DeletePoolByID(ctx context.Context, poolID string) error
- func (_m *Store) DeleteRepository(ctx context.Context, repoID string) error
- func (_m *Store) DeleteRepositoryPool(ctx context.Context, repoID string, poolID string) error
- func (_m *Store) FindEnterprisePoolByTags(ctx context.Context, enterpriseID string, tags []string) (params.Pool, error)
- func (_m *Store) FindOrganizationPoolByTags(ctx context.Context, orgID string, tags []string) (params.Pool, error)
- func (_m *Store) FindPoolsMatchingAllTags(ctx context.Context, entityType params.PoolType, entityID string, ...) ([]params.Pool, error)
- func (_m *Store) FindRepositoryPoolByTags(ctx context.Context, repoID string, tags []string) (params.Pool, error)
- func (_m *Store) GetEnterprise(ctx context.Context, name string) (params.Enterprise, error)
- func (_m *Store) GetEnterpriseByID(ctx context.Context, enterpriseID string) (params.Enterprise, error)
- func (_m *Store) GetEnterprisePool(ctx context.Context, enterpriseID string, poolID string) (params.Pool, error)
- func (_m *Store) GetInstanceByName(ctx context.Context, instanceName string) (params.Instance, error)
- func (_m *Store) GetJobByID(ctx context.Context, jobID int64) (params.Job, error)
- func (_m *Store) GetOrganization(ctx context.Context, name string) (params.Organization, error)
- func (_m *Store) GetOrganizationByID(ctx context.Context, orgID string) (params.Organization, error)
- func (_m *Store) GetOrganizationPool(ctx context.Context, orgID string, poolID string) (params.Pool, error)
- func (_m *Store) GetPoolByID(ctx context.Context, poolID string) (params.Pool, error)
- func (_m *Store) GetPoolInstanceByName(ctx context.Context, poolID string, instanceName string) (params.Instance, error)
- func (_m *Store) GetRepository(ctx context.Context, owner string, name string) (params.Repository, error)
- func (_m *Store) GetRepositoryByID(ctx context.Context, repoID string) (params.Repository, error)
- func (_m *Store) GetRepositoryPool(ctx context.Context, repoID string, poolID string) (params.Pool, error)
- func (_m *Store) GetUser(ctx context.Context, user string) (params.User, error)
- func (_m *Store) GetUserByID(ctx context.Context, userID string) (params.User, error)
- func (_m *Store) HasAdminUser(ctx context.Context) bool
- func (_m *Store) InitController() (params.ControllerInfo, error)
- func (_m *Store) ListAllInstances(ctx context.Context) ([]params.Instance, error)
- func (_m *Store) ListAllJobs(ctx context.Context) ([]params.Job, error)
- func (_m *Store) ListAllPools(ctx context.Context) ([]params.Pool, error)
- func (_m *Store) ListEnterpriseInstances(ctx context.Context, enterpriseID string) ([]params.Instance, error)
- func (_m *Store) ListEnterprisePools(ctx context.Context, enterpriseID string) ([]params.Pool, error)
- func (_m *Store) ListEnterprises(ctx context.Context) ([]params.Enterprise, error)
- func (_m *Store) ListEntityJobsByStatus(ctx context.Context, entityType params.PoolType, entityID string, ...) ([]params.Job, error)
- func (_m *Store) ListInstanceEvents(ctx context.Context, instanceID string, eventType params.EventType, ...) ([]params.StatusMessage, error)
- func (_m *Store) ListJobsByStatus(ctx context.Context, status params.JobStatus) ([]params.Job, error)
- func (_m *Store) ListOrgInstances(ctx context.Context, orgID string) ([]params.Instance, error)
- func (_m *Store) ListOrgPools(ctx context.Context, orgID string) ([]params.Pool, error)
- func (_m *Store) ListOrganizations(ctx context.Context) ([]params.Organization, error)
- func (_m *Store) ListPoolInstances(ctx context.Context, poolID string) ([]params.Instance, error)
- func (_m *Store) ListRepoInstances(ctx context.Context, repoID string) ([]params.Instance, error)
- func (_m *Store) ListRepoPools(ctx context.Context, repoID string) ([]params.Pool, error)
- func (_m *Store) ListRepositories(ctx context.Context) ([]params.Repository, error)
- func (_m *Store) LockJob(ctx context.Context, jobID int64, entityID string) error
- func (_m *Store) PoolInstanceCount(ctx context.Context, poolID string) (int64, error)
- func (_m *Store) UnlockJob(ctx context.Context, jobID int64, entityID string) error
- func (_m *Store) UpdateEnterprise(ctx context.Context, enterpriseID string, param params.UpdateEntityParams) (params.Enterprise, error)
- func (_m *Store) UpdateEnterprisePool(ctx context.Context, enterpriseID string, poolID string, ...) (params.Pool, error)
- func (_m *Store) UpdateInstance(ctx context.Context, instanceID string, param params.UpdateInstanceParams) (params.Instance, error)
- func (_m *Store) UpdateOrganization(ctx context.Context, orgID string, param params.UpdateEntityParams) (params.Organization, error)
- func (_m *Store) UpdateOrganizationPool(ctx context.Context, orgID string, poolID string, ...) (params.Pool, error)
- func (_m *Store) UpdateRepository(ctx context.Context, repoID string, param params.UpdateEntityParams) (params.Repository, error)
- func (_m *Store) UpdateRepositoryPool(ctx context.Context, repoID string, poolID string, ...) (params.Pool, error)
- func (_m *Store) UpdateUser(ctx context.Context, user string, param params.UpdateUserParams) (params.User, 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) AddInstanceEvent ¶
func (_m *Store) AddInstanceEvent(ctx context.Context, instanceID string, event params.EventType, eventLevel params.EventLevel, eventMessage string) error
AddInstanceEvent provides a mock function with given fields: ctx, instanceID, event, eventLevel, eventMessage
func (*Store) BreakLockJobIsQueued ¶ added in v0.1.2
BreakLockJobIsQueued provides a mock function with given fields: ctx, jobID
func (*Store) ControllerInfo ¶
func (_m *Store) ControllerInfo() (params.ControllerInfo, error)
ControllerInfo provides a mock function with given fields:
func (*Store) CreateEnterprise ¶
func (_m *Store) CreateEnterprise(ctx context.Context, name string, credentialsName string, webhookSecret string) (params.Enterprise, error)
CreateEnterprise provides a mock function with given fields: ctx, name, credentialsName, webhookSecret
func (*Store) CreateEnterprisePool ¶
func (_m *Store) CreateEnterprisePool(ctx context.Context, enterpriseID string, param params.CreatePoolParams) (params.Pool, error)
CreateEnterprisePool provides a mock function with given fields: ctx, enterpriseID, param
func (*Store) CreateInstance ¶
func (_m *Store) CreateInstance(ctx context.Context, poolID string, param params.CreateInstanceParams) (params.Instance, error)
CreateInstance provides a mock function with given fields: ctx, poolID, param
func (*Store) CreateOrUpdateJob ¶ added in v0.1.2
CreateOrUpdateJob provides a mock function with given fields: ctx, job
func (*Store) CreateOrganization ¶
func (_m *Store) CreateOrganization(ctx context.Context, name string, credentialsName string, webhookSecret string) (params.Organization, error)
CreateOrganization provides a mock function with given fields: ctx, name, credentialsName, webhookSecret
func (*Store) CreateOrganizationPool ¶
func (_m *Store) CreateOrganizationPool(ctx context.Context, orgId string, param params.CreatePoolParams) (params.Pool, error)
CreateOrganizationPool provides a mock function with given fields: ctx, orgId, param
func (*Store) CreateRepository ¶
func (_m *Store) CreateRepository(ctx context.Context, owner string, name string, credentialsName string, webhookSecret string) (params.Repository, error)
CreateRepository provides a mock function with given fields: ctx, owner, name, credentialsName, webhookSecret
func (*Store) CreateRepositoryPool ¶
func (_m *Store) CreateRepositoryPool(ctx context.Context, repoId string, param params.CreatePoolParams) (params.Pool, error)
CreateRepositoryPool provides a mock function with given fields: ctx, repoId, param
func (*Store) CreateUser ¶
CreateUser provides a mock function with given fields: ctx, user
func (*Store) DeleteCompletedJobs ¶ added in v0.1.2
DeleteCompletedJobs provides a mock function with given fields: ctx
func (*Store) DeleteEnterprise ¶
DeleteEnterprise provides a mock function with given fields: ctx, enterpriseID
func (*Store) DeleteEnterprisePool ¶
func (_m *Store) DeleteEnterprisePool(ctx context.Context, enterpriseID string, poolID string) error
DeleteEnterprisePool provides a mock function with given fields: ctx, enterpriseID, poolID
func (*Store) DeleteInstance ¶
DeleteInstance provides a mock function with given fields: ctx, poolID, instanceName
func (*Store) DeleteJob ¶ added in v0.1.2
DeleteJob provides a mock function with given fields: ctx, jobID
func (*Store) DeleteOrganization ¶
DeleteOrganization provides a mock function with given fields: ctx, orgID
func (*Store) DeleteOrganizationPool ¶
DeleteOrganizationPool provides a mock function with given fields: ctx, orgID, poolID
func (*Store) DeletePoolByID ¶
DeletePoolByID provides a mock function with given fields: ctx, poolID
func (*Store) DeleteRepository ¶
DeleteRepository provides a mock function with given fields: ctx, repoID
func (*Store) DeleteRepositoryPool ¶
DeleteRepositoryPool provides a mock function with given fields: ctx, repoID, poolID
func (*Store) FindEnterprisePoolByTags ¶
func (_m *Store) FindEnterprisePoolByTags(ctx context.Context, enterpriseID string, tags []string) (params.Pool, error)
FindEnterprisePoolByTags provides a mock function with given fields: ctx, enterpriseID, tags
func (*Store) FindOrganizationPoolByTags ¶
func (_m *Store) FindOrganizationPoolByTags(ctx context.Context, orgID string, tags []string) (params.Pool, error)
FindOrganizationPoolByTags provides a mock function with given fields: ctx, orgID, tags
func (*Store) FindPoolsMatchingAllTags ¶ added in v0.1.2
func (_m *Store) FindPoolsMatchingAllTags(ctx context.Context, entityType params.PoolType, entityID string, tags []string) ([]params.Pool, error)
FindPoolsMatchingAllTags provides a mock function with given fields: ctx, entityType, entityID, tags
func (*Store) FindRepositoryPoolByTags ¶
func (_m *Store) FindRepositoryPoolByTags(ctx context.Context, repoID string, tags []string) (params.Pool, error)
FindRepositoryPoolByTags provides a mock function with given fields: ctx, repoID, tags
func (*Store) GetEnterprise ¶
GetEnterprise provides a mock function with given fields: ctx, name
func (*Store) GetEnterpriseByID ¶
func (_m *Store) GetEnterpriseByID(ctx context.Context, enterpriseID string) (params.Enterprise, error)
GetEnterpriseByID provides a mock function with given fields: ctx, enterpriseID
func (*Store) GetEnterprisePool ¶
func (_m *Store) GetEnterprisePool(ctx context.Context, enterpriseID string, poolID string) (params.Pool, error)
GetEnterprisePool provides a mock function with given fields: ctx, enterpriseID, poolID
func (*Store) GetInstanceByName ¶
func (_m *Store) GetInstanceByName(ctx context.Context, instanceName string) (params.Instance, error)
GetInstanceByName provides a mock function with given fields: ctx, instanceName
func (*Store) GetJobByID ¶ added in v0.1.2
GetJobByID provides a mock function with given fields: ctx, jobID
func (*Store) GetOrganization ¶
GetOrganization provides a mock function with given fields: ctx, name
func (*Store) GetOrganizationByID ¶
func (_m *Store) GetOrganizationByID(ctx context.Context, orgID string) (params.Organization, error)
GetOrganizationByID provides a mock function with given fields: ctx, orgID
func (*Store) GetOrganizationPool ¶
func (_m *Store) GetOrganizationPool(ctx context.Context, orgID string, poolID string) (params.Pool, error)
GetOrganizationPool provides a mock function with given fields: ctx, orgID, poolID
func (*Store) GetPoolByID ¶
GetPoolByID provides a mock function with given fields: ctx, poolID
func (*Store) GetPoolInstanceByName ¶
func (_m *Store) GetPoolInstanceByName(ctx context.Context, poolID string, instanceName string) (params.Instance, error)
GetPoolInstanceByName provides a mock function with given fields: ctx, poolID, instanceName
func (*Store) GetRepository ¶
func (_m *Store) GetRepository(ctx context.Context, owner string, name string) (params.Repository, error)
GetRepository provides a mock function with given fields: ctx, owner, name
func (*Store) GetRepositoryByID ¶
GetRepositoryByID provides a mock function with given fields: ctx, repoID
func (*Store) GetRepositoryPool ¶
func (_m *Store) GetRepositoryPool(ctx context.Context, repoID string, poolID string) (params.Pool, error)
GetRepositoryPool provides a mock function with given fields: ctx, repoID, poolID
func (*Store) GetUserByID ¶
GetUserByID provides a mock function with given fields: ctx, userID
func (*Store) HasAdminUser ¶
HasAdminUser provides a mock function with given fields: ctx
func (*Store) InitController ¶
func (_m *Store) InitController() (params.ControllerInfo, error)
InitController provides a mock function with given fields:
func (*Store) ListAllInstances ¶
ListAllInstances provides a mock function with given fields: ctx
func (*Store) ListAllJobs ¶ added in v0.1.2
ListAllJobs provides a mock function with given fields: ctx
func (*Store) ListAllPools ¶
ListAllPools provides a mock function with given fields: ctx
func (*Store) ListEnterpriseInstances ¶
func (_m *Store) ListEnterpriseInstances(ctx context.Context, enterpriseID string) ([]params.Instance, error)
ListEnterpriseInstances provides a mock function with given fields: ctx, enterpriseID
func (*Store) ListEnterprisePools ¶
func (_m *Store) ListEnterprisePools(ctx context.Context, enterpriseID string) ([]params.Pool, error)
ListEnterprisePools provides a mock function with given fields: ctx, enterpriseID
func (*Store) ListEnterprises ¶
ListEnterprises provides a mock function with given fields: ctx
func (*Store) ListEntityJobsByStatus ¶ added in v0.1.2
func (_m *Store) ListEntityJobsByStatus(ctx context.Context, entityType params.PoolType, entityID string, status params.JobStatus) ([]params.Job, error)
ListEntityJobsByStatus provides a mock function with given fields: ctx, entityType, entityID, status
func (*Store) ListInstanceEvents ¶
func (_m *Store) ListInstanceEvents(ctx context.Context, instanceID string, eventType params.EventType, eventLevel params.EventLevel) ([]params.StatusMessage, error)
ListInstanceEvents provides a mock function with given fields: ctx, instanceID, eventType, eventLevel
func (*Store) ListJobsByStatus ¶ added in v0.1.2
func (_m *Store) ListJobsByStatus(ctx context.Context, status params.JobStatus) ([]params.Job, error)
ListJobsByStatus provides a mock function with given fields: ctx, status
func (*Store) ListOrgInstances ¶
ListOrgInstances provides a mock function with given fields: ctx, orgID
func (*Store) ListOrgPools ¶
ListOrgPools provides a mock function with given fields: ctx, orgID
func (*Store) ListOrganizations ¶
ListOrganizations provides a mock function with given fields: ctx
func (*Store) ListPoolInstances ¶
ListPoolInstances provides a mock function with given fields: ctx, poolID
func (*Store) ListRepoInstances ¶
ListRepoInstances provides a mock function with given fields: ctx, repoID
func (*Store) ListRepoPools ¶
ListRepoPools provides a mock function with given fields: ctx, repoID
func (*Store) ListRepositories ¶
ListRepositories provides a mock function with given fields: ctx
func (*Store) LockJob ¶ added in v0.1.2
LockJob provides a mock function with given fields: ctx, jobID, entityID
func (*Store) PoolInstanceCount ¶
PoolInstanceCount provides a mock function with given fields: ctx, poolID
func (*Store) UnlockJob ¶ added in v0.1.2
UnlockJob provides a mock function with given fields: ctx, jobID, entityID
func (*Store) UpdateEnterprise ¶
func (_m *Store) UpdateEnterprise(ctx context.Context, enterpriseID string, param params.UpdateEntityParams) (params.Enterprise, error)
UpdateEnterprise provides a mock function with given fields: ctx, enterpriseID, param
func (*Store) UpdateEnterprisePool ¶
func (_m *Store) UpdateEnterprisePool(ctx context.Context, enterpriseID string, poolID string, param params.UpdatePoolParams) (params.Pool, error)
UpdateEnterprisePool provides a mock function with given fields: ctx, enterpriseID, poolID, param
func (*Store) UpdateInstance ¶
func (_m *Store) UpdateInstance(ctx context.Context, instanceID string, param params.UpdateInstanceParams) (params.Instance, error)
UpdateInstance provides a mock function with given fields: ctx, instanceID, param
func (*Store) UpdateOrganization ¶
func (_m *Store) UpdateOrganization(ctx context.Context, orgID string, param params.UpdateEntityParams) (params.Organization, error)
UpdateOrganization provides a mock function with given fields: ctx, orgID, param
func (*Store) UpdateOrganizationPool ¶
func (_m *Store) UpdateOrganizationPool(ctx context.Context, orgID string, poolID string, param params.UpdatePoolParams) (params.Pool, error)
UpdateOrganizationPool provides a mock function with given fields: ctx, orgID, poolID, param
func (*Store) UpdateRepository ¶
func (_m *Store) UpdateRepository(ctx context.Context, repoID string, param params.UpdateEntityParams) (params.Repository, error)
UpdateRepository provides a mock function with given fields: ctx, repoID, param