mocks

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 3 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) 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

func (_m *Store) BreakLockJobIsQueued(ctx context.Context, jobID int64) error

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

func (_m *Store) CreateOrUpdateJob(ctx context.Context, job params.Job) (params.Job, error)

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

func (_m *Store) CreateUser(ctx context.Context, user params.NewUserParams) (params.User, error)

CreateUser provides a mock function with given fields: ctx, user

func (*Store) DeleteCompletedJobs added in v0.1.2

func (_m *Store) DeleteCompletedJobs(ctx context.Context) error

DeleteCompletedJobs provides a mock function with given fields: ctx

func (*Store) DeleteEnterprise

func (_m *Store) DeleteEnterprise(ctx context.Context, enterpriseID string) error

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

func (_m *Store) DeleteGithubCredentials(ctx context.Context, id uint) error

DeleteGithubCredentials provides a mock function with given fields: ctx, id

func (*Store) DeleteGithubEndpoint added in v0.1.5

func (_m *Store) DeleteGithubEndpoint(ctx context.Context, name string) error

DeleteGithubEndpoint provides a mock function with given fields: ctx, name

func (*Store) DeleteInstance

func (_m *Store) DeleteInstance(ctx context.Context, poolID string, instanceName string) error

DeleteInstance provides a mock function with given fields: ctx, poolID, instanceName

func (*Store) DeleteJob added in v0.1.2

func (_m *Store) DeleteJob(ctx context.Context, jobID int64) error

DeleteJob provides a mock function with given fields: ctx, jobID

func (*Store) DeleteOrganization

func (_m *Store) DeleteOrganization(ctx context.Context, orgID string) error

DeleteOrganization provides a mock function with given fields: ctx, orgID

func (*Store) DeletePoolByID

func (_m *Store) DeletePoolByID(ctx context.Context, poolID string) error

DeletePoolByID provides a mock function with given fields: ctx, poolID

func (*Store) DeleteRepository

func (_m *Store) DeleteRepository(ctx context.Context, repoID string) error

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

func (_m *Store) GetAdminUser(ctx context.Context) (params.User, error)

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

func (_m *Store) GetGithubEndpoint(ctx context.Context, name string) (params.GithubEndpoint, error)

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

func (_m *Store) GetJobByID(ctx context.Context, jobID int64) (params.Job, error)

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

func (_m *Store) GetPoolByID(ctx context.Context, poolID string) (params.Pool, error)

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

func (_m *Store) GetRepositoryByID(ctx context.Context, repoID string) (params.Repository, error)

GetRepositoryByID provides a mock function with given fields: ctx, repoID

func (*Store) GetUser

func (_m *Store) GetUser(ctx context.Context, user string) (params.User, error)

GetUser provides a mock function with given fields: ctx, user

func (*Store) GetUserByID

func (_m *Store) GetUserByID(ctx context.Context, userID string) (params.User, error)

GetUserByID provides a mock function with given fields: ctx, userID

func (*Store) HasAdminUser

func (_m *Store) HasAdminUser(ctx context.Context) bool

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

func (_m *Store) ListAllInstances(ctx context.Context) ([]params.Instance, error)

ListAllInstances provides a mock function with given fields: ctx

func (*Store) ListAllJobs added in v0.1.2

func (_m *Store) ListAllJobs(ctx context.Context) ([]params.Job, error)

ListAllJobs provides a mock function with given fields: ctx

func (*Store) ListAllPools

func (_m *Store) ListAllPools(ctx context.Context) ([]params.Pool, error)

ListAllPools provides a mock function with given fields: ctx

func (*Store) ListEnterprises

func (_m *Store) ListEnterprises(ctx context.Context) ([]params.Enterprise, error)

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

func (_m *Store) ListGithubCredentials(ctx context.Context) ([]params.GithubCredentials, error)

ListGithubCredentials provides a mock function with given fields: ctx

func (*Store) ListGithubEndpoints added in v0.1.5

func (_m *Store) ListGithubEndpoints(ctx context.Context) ([]params.GithubEndpoint, error)

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

func (_m *Store) ListOrganizations(ctx context.Context) ([]params.Organization, error)

ListOrganizations provides a mock function with given fields: ctx

func (*Store) ListPoolInstances

func (_m *Store) ListPoolInstances(ctx context.Context, poolID string) ([]params.Instance, error)

ListPoolInstances provides a mock function with given fields: ctx, poolID

func (*Store) ListRepositories

func (_m *Store) ListRepositories(ctx context.Context) ([]params.Repository, error)

ListRepositories provides a mock function with given fields: ctx

func (*Store) LockJob added in v0.1.2

func (_m *Store) LockJob(ctx context.Context, jobID int64, entityID string) error

LockJob provides a mock function with given fields: ctx, jobID, entityID

func (*Store) PoolInstanceCount

func (_m *Store) PoolInstanceCount(ctx context.Context, poolID string) (int64, error)

PoolInstanceCount provides a mock function with given fields: ctx, poolID

func (*Store) UnlockJob added in v0.1.2

func (_m *Store) UnlockJob(ctx context.Context, jobID int64, entityID string) error

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

func (*Store) UpdateUser

func (_m *Store) UpdateUser(ctx context.Context, user string, param params.UpdateUserParams) (params.User, error)

UpdateUser provides a mock function with given fields: ctx, user, param

Jump to

Keyboard shortcuts

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