Documentation ¶
Index ¶
- type Store
- func (_m *Store) AddInstanceEvent(ctx context.Context, instanceName 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) CreateEntityPool(ctx context.Context, entity params.GithubEntity, param params.CreatePoolParams) (params.Pool, error)
- func (_m *Store) CreateGithubCredentials(ctx context.Context, param params.CreateGithubCredentialsParams) (params.GithubCredentials, error)
- func (_m *Store) CreateGithubEndpoint(ctx context.Context, param params.CreateGithubEndpointParams) (params.GithubEndpoint, 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) CreateRepository(ctx context.Context, owner string, name string, credentialsName string, ...) (params.Repository, 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) DeleteEntityPool(ctx context.Context, entity params.GithubEntity, poolID string) error
- func (_m *Store) DeleteGithubCredentials(ctx context.Context, id uint) error
- func (_m *Store) DeleteGithubEndpoint(ctx context.Context, name 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) DeletePoolByID(ctx context.Context, poolID string) error
- func (_m *Store) DeleteRepository(ctx context.Context, repoID string) error
- func (_m *Store) FindPoolsMatchingAllTags(ctx context.Context, entityType params.GithubEntityType, entityID string, ...) ([]params.Pool, error)
- func (_m *Store) GetAdminUser(ctx context.Context) (params.User, error)
- func (_m *Store) GetEnterprise(ctx context.Context, name string, endpointName string) (params.Enterprise, error)
- func (_m *Store) GetEnterpriseByID(ctx context.Context, enterpriseID string) (params.Enterprise, error)
- func (_m *Store) GetEntityPool(ctx context.Context, entity params.GithubEntity, poolID string) (params.Pool, error)
- func (_m *Store) GetGithubCredentials(ctx context.Context, id uint, detailed bool) (params.GithubCredentials, error)
- func (_m *Store) GetGithubCredentialsByName(ctx context.Context, name string, detailed bool) (params.GithubCredentials, error)
- func (_m *Store) GetGithubEndpoint(ctx context.Context, name string) (params.GithubEndpoint, 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, endpointName string) (params.Organization, error)
- func (_m *Store) GetOrganizationByID(ctx context.Context, orgID string) (params.Organization, 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, endpointName string) (params.Repository, error)
- func (_m *Store) GetRepositoryByID(ctx context.Context, repoID string) (params.Repository, 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) ListEnterprises(ctx context.Context) ([]params.Enterprise, error)
- func (_m *Store) ListEntityInstances(ctx context.Context, entity params.GithubEntity) ([]params.Instance, error)
- func (_m *Store) ListEntityJobsByStatus(ctx context.Context, entityType params.GithubEntityType, entityID string, ...) ([]params.Job, error)
- func (_m *Store) ListEntityPools(ctx context.Context, entity params.GithubEntity) ([]params.Pool, error)
- func (_m *Store) ListGithubCredentials(ctx context.Context) ([]params.GithubCredentials, error)
- func (_m *Store) ListGithubEndpoints(ctx context.Context) ([]params.GithubEndpoint, error)
- func (_m *Store) ListJobsByStatus(ctx context.Context, status params.JobStatus) ([]params.Job, 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) 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) UpdateController(info params.UpdateControllerParams) (params.ControllerInfo, error)
- func (_m *Store) UpdateEnterprise(ctx context.Context, enterpriseID string, param params.UpdateEntityParams) (params.Enterprise, error)
- func (_m *Store) UpdateEntityPool(ctx context.Context, entity params.GithubEntity, poolID string, ...) (params.Pool, error)
- func (_m *Store) UpdateGithubCredentials(ctx context.Context, id uint, param params.UpdateGithubCredentialsParams) (params.GithubCredentials, error)
- func (_m *Store) UpdateGithubEndpoint(ctx context.Context, name string, param params.UpdateGithubEndpointParams) (params.GithubEndpoint, error)
- func (_m *Store) UpdateInstance(ctx context.Context, instanceName 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) UpdateRepository(ctx context.Context, repoID string, param params.UpdateEntityParams) (params.Repository, 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, instanceName string, event params.EventType, eventLevel params.EventLevel, eventMessage string) error
AddInstanceEvent provides a mock function with given fields: ctx, instanceName, 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, poolBalancerType params.PoolBalancerType) (params.Enterprise, error)
CreateEnterprise provides a mock function with given fields: ctx, name, credentialsName, webhookSecret, poolBalancerType
func (*Store) CreateEntityPool ¶ added in v0.1.5
func (_m *Store) CreateEntityPool(ctx context.Context, entity params.GithubEntity, param params.CreatePoolParams) (params.Pool, error)
CreateEntityPool provides a mock function with given fields: ctx, entity, param
func (*Store) CreateGithubCredentials ¶ added in v0.1.5
func (_m *Store) CreateGithubCredentials(ctx context.Context, param params.CreateGithubCredentialsParams) (params.GithubCredentials, error)
CreateGithubCredentials provides a mock function with given fields: ctx, param
func (*Store) CreateGithubEndpoint ¶ added in v0.1.5
func (_m *Store) CreateGithubEndpoint(ctx context.Context, param params.CreateGithubEndpointParams) (params.GithubEndpoint, error)
CreateGithubEndpoint provides a mock function with given fields: ctx, 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, poolBalancerType params.PoolBalancerType) (params.Organization, error)
CreateOrganization provides a mock function with given fields: ctx, name, credentialsName, webhookSecret, poolBalancerType
func (*Store) CreateRepository ¶
func (_m *Store) CreateRepository(ctx context.Context, owner string, name string, credentialsName string, webhookSecret string, poolBalancerType params.PoolBalancerType) (params.Repository, error)
CreateRepository provides a mock function with given fields: ctx, owner, name, credentialsName, webhookSecret, poolBalancerType
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) DeleteEntityPool ¶ added in v0.1.5
func (_m *Store) DeleteEntityPool(ctx context.Context, entity params.GithubEntity, poolID string) error
DeleteEntityPool provides a mock function with given fields: ctx, entity, poolID
func (*Store) DeleteGithubCredentials ¶ added in v0.1.5
DeleteGithubCredentials provides a mock function with given fields: ctx, id
func (*Store) DeleteGithubEndpoint ¶ added in v0.1.5
DeleteGithubEndpoint provides a mock function with given fields: ctx, name
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) 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) FindPoolsMatchingAllTags ¶ added in v0.1.2
func (_m *Store) FindPoolsMatchingAllTags(ctx context.Context, entityType params.GithubEntityType, entityID string, tags []string) ([]params.Pool, error)
FindPoolsMatchingAllTags provides a mock function with given fields: ctx, entityType, entityID, tags
func (*Store) GetAdminUser ¶ added in v0.1.5
GetAdminUser provides a mock function with given fields: ctx
func (*Store) GetEnterprise ¶
func (_m *Store) GetEnterprise(ctx context.Context, name string, endpointName string) (params.Enterprise, error)
GetEnterprise provides a mock function with given fields: ctx, name, endpointName
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) GetEntityPool ¶ added in v0.1.5
func (_m *Store) GetEntityPool(ctx context.Context, entity params.GithubEntity, poolID string) (params.Pool, error)
GetEntityPool provides a mock function with given fields: ctx, entity, poolID
func (*Store) GetGithubCredentials ¶ added in v0.1.5
func (_m *Store) GetGithubCredentials(ctx context.Context, id uint, detailed bool) (params.GithubCredentials, error)
GetGithubCredentials provides a mock function with given fields: ctx, id, detailed
func (*Store) GetGithubCredentialsByName ¶ added in v0.1.5
func (_m *Store) GetGithubCredentialsByName(ctx context.Context, name string, detailed bool) (params.GithubCredentials, error)
GetGithubCredentialsByName provides a mock function with given fields: ctx, name, detailed
func (*Store) GetGithubEndpoint ¶ added in v0.1.5
GetGithubEndpoint provides a mock function with given fields: ctx, name
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 ¶
func (_m *Store) GetOrganization(ctx context.Context, name string, endpointName string) (params.Organization, error)
GetOrganization provides a mock function with given fields: ctx, name, endpointName
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) 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, endpointName string) (params.Repository, error)
GetRepository provides a mock function with given fields: ctx, owner, name, endpointName
func (*Store) GetRepositoryByID ¶
GetRepositoryByID provides a mock function with given fields: ctx, repoID
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) ListEnterprises ¶
ListEnterprises provides a mock function with given fields: ctx
func (*Store) ListEntityInstances ¶ added in v0.1.5
func (_m *Store) ListEntityInstances(ctx context.Context, entity params.GithubEntity) ([]params.Instance, error)
ListEntityInstances provides a mock function with given fields: ctx, entity
func (*Store) ListEntityJobsByStatus ¶ added in v0.1.2
func (_m *Store) ListEntityJobsByStatus(ctx context.Context, entityType params.GithubEntityType, entityID string, status params.JobStatus) ([]params.Job, error)
ListEntityJobsByStatus provides a mock function with given fields: ctx, entityType, entityID, status
func (*Store) ListEntityPools ¶ added in v0.1.5
func (_m *Store) ListEntityPools(ctx context.Context, entity params.GithubEntity) ([]params.Pool, error)
ListEntityPools provides a mock function with given fields: ctx, entity
func (*Store) ListGithubCredentials ¶ added in v0.1.5
ListGithubCredentials provides a mock function with given fields: ctx
func (*Store) ListGithubEndpoints ¶ added in v0.1.5
ListGithubEndpoints provides a mock function with given fields: ctx
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) 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) 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) UpdateController ¶ added in v0.1.5
func (_m *Store) UpdateController(info params.UpdateControllerParams) (params.ControllerInfo, error)
UpdateController provides a mock function with given fields: info
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) UpdateEntityPool ¶ added in v0.1.5
func (_m *Store) UpdateEntityPool(ctx context.Context, entity params.GithubEntity, poolID string, param params.UpdatePoolParams) (params.Pool, error)
UpdateEntityPool provides a mock function with given fields: ctx, entity, poolID, param
func (*Store) UpdateGithubCredentials ¶ added in v0.1.5
func (_m *Store) UpdateGithubCredentials(ctx context.Context, id uint, param params.UpdateGithubCredentialsParams) (params.GithubCredentials, error)
UpdateGithubCredentials provides a mock function with given fields: ctx, id, param
func (*Store) UpdateGithubEndpoint ¶ added in v0.1.5
func (_m *Store) UpdateGithubEndpoint(ctx context.Context, name string, param params.UpdateGithubEndpointParams) (params.GithubEndpoint, error)
UpdateGithubEndpoint provides a mock function with given fields: ctx, name, param
func (*Store) UpdateInstance ¶
func (_m *Store) UpdateInstance(ctx context.Context, instanceName string, param params.UpdateInstanceParams) (params.Instance, error)
UpdateInstance provides a mock function with given fields: ctx, instanceName, 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) 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