mocks

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 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 mockConstructorTestingTNewStore) *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.

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

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) (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

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) (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

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) 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

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) DeleteOrganizationPool

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

DeleteOrganizationPool provides a mock function with given fields: ctx, orgID, poolID

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) DeleteRepositoryPool

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

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

func (_m *Store) GetEnterprise(ctx context.Context, name string) (params.Enterprise, error)

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

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) (params.Organization, error)

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

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) (params.Repository, error)

GetRepository provides a mock function with given fields: ctx, owner, name

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) 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) 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) 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

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

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

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

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

func (*Store) ListOrgPools

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

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

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) ListRepoInstances

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

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

func (*Store) ListRepoPools

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

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

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) 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

func (*Store) UpdateRepositoryPool

func (_m *Store) UpdateRepositoryPool(ctx context.Context, repoID string, poolID string, param params.UpdatePoolParams) (params.Pool, error)

UpdateRepositoryPool provides a mock function with given fields: ctx, repoID, poolID, 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