Documentation
¶
Index ¶
- type GithubClient
- func (_m *GithubClient) CreateEntityHook(ctx context.Context, hook *github.Hook) (*github.Hook, error)
- func (_m *GithubClient) CreateEntityRegistrationToken(ctx context.Context) (*github.RegistrationToken, *github.Response, error)
- func (_m *GithubClient) DeleteEntityHook(ctx context.Context, id int64) (*github.Response, error)
- func (_m *GithubClient) EXPECT() *GithubClient_Expecter
- func (_m *GithubClient) GetEntity() params.ForgeEntity
- func (_m *GithubClient) GetEntityHook(ctx context.Context, id int64) (*github.Hook, error)
- func (_m *GithubClient) GetEntityJITConfig(ctx context.Context, instance string, pool params.Pool, labels []string) (map[string]string, *github.Runner, error)
- func (_m *GithubClient) GetEntityRunnerGroupIDByName(ctx context.Context, runnerGroupName string) (int64, error)
- func (_m *GithubClient) GetWorkflowJobByID(ctx context.Context, owner string, repo string, jobID int64) (*github.WorkflowJob, *github.Response, error)
- func (_m *GithubClient) GithubBaseURL() *url.URL
- func (_m *GithubClient) ListEntityHooks(ctx context.Context, opts *github.ListOptions) ([]*github.Hook, *github.Response, error)
- func (_m *GithubClient) ListEntityRunnerApplicationDownloads(ctx context.Context) ([]*github.RunnerApplicationDownload, *github.Response, error)
- func (_m *GithubClient) ListEntityRunners(ctx context.Context, opts *github.ListRunnersOptions) (*github.Runners, *github.Response, error)
- func (_m *GithubClient) PingEntityHook(ctx context.Context, id int64) (*github.Response, error)
- func (_m *GithubClient) RateLimit(ctx context.Context) (*github.RateLimits, error)
- func (_m *GithubClient) RemoveEntityRunner(ctx context.Context, runnerID int64) error
- type GithubClient_CreateEntityHook_Call
- func (_c *GithubClient_CreateEntityHook_Call) Return(ret *github.Hook, err error) *GithubClient_CreateEntityHook_Call
- func (_c *GithubClient_CreateEntityHook_Call) Run(run func(ctx context.Context, hook *github.Hook)) *GithubClient_CreateEntityHook_Call
- func (_c *GithubClient_CreateEntityHook_Call) RunAndReturn(run func(context.Context, *github.Hook) (*github.Hook, error)) *GithubClient_CreateEntityHook_Call
- type GithubClient_CreateEntityRegistrationToken_Call
- func (_c *GithubClient_CreateEntityRegistrationToken_Call) Return(_a0 *github.RegistrationToken, _a1 *github.Response, _a2 error) *GithubClient_CreateEntityRegistrationToken_Call
- func (_c *GithubClient_CreateEntityRegistrationToken_Call) Run(run func(ctx context.Context)) *GithubClient_CreateEntityRegistrationToken_Call
- func (_c *GithubClient_CreateEntityRegistrationToken_Call) RunAndReturn(run func(context.Context) (*github.RegistrationToken, *github.Response, error)) *GithubClient_CreateEntityRegistrationToken_Call
- type GithubClient_DeleteEntityHook_Call
- func (_c *GithubClient_DeleteEntityHook_Call) Return(ret *github.Response, err error) *GithubClient_DeleteEntityHook_Call
- func (_c *GithubClient_DeleteEntityHook_Call) Run(run func(ctx context.Context, id int64)) *GithubClient_DeleteEntityHook_Call
- func (_c *GithubClient_DeleteEntityHook_Call) RunAndReturn(run func(context.Context, int64) (*github.Response, error)) *GithubClient_DeleteEntityHook_Call
- type GithubClient_Expecter
- func (_e *GithubClient_Expecter) CreateEntityHook(ctx interface{}, hook interface{}) *GithubClient_CreateEntityHook_Call
- func (_e *GithubClient_Expecter) CreateEntityRegistrationToken(ctx interface{}) *GithubClient_CreateEntityRegistrationToken_Call
- func (_e *GithubClient_Expecter) DeleteEntityHook(ctx interface{}, id interface{}) *GithubClient_DeleteEntityHook_Call
- func (_e *GithubClient_Expecter) GetEntity() *GithubClient_GetEntity_Call
- func (_e *GithubClient_Expecter) GetEntityHook(ctx interface{}, id interface{}) *GithubClient_GetEntityHook_Call
- func (_e *GithubClient_Expecter) GetEntityJITConfig(ctx interface{}, instance interface{}, pool interface{}, labels interface{}) *GithubClient_GetEntityJITConfig_Call
- func (_e *GithubClient_Expecter) GetEntityRunnerGroupIDByName(ctx interface{}, runnerGroupName interface{}) *GithubClient_GetEntityRunnerGroupIDByName_Call
- func (_e *GithubClient_Expecter) GetWorkflowJobByID(ctx interface{}, owner interface{}, repo interface{}, jobID interface{}) *GithubClient_GetWorkflowJobByID_Call
- func (_e *GithubClient_Expecter) GithubBaseURL() *GithubClient_GithubBaseURL_Call
- func (_e *GithubClient_Expecter) ListEntityHooks(ctx interface{}, opts interface{}) *GithubClient_ListEntityHooks_Call
- func (_e *GithubClient_Expecter) ListEntityRunnerApplicationDownloads(ctx interface{}) *GithubClient_ListEntityRunnerApplicationDownloads_Call
- func (_e *GithubClient_Expecter) ListEntityRunners(ctx interface{}, opts interface{}) *GithubClient_ListEntityRunners_Call
- func (_e *GithubClient_Expecter) PingEntityHook(ctx interface{}, id interface{}) *GithubClient_PingEntityHook_Call
- func (_e *GithubClient_Expecter) RateLimit(ctx interface{}) *GithubClient_RateLimit_Call
- func (_e *GithubClient_Expecter) RemoveEntityRunner(ctx interface{}, runnerID interface{}) *GithubClient_RemoveEntityRunner_Call
- type GithubClient_GetEntityHook_Call
- func (_c *GithubClient_GetEntityHook_Call) Return(ret *github.Hook, err error) *GithubClient_GetEntityHook_Call
- func (_c *GithubClient_GetEntityHook_Call) Run(run func(ctx context.Context, id int64)) *GithubClient_GetEntityHook_Call
- func (_c *GithubClient_GetEntityHook_Call) RunAndReturn(run func(context.Context, int64) (*github.Hook, error)) *GithubClient_GetEntityHook_Call
- type GithubClient_GetEntityJITConfig_Call
- func (_c *GithubClient_GetEntityJITConfig_Call) Return(jitConfigMap map[string]string, runner *github.Runner, err error) *GithubClient_GetEntityJITConfig_Call
- func (_c *GithubClient_GetEntityJITConfig_Call) Run(...) *GithubClient_GetEntityJITConfig_Call
- func (_c *GithubClient_GetEntityJITConfig_Call) RunAndReturn(...) *GithubClient_GetEntityJITConfig_Call
- type GithubClient_GetEntityRunnerGroupIDByName_Call
- func (_c *GithubClient_GetEntityRunnerGroupIDByName_Call) Return(_a0 int64, _a1 error) *GithubClient_GetEntityRunnerGroupIDByName_Call
- func (_c *GithubClient_GetEntityRunnerGroupIDByName_Call) Run(run func(ctx context.Context, runnerGroupName string)) *GithubClient_GetEntityRunnerGroupIDByName_Call
- func (_c *GithubClient_GetEntityRunnerGroupIDByName_Call) RunAndReturn(run func(context.Context, string) (int64, error)) *GithubClient_GetEntityRunnerGroupIDByName_Call
- type GithubClient_GetEntity_Call
- type GithubClient_GetWorkflowJobByID_Call
- func (_c *GithubClient_GetWorkflowJobByID_Call) Return(_a0 *github.WorkflowJob, _a1 *github.Response, _a2 error) *GithubClient_GetWorkflowJobByID_Call
- func (_c *GithubClient_GetWorkflowJobByID_Call) Run(run func(ctx context.Context, owner string, repo string, jobID int64)) *GithubClient_GetWorkflowJobByID_Call
- func (_c *GithubClient_GetWorkflowJobByID_Call) RunAndReturn(...) *GithubClient_GetWorkflowJobByID_Call
- type GithubClient_GithubBaseURL_Call
- type GithubClient_ListEntityHooks_Call
- func (_c *GithubClient_ListEntityHooks_Call) Return(ret []*github.Hook, response *github.Response, err error) *GithubClient_ListEntityHooks_Call
- func (_c *GithubClient_ListEntityHooks_Call) Run(run func(ctx context.Context, opts *github.ListOptions)) *GithubClient_ListEntityHooks_Call
- func (_c *GithubClient_ListEntityHooks_Call) RunAndReturn(...) *GithubClient_ListEntityHooks_Call
- type GithubClient_ListEntityRunnerApplicationDownloads_Call
- func (_c *GithubClient_ListEntityRunnerApplicationDownloads_Call) Return(_a0 []*github.RunnerApplicationDownload, _a1 *github.Response, _a2 error) *GithubClient_ListEntityRunnerApplicationDownloads_Call
- func (_c *GithubClient_ListEntityRunnerApplicationDownloads_Call) Run(run func(ctx context.Context)) *GithubClient_ListEntityRunnerApplicationDownloads_Call
- func (_c *GithubClient_ListEntityRunnerApplicationDownloads_Call) RunAndReturn(...) *GithubClient_ListEntityRunnerApplicationDownloads_Call
- type GithubClient_ListEntityRunners_Call
- func (_c *GithubClient_ListEntityRunners_Call) Return(_a0 *github.Runners, _a1 *github.Response, _a2 error) *GithubClient_ListEntityRunners_Call
- func (_c *GithubClient_ListEntityRunners_Call) Run(run func(ctx context.Context, opts *github.ListRunnersOptions)) *GithubClient_ListEntityRunners_Call
- func (_c *GithubClient_ListEntityRunners_Call) RunAndReturn(...) *GithubClient_ListEntityRunners_Call
- type GithubClient_PingEntityHook_Call
- func (_c *GithubClient_PingEntityHook_Call) Return(ret *github.Response, err error) *GithubClient_PingEntityHook_Call
- func (_c *GithubClient_PingEntityHook_Call) Run(run func(ctx context.Context, id int64)) *GithubClient_PingEntityHook_Call
- func (_c *GithubClient_PingEntityHook_Call) RunAndReturn(run func(context.Context, int64) (*github.Response, error)) *GithubClient_PingEntityHook_Call
- type GithubClient_RateLimit_Call
- func (_c *GithubClient_RateLimit_Call) Return(_a0 *github.RateLimits, _a1 error) *GithubClient_RateLimit_Call
- func (_c *GithubClient_RateLimit_Call) Run(run func(ctx context.Context)) *GithubClient_RateLimit_Call
- func (_c *GithubClient_RateLimit_Call) RunAndReturn(run func(context.Context) (*github.RateLimits, error)) *GithubClient_RateLimit_Call
- type GithubClient_RemoveEntityRunner_Call
- func (_c *GithubClient_RemoveEntityRunner_Call) Return(_a0 error) *GithubClient_RemoveEntityRunner_Call
- func (_c *GithubClient_RemoveEntityRunner_Call) Run(run func(ctx context.Context, runnerID int64)) *GithubClient_RemoveEntityRunner_Call
- func (_c *GithubClient_RemoveEntityRunner_Call) RunAndReturn(run func(context.Context, int64) error) *GithubClient_RemoveEntityRunner_Call
- type GithubEnterpriseClient
- func (_m *GithubEnterpriseClient) CreateRegistrationToken(ctx context.Context, enterprise string) (*github.RegistrationToken, *github.Response, error)
- func (_m *GithubEnterpriseClient) GenerateEnterpriseJITConfig(ctx context.Context, enterprise string, ...) (*github.JITRunnerConfig, *github.Response, error)
- func (_m *GithubEnterpriseClient) ListRunnerApplicationDownloads(ctx context.Context, enterprise string) ([]*github.RunnerApplicationDownload, *github.Response, error)
- func (_m *GithubEnterpriseClient) ListRunnerGroups(ctx context.Context, enterprise string, ...) (*github.EnterpriseRunnerGroups, *github.Response, error)
- func (_m *GithubEnterpriseClient) ListRunners(ctx context.Context, enterprise string, opts *github.ListOptions) (*github.Runners, *github.Response, error)
- func (_m *GithubEnterpriseClient) RemoveRunner(ctx context.Context, enterprise string, runnerID int64) (*github.Response, error)
- type GithubEntityOperations
- func (_m *GithubEntityOperations) CreateEntityHook(ctx context.Context, hook *github.Hook) (*github.Hook, error)
- func (_m *GithubEntityOperations) CreateEntityRegistrationToken(ctx context.Context) (*github.RegistrationToken, *github.Response, error)
- func (_m *GithubEntityOperations) DeleteEntityHook(ctx context.Context, id int64) (*github.Response, error)
- func (_m *GithubEntityOperations) EXPECT() *GithubEntityOperations_Expecter
- func (_m *GithubEntityOperations) GetEntity() params.ForgeEntity
- func (_m *GithubEntityOperations) GetEntityHook(ctx context.Context, id int64) (*github.Hook, error)
- func (_m *GithubEntityOperations) GetEntityJITConfig(ctx context.Context, instance string, pool params.Pool, labels []string) (map[string]string, *github.Runner, error)
- func (_m *GithubEntityOperations) GetEntityRunnerGroupIDByName(ctx context.Context, runnerGroupName string) (int64, error)
- func (_m *GithubEntityOperations) GithubBaseURL() *url.URL
- func (_m *GithubEntityOperations) ListEntityHooks(ctx context.Context, opts *github.ListOptions) ([]*github.Hook, *github.Response, error)
- func (_m *GithubEntityOperations) ListEntityRunnerApplicationDownloads(ctx context.Context) ([]*github.RunnerApplicationDownload, *github.Response, error)
- func (_m *GithubEntityOperations) ListEntityRunners(ctx context.Context, opts *github.ListRunnersOptions) (*github.Runners, *github.Response, error)
- func (_m *GithubEntityOperations) PingEntityHook(ctx context.Context, id int64) (*github.Response, error)
- func (_m *GithubEntityOperations) RateLimit(ctx context.Context) (*github.RateLimits, error)
- func (_m *GithubEntityOperations) RemoveEntityRunner(ctx context.Context, runnerID int64) error
- type GithubEntityOperations_CreateEntityHook_Call
- func (_c *GithubEntityOperations_CreateEntityHook_Call) Return(ret *github.Hook, err error) *GithubEntityOperations_CreateEntityHook_Call
- func (_c *GithubEntityOperations_CreateEntityHook_Call) Run(run func(ctx context.Context, hook *github.Hook)) *GithubEntityOperations_CreateEntityHook_Call
- func (_c *GithubEntityOperations_CreateEntityHook_Call) RunAndReturn(run func(context.Context, *github.Hook) (*github.Hook, error)) *GithubEntityOperations_CreateEntityHook_Call
- type GithubEntityOperations_CreateEntityRegistrationToken_Call
- func (_c *GithubEntityOperations_CreateEntityRegistrationToken_Call) Return(_a0 *github.RegistrationToken, _a1 *github.Response, _a2 error) *GithubEntityOperations_CreateEntityRegistrationToken_Call
- func (_c *GithubEntityOperations_CreateEntityRegistrationToken_Call) Run(run func(ctx context.Context)) *GithubEntityOperations_CreateEntityRegistrationToken_Call
- func (_c *GithubEntityOperations_CreateEntityRegistrationToken_Call) RunAndReturn(run func(context.Context) (*github.RegistrationToken, *github.Response, error)) *GithubEntityOperations_CreateEntityRegistrationToken_Call
- type GithubEntityOperations_DeleteEntityHook_Call
- func (_c *GithubEntityOperations_DeleteEntityHook_Call) Return(ret *github.Response, err error) *GithubEntityOperations_DeleteEntityHook_Call
- func (_c *GithubEntityOperations_DeleteEntityHook_Call) Run(run func(ctx context.Context, id int64)) *GithubEntityOperations_DeleteEntityHook_Call
- func (_c *GithubEntityOperations_DeleteEntityHook_Call) RunAndReturn(run func(context.Context, int64) (*github.Response, error)) *GithubEntityOperations_DeleteEntityHook_Call
- type GithubEntityOperations_Expecter
- func (_e *GithubEntityOperations_Expecter) CreateEntityHook(ctx interface{}, hook interface{}) *GithubEntityOperations_CreateEntityHook_Call
- func (_e *GithubEntityOperations_Expecter) CreateEntityRegistrationToken(ctx interface{}) *GithubEntityOperations_CreateEntityRegistrationToken_Call
- func (_e *GithubEntityOperations_Expecter) DeleteEntityHook(ctx interface{}, id interface{}) *GithubEntityOperations_DeleteEntityHook_Call
- func (_e *GithubEntityOperations_Expecter) GetEntity() *GithubEntityOperations_GetEntity_Call
- func (_e *GithubEntityOperations_Expecter) GetEntityHook(ctx interface{}, id interface{}) *GithubEntityOperations_GetEntityHook_Call
- func (_e *GithubEntityOperations_Expecter) GetEntityJITConfig(ctx interface{}, instance interface{}, pool interface{}, labels interface{}) *GithubEntityOperations_GetEntityJITConfig_Call
- func (_e *GithubEntityOperations_Expecter) GetEntityRunnerGroupIDByName(ctx interface{}, runnerGroupName interface{}) *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call
- func (_e *GithubEntityOperations_Expecter) GithubBaseURL() *GithubEntityOperations_GithubBaseURL_Call
- func (_e *GithubEntityOperations_Expecter) ListEntityHooks(ctx interface{}, opts interface{}) *GithubEntityOperations_ListEntityHooks_Call
- func (_e *GithubEntityOperations_Expecter) ListEntityRunnerApplicationDownloads(ctx interface{}) *GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call
- func (_e *GithubEntityOperations_Expecter) ListEntityRunners(ctx interface{}, opts interface{}) *GithubEntityOperations_ListEntityRunners_Call
- func (_e *GithubEntityOperations_Expecter) PingEntityHook(ctx interface{}, id interface{}) *GithubEntityOperations_PingEntityHook_Call
- func (_e *GithubEntityOperations_Expecter) RateLimit(ctx interface{}) *GithubEntityOperations_RateLimit_Call
- func (_e *GithubEntityOperations_Expecter) RemoveEntityRunner(ctx interface{}, runnerID interface{}) *GithubEntityOperations_RemoveEntityRunner_Call
- type GithubEntityOperations_GetEntityHook_Call
- func (_c *GithubEntityOperations_GetEntityHook_Call) Return(ret *github.Hook, err error) *GithubEntityOperations_GetEntityHook_Call
- func (_c *GithubEntityOperations_GetEntityHook_Call) Run(run func(ctx context.Context, id int64)) *GithubEntityOperations_GetEntityHook_Call
- func (_c *GithubEntityOperations_GetEntityHook_Call) RunAndReturn(run func(context.Context, int64) (*github.Hook, error)) *GithubEntityOperations_GetEntityHook_Call
- type GithubEntityOperations_GetEntityJITConfig_Call
- func (_c *GithubEntityOperations_GetEntityJITConfig_Call) Return(jitConfigMap map[string]string, runner *github.Runner, err error) *GithubEntityOperations_GetEntityJITConfig_Call
- func (_c *GithubEntityOperations_GetEntityJITConfig_Call) Run(...) *GithubEntityOperations_GetEntityJITConfig_Call
- func (_c *GithubEntityOperations_GetEntityJITConfig_Call) RunAndReturn(...) *GithubEntityOperations_GetEntityJITConfig_Call
- type GithubEntityOperations_GetEntityRunnerGroupIDByName_Call
- func (_c *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call) Return(_a0 int64, _a1 error) *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call
- func (_c *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call) Run(run func(ctx context.Context, runnerGroupName string)) *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call
- func (_c *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call) RunAndReturn(run func(context.Context, string) (int64, error)) *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call
- type GithubEntityOperations_GetEntity_Call
- func (_c *GithubEntityOperations_GetEntity_Call) Return(_a0 params.ForgeEntity) *GithubEntityOperations_GetEntity_Call
- func (_c *GithubEntityOperations_GetEntity_Call) Run(run func()) *GithubEntityOperations_GetEntity_Call
- func (_c *GithubEntityOperations_GetEntity_Call) RunAndReturn(run func() params.ForgeEntity) *GithubEntityOperations_GetEntity_Call
- type GithubEntityOperations_GithubBaseURL_Call
- func (_c *GithubEntityOperations_GithubBaseURL_Call) Return(_a0 *url.URL) *GithubEntityOperations_GithubBaseURL_Call
- func (_c *GithubEntityOperations_GithubBaseURL_Call) Run(run func()) *GithubEntityOperations_GithubBaseURL_Call
- func (_c *GithubEntityOperations_GithubBaseURL_Call) RunAndReturn(run func() *url.URL) *GithubEntityOperations_GithubBaseURL_Call
- type GithubEntityOperations_ListEntityHooks_Call
- func (_c *GithubEntityOperations_ListEntityHooks_Call) Return(ret []*github.Hook, response *github.Response, err error) *GithubEntityOperations_ListEntityHooks_Call
- func (_c *GithubEntityOperations_ListEntityHooks_Call) Run(run func(ctx context.Context, opts *github.ListOptions)) *GithubEntityOperations_ListEntityHooks_Call
- func (_c *GithubEntityOperations_ListEntityHooks_Call) RunAndReturn(...) *GithubEntityOperations_ListEntityHooks_Call
- type GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call
- func (_c *GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call) Return(_a0 []*github.RunnerApplicationDownload, _a1 *github.Response, _a2 error) *GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call
- func (_c *GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call) Run(run func(ctx context.Context)) *GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call
- func (_c *GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call) RunAndReturn(...) *GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call
- type GithubEntityOperations_ListEntityRunners_Call
- func (_c *GithubEntityOperations_ListEntityRunners_Call) Return(_a0 *github.Runners, _a1 *github.Response, _a2 error) *GithubEntityOperations_ListEntityRunners_Call
- func (_c *GithubEntityOperations_ListEntityRunners_Call) Run(run func(ctx context.Context, opts *github.ListRunnersOptions)) *GithubEntityOperations_ListEntityRunners_Call
- func (_c *GithubEntityOperations_ListEntityRunners_Call) RunAndReturn(...) *GithubEntityOperations_ListEntityRunners_Call
- type GithubEntityOperations_PingEntityHook_Call
- func (_c *GithubEntityOperations_PingEntityHook_Call) Return(ret *github.Response, err error) *GithubEntityOperations_PingEntityHook_Call
- func (_c *GithubEntityOperations_PingEntityHook_Call) Run(run func(ctx context.Context, id int64)) *GithubEntityOperations_PingEntityHook_Call
- func (_c *GithubEntityOperations_PingEntityHook_Call) RunAndReturn(run func(context.Context, int64) (*github.Response, error)) *GithubEntityOperations_PingEntityHook_Call
- type GithubEntityOperations_RateLimit_Call
- func (_c *GithubEntityOperations_RateLimit_Call) Return(_a0 *github.RateLimits, _a1 error) *GithubEntityOperations_RateLimit_Call
- func (_c *GithubEntityOperations_RateLimit_Call) Run(run func(ctx context.Context)) *GithubEntityOperations_RateLimit_Call
- func (_c *GithubEntityOperations_RateLimit_Call) RunAndReturn(run func(context.Context) (*github.RateLimits, error)) *GithubEntityOperations_RateLimit_Call
- type GithubEntityOperations_RemoveEntityRunner_Call
- func (_c *GithubEntityOperations_RemoveEntityRunner_Call) Return(_a0 error) *GithubEntityOperations_RemoveEntityRunner_Call
- func (_c *GithubEntityOperations_RemoveEntityRunner_Call) Run(run func(ctx context.Context, runnerID int64)) *GithubEntityOperations_RemoveEntityRunner_Call
- func (_c *GithubEntityOperations_RemoveEntityRunner_Call) RunAndReturn(run func(context.Context, int64) error) *GithubEntityOperations_RemoveEntityRunner_Call
- type OrganizationHooks
- func (_m *OrganizationHooks) CreateOrgHook(ctx context.Context, org string, hook *github.Hook) (*github.Hook, *github.Response, error)
- func (_m *OrganizationHooks) DeleteOrgHook(ctx context.Context, org string, id int64) (*github.Response, error)
- func (_m *OrganizationHooks) GetOrgHook(ctx context.Context, org string, id int64) (*github.Hook, *github.Response, error)
- func (_m *OrganizationHooks) ListOrgHooks(ctx context.Context, org string, opts *github.ListOptions) ([]*github.Hook, *github.Response, error)
- func (_m *OrganizationHooks) PingOrgHook(ctx context.Context, org string, id int64) (*github.Response, error)
- type PoolManager
- func (_m *PoolManager) EXPECT() *PoolManager_Expecter
- func (_m *PoolManager) GetWebhookInfo(ctx context.Context) (params.HookInfo, error)
- func (_m *PoolManager) GithubRunnerRegistrationToken() (string, error)
- func (_m *PoolManager) HandleWorkflowJob(job params.WorkflowJob) error
- func (_m *PoolManager) ID() string
- func (_m *PoolManager) InstallWebhook(ctx context.Context, param params.InstallWebhookParams) (params.HookInfo, error)
- func (_m *PoolManager) RootCABundle() (params.CertificateBundle, error)
- func (_m *PoolManager) SetPoolRunningState(isRunning bool, failureReason string)
- func (_m *PoolManager) Start() error
- func (_m *PoolManager) Status() params.PoolManagerStatus
- func (_m *PoolManager) Stop() error
- func (_m *PoolManager) UninstallWebhook(ctx context.Context) error
- func (_m *PoolManager) Wait() error
- func (_m *PoolManager) WebhookSecret() string
- type PoolManager_Expecter
- func (_e *PoolManager_Expecter) GetWebhookInfo(ctx interface{}) *PoolManager_GetWebhookInfo_Call
- func (_e *PoolManager_Expecter) GithubRunnerRegistrationToken() *PoolManager_GithubRunnerRegistrationToken_Call
- func (_e *PoolManager_Expecter) HandleWorkflowJob(job interface{}) *PoolManager_HandleWorkflowJob_Call
- func (_e *PoolManager_Expecter) ID() *PoolManager_ID_Call
- func (_e *PoolManager_Expecter) InstallWebhook(ctx interface{}, param interface{}) *PoolManager_InstallWebhook_Call
- func (_e *PoolManager_Expecter) RootCABundle() *PoolManager_RootCABundle_Call
- func (_e *PoolManager_Expecter) SetPoolRunningState(isRunning interface{}, failureReason interface{}) *PoolManager_SetPoolRunningState_Call
- func (_e *PoolManager_Expecter) Start() *PoolManager_Start_Call
- func (_e *PoolManager_Expecter) Status() *PoolManager_Status_Call
- func (_e *PoolManager_Expecter) Stop() *PoolManager_Stop_Call
- func (_e *PoolManager_Expecter) UninstallWebhook(ctx interface{}) *PoolManager_UninstallWebhook_Call
- func (_e *PoolManager_Expecter) Wait() *PoolManager_Wait_Call
- func (_e *PoolManager_Expecter) WebhookSecret() *PoolManager_WebhookSecret_Call
- type PoolManager_GetWebhookInfo_Call
- func (_c *PoolManager_GetWebhookInfo_Call) Return(_a0 params.HookInfo, _a1 error) *PoolManager_GetWebhookInfo_Call
- func (_c *PoolManager_GetWebhookInfo_Call) Run(run func(ctx context.Context)) *PoolManager_GetWebhookInfo_Call
- func (_c *PoolManager_GetWebhookInfo_Call) RunAndReturn(run func(context.Context) (params.HookInfo, error)) *PoolManager_GetWebhookInfo_Call
- type PoolManager_GithubRunnerRegistrationToken_Call
- func (_c *PoolManager_GithubRunnerRegistrationToken_Call) Return(_a0 string, _a1 error) *PoolManager_GithubRunnerRegistrationToken_Call
- func (_c *PoolManager_GithubRunnerRegistrationToken_Call) Run(run func()) *PoolManager_GithubRunnerRegistrationToken_Call
- func (_c *PoolManager_GithubRunnerRegistrationToken_Call) RunAndReturn(run func() (string, error)) *PoolManager_GithubRunnerRegistrationToken_Call
- type PoolManager_HandleWorkflowJob_Call
- func (_c *PoolManager_HandleWorkflowJob_Call) Return(_a0 error) *PoolManager_HandleWorkflowJob_Call
- func (_c *PoolManager_HandleWorkflowJob_Call) Run(run func(job params.WorkflowJob)) *PoolManager_HandleWorkflowJob_Call
- func (_c *PoolManager_HandleWorkflowJob_Call) RunAndReturn(run func(params.WorkflowJob) error) *PoolManager_HandleWorkflowJob_Call
- type PoolManager_ID_Call
- type PoolManager_InstallWebhook_Call
- func (_c *PoolManager_InstallWebhook_Call) Return(_a0 params.HookInfo, _a1 error) *PoolManager_InstallWebhook_Call
- func (_c *PoolManager_InstallWebhook_Call) Run(run func(ctx context.Context, param params.InstallWebhookParams)) *PoolManager_InstallWebhook_Call
- func (_c *PoolManager_InstallWebhook_Call) RunAndReturn(...) *PoolManager_InstallWebhook_Call
- type PoolManager_RootCABundle_Call
- func (_c *PoolManager_RootCABundle_Call) Return(_a0 params.CertificateBundle, _a1 error) *PoolManager_RootCABundle_Call
- func (_c *PoolManager_RootCABundle_Call) Run(run func()) *PoolManager_RootCABundle_Call
- func (_c *PoolManager_RootCABundle_Call) RunAndReturn(run func() (params.CertificateBundle, error)) *PoolManager_RootCABundle_Call
- type PoolManager_SetPoolRunningState_Call
- func (_c *PoolManager_SetPoolRunningState_Call) Return() *PoolManager_SetPoolRunningState_Call
- func (_c *PoolManager_SetPoolRunningState_Call) Run(run func(isRunning bool, failureReason string)) *PoolManager_SetPoolRunningState_Call
- func (_c *PoolManager_SetPoolRunningState_Call) RunAndReturn(run func(bool, string)) *PoolManager_SetPoolRunningState_Call
- type PoolManager_Start_Call
- type PoolManager_Status_Call
- type PoolManager_Stop_Call
- type PoolManager_UninstallWebhook_Call
- func (_c *PoolManager_UninstallWebhook_Call) Return(_a0 error) *PoolManager_UninstallWebhook_Call
- func (_c *PoolManager_UninstallWebhook_Call) Run(run func(ctx context.Context)) *PoolManager_UninstallWebhook_Call
- func (_c *PoolManager_UninstallWebhook_Call) RunAndReturn(run func(context.Context) error) *PoolManager_UninstallWebhook_Call
- type PoolManager_Wait_Call
- type PoolManager_WebhookSecret_Call
- type Provider
- func (_m *Provider) AsParams() params.Provider
- func (_m *Provider) CreateInstance(ctx context.Context, ...) (garm_provider_commonparams.ProviderInstance, error)
- func (_m *Provider) DeleteInstance(ctx context.Context, instance string, ...) error
- func (_m *Provider) DisableJITConfig() bool
- func (_m *Provider) EXPECT() *Provider_Expecter
- func (_m *Provider) GetInstance(ctx context.Context, instance string, ...) (garm_provider_commonparams.ProviderInstance, error)
- func (_m *Provider) ListInstances(ctx context.Context, poolID string, ...) ([]garm_provider_commonparams.ProviderInstance, error)
- func (_m *Provider) RemoveAllInstances(ctx context.Context, removeAllInstancesParams common.RemoveAllInstancesParams) error
- func (_m *Provider) Start(ctx context.Context, instance string, startParams common.StartParams) error
- func (_m *Provider) Stop(ctx context.Context, instance string, stopParams common.StopParams) error
- type Provider_AsParams_Call
- type Provider_CreateInstance_Call
- func (_c *Provider_CreateInstance_Call) Return(_a0 garm_provider_commonparams.ProviderInstance, _a1 error) *Provider_CreateInstance_Call
- func (_c *Provider_CreateInstance_Call) Run(run func(ctx context.Context, ...)) *Provider_CreateInstance_Call
- func (_c *Provider_CreateInstance_Call) RunAndReturn(...) *Provider_CreateInstance_Call
- type Provider_DeleteInstance_Call
- func (_c *Provider_DeleteInstance_Call) Return(_a0 error) *Provider_DeleteInstance_Call
- func (_c *Provider_DeleteInstance_Call) Run(run func(ctx context.Context, instance string, ...)) *Provider_DeleteInstance_Call
- func (_c *Provider_DeleteInstance_Call) RunAndReturn(run func(context.Context, string, common.DeleteInstanceParams) error) *Provider_DeleteInstance_Call
- type Provider_DisableJITConfig_Call
- type Provider_Expecter
- func (_e *Provider_Expecter) AsParams() *Provider_AsParams_Call
- func (_e *Provider_Expecter) CreateInstance(ctx interface{}, bootstrapParams interface{}, createInstanceParams interface{}) *Provider_CreateInstance_Call
- func (_e *Provider_Expecter) DeleteInstance(ctx interface{}, instance interface{}, deleteInstanceParams interface{}) *Provider_DeleteInstance_Call
- func (_e *Provider_Expecter) DisableJITConfig() *Provider_DisableJITConfig_Call
- func (_e *Provider_Expecter) GetInstance(ctx interface{}, instance interface{}, getInstanceParams interface{}) *Provider_GetInstance_Call
- func (_e *Provider_Expecter) ListInstances(ctx interface{}, poolID interface{}, listInstancesParams interface{}) *Provider_ListInstances_Call
- func (_e *Provider_Expecter) RemoveAllInstances(ctx interface{}, removeAllInstancesParams interface{}) *Provider_RemoveAllInstances_Call
- func (_e *Provider_Expecter) Start(ctx interface{}, instance interface{}, startParams interface{}) *Provider_Start_Call
- func (_e *Provider_Expecter) Stop(ctx interface{}, instance interface{}, stopParams interface{}) *Provider_Stop_Call
- type Provider_GetInstance_Call
- func (_c *Provider_GetInstance_Call) Return(_a0 garm_provider_commonparams.ProviderInstance, _a1 error) *Provider_GetInstance_Call
- func (_c *Provider_GetInstance_Call) Run(run func(ctx context.Context, instance string, ...)) *Provider_GetInstance_Call
- func (_c *Provider_GetInstance_Call) RunAndReturn(...) *Provider_GetInstance_Call
- type Provider_ListInstances_Call
- func (_c *Provider_ListInstances_Call) Return(_a0 []garm_provider_commonparams.ProviderInstance, _a1 error) *Provider_ListInstances_Call
- func (_c *Provider_ListInstances_Call) Run(run func(ctx context.Context, poolID string, ...)) *Provider_ListInstances_Call
- func (_c *Provider_ListInstances_Call) RunAndReturn(...) *Provider_ListInstances_Call
- type Provider_RemoveAllInstances_Call
- func (_c *Provider_RemoveAllInstances_Call) Return(_a0 error) *Provider_RemoveAllInstances_Call
- func (_c *Provider_RemoveAllInstances_Call) Run(...) *Provider_RemoveAllInstances_Call
- func (_c *Provider_RemoveAllInstances_Call) RunAndReturn(run func(context.Context, common.RemoveAllInstancesParams) error) *Provider_RemoveAllInstances_Call
- type Provider_Start_Call
- func (_c *Provider_Start_Call) Return(_a0 error) *Provider_Start_Call
- func (_c *Provider_Start_Call) Run(run func(ctx context.Context, instance string, startParams common.StartParams)) *Provider_Start_Call
- func (_c *Provider_Start_Call) RunAndReturn(run func(context.Context, string, common.StartParams) error) *Provider_Start_Call
- type Provider_Stop_Call
- func (_c *Provider_Stop_Call) Return(_a0 error) *Provider_Stop_Call
- func (_c *Provider_Stop_Call) Run(run func(ctx context.Context, instance string, stopParams common.StopParams)) *Provider_Stop_Call
- func (_c *Provider_Stop_Call) RunAndReturn(run func(context.Context, string, common.StopParams) error) *Provider_Stop_Call
- type RateLimitClient
- type RateLimitClient_Expecter
- type RateLimitClient_RateLimit_Call
- func (_c *RateLimitClient_RateLimit_Call) Return(_a0 *github.RateLimits, _a1 error) *RateLimitClient_RateLimit_Call
- func (_c *RateLimitClient_RateLimit_Call) Run(run func(ctx context.Context)) *RateLimitClient_RateLimit_Call
- func (_c *RateLimitClient_RateLimit_Call) RunAndReturn(run func(context.Context) (*github.RateLimits, error)) *RateLimitClient_RateLimit_Call
- type RepositoryHooks
- func (_m *RepositoryHooks) CreateRepoHook(ctx context.Context, owner string, repo string, hook *github.Hook) (*github.Hook, *github.Response, error)
- func (_m *RepositoryHooks) DeleteRepoHook(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)
- func (_m *RepositoryHooks) GetRepoHook(ctx context.Context, owner string, repo string, id int64) (*github.Hook, *github.Response, error)
- func (_m *RepositoryHooks) ListRepoHooks(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.Hook, *github.Response, error)
- func (_m *RepositoryHooks) PingRepoHook(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubClient ¶
GithubClient is an autogenerated mock type for the GithubClient type
func NewGithubClient ¶
func NewGithubClient(t interface {
mock.TestingT
Cleanup(func())
}) *GithubClient
NewGithubClient creates a new instance of GithubClient. 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 (*GithubClient) CreateEntityHook ¶ added in v0.1.5
func (_m *GithubClient) CreateEntityHook(ctx context.Context, hook *github.Hook) (*github.Hook, error)
CreateEntityHook provides a mock function with given fields: ctx, hook
func (*GithubClient) CreateEntityRegistrationToken ¶ added in v0.1.5
func (_m *GithubClient) CreateEntityRegistrationToken(ctx context.Context) (*github.RegistrationToken, *github.Response, error)
CreateEntityRegistrationToken provides a mock function with given fields: ctx
func (*GithubClient) DeleteEntityHook ¶ added in v0.1.5
DeleteEntityHook provides a mock function with given fields: ctx, id
func (*GithubClient) EXPECT ¶
func (_m *GithubClient) EXPECT() *GithubClient_Expecter
func (*GithubClient) GetEntity ¶
func (_m *GithubClient) GetEntity() params.ForgeEntity
GetEntity provides a mock function with no fields
func (*GithubClient) GetEntityHook ¶ added in v0.1.5
GetEntityHook provides a mock function with given fields: ctx, id
func (*GithubClient) GetEntityJITConfig ¶ added in v0.1.5
func (_m *GithubClient) GetEntityJITConfig(ctx context.Context, instance string, pool params.Pool, labels []string) (map[string]string, *github.Runner, error)
GetEntityJITConfig provides a mock function with given fields: ctx, instance, pool, labels
func (*GithubClient) GetEntityRunnerGroupIDByName ¶
func (_m *GithubClient) GetEntityRunnerGroupIDByName(ctx context.Context, runnerGroupName string) (int64, error)
GetEntityRunnerGroupIDByName provides a mock function with given fields: ctx, runnerGroupName
func (*GithubClient) GetWorkflowJobByID ¶
func (_m *GithubClient) GetWorkflowJobByID(ctx context.Context, owner string, repo string, jobID int64) (*github.WorkflowJob, *github.Response, error)
GetWorkflowJobByID provides a mock function with given fields: ctx, owner, repo, jobID
func (*GithubClient) GithubBaseURL ¶
func (_m *GithubClient) GithubBaseURL() *url.URL
GithubBaseURL provides a mock function with no fields
func (*GithubClient) ListEntityHooks ¶ added in v0.1.5
func (_m *GithubClient) ListEntityHooks(ctx context.Context, opts *github.ListOptions) ([]*github.Hook, *github.Response, error)
ListEntityHooks provides a mock function with given fields: ctx, opts
func (*GithubClient) ListEntityRunnerApplicationDownloads ¶ added in v0.1.5
func (_m *GithubClient) ListEntityRunnerApplicationDownloads(ctx context.Context) ([]*github.RunnerApplicationDownload, *github.Response, error)
ListEntityRunnerApplicationDownloads provides a mock function with given fields: ctx
func (*GithubClient) ListEntityRunners ¶ added in v0.1.5
func (_m *GithubClient) ListEntityRunners(ctx context.Context, opts *github.ListRunnersOptions) (*github.Runners, *github.Response, error)
ListEntityRunners provides a mock function with given fields: ctx, opts
func (*GithubClient) PingEntityHook ¶ added in v0.1.5
PingEntityHook provides a mock function with given fields: ctx, id
func (*GithubClient) RateLimit ¶
func (_m *GithubClient) RateLimit(ctx context.Context) (*github.RateLimits, error)
RateLimit provides a mock function with given fields: ctx
func (*GithubClient) RemoveEntityRunner ¶ added in v0.1.5
func (_m *GithubClient) RemoveEntityRunner(ctx context.Context, runnerID int64) error
RemoveEntityRunner provides a mock function with given fields: ctx, runnerID
type GithubClient_CreateEntityHook_Call ¶
GithubClient_CreateEntityHook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEntityHook'
func (*GithubClient_CreateEntityHook_Call) Return ¶
func (_c *GithubClient_CreateEntityHook_Call) Return(ret *github.Hook, err error) *GithubClient_CreateEntityHook_Call
func (*GithubClient_CreateEntityHook_Call) Run ¶
func (_c *GithubClient_CreateEntityHook_Call) Run(run func(ctx context.Context, hook *github.Hook)) *GithubClient_CreateEntityHook_Call
func (*GithubClient_CreateEntityHook_Call) RunAndReturn ¶
func (_c *GithubClient_CreateEntityHook_Call) RunAndReturn(run func(context.Context, *github.Hook) (*github.Hook, error)) *GithubClient_CreateEntityHook_Call
type GithubClient_CreateEntityRegistrationToken_Call ¶
GithubClient_CreateEntityRegistrationToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEntityRegistrationToken'
func (*GithubClient_CreateEntityRegistrationToken_Call) Return ¶
func (_c *GithubClient_CreateEntityRegistrationToken_Call) Return(_a0 *github.RegistrationToken, _a1 *github.Response, _a2 error) *GithubClient_CreateEntityRegistrationToken_Call
func (*GithubClient_CreateEntityRegistrationToken_Call) Run ¶
func (_c *GithubClient_CreateEntityRegistrationToken_Call) Run(run func(ctx context.Context)) *GithubClient_CreateEntityRegistrationToken_Call
func (*GithubClient_CreateEntityRegistrationToken_Call) RunAndReturn ¶
func (_c *GithubClient_CreateEntityRegistrationToken_Call) RunAndReturn(run func(context.Context) (*github.RegistrationToken, *github.Response, error)) *GithubClient_CreateEntityRegistrationToken_Call
type GithubClient_DeleteEntityHook_Call ¶
GithubClient_DeleteEntityHook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteEntityHook'
func (*GithubClient_DeleteEntityHook_Call) Return ¶
func (_c *GithubClient_DeleteEntityHook_Call) Return(ret *github.Response, err error) *GithubClient_DeleteEntityHook_Call
func (*GithubClient_DeleteEntityHook_Call) Run ¶
func (_c *GithubClient_DeleteEntityHook_Call) Run(run func(ctx context.Context, id int64)) *GithubClient_DeleteEntityHook_Call
func (*GithubClient_DeleteEntityHook_Call) RunAndReturn ¶
func (_c *GithubClient_DeleteEntityHook_Call) RunAndReturn(run func(context.Context, int64) (*github.Response, error)) *GithubClient_DeleteEntityHook_Call
type GithubClient_Expecter ¶
type GithubClient_Expecter struct {
// contains filtered or unexported fields
}
func (*GithubClient_Expecter) CreateEntityHook ¶
func (_e *GithubClient_Expecter) CreateEntityHook(ctx interface{}, hook interface{}) *GithubClient_CreateEntityHook_Call
CreateEntityHook is a helper method to define mock.On call
- ctx context.Context
- hook *github.Hook
func (*GithubClient_Expecter) CreateEntityRegistrationToken ¶
func (_e *GithubClient_Expecter) CreateEntityRegistrationToken(ctx interface{}) *GithubClient_CreateEntityRegistrationToken_Call
CreateEntityRegistrationToken is a helper method to define mock.On call
- ctx context.Context
func (*GithubClient_Expecter) DeleteEntityHook ¶
func (_e *GithubClient_Expecter) DeleteEntityHook(ctx interface{}, id interface{}) *GithubClient_DeleteEntityHook_Call
DeleteEntityHook is a helper method to define mock.On call
- ctx context.Context
- id int64
func (*GithubClient_Expecter) GetEntity ¶
func (_e *GithubClient_Expecter) GetEntity() *GithubClient_GetEntity_Call
GetEntity is a helper method to define mock.On call
func (*GithubClient_Expecter) GetEntityHook ¶
func (_e *GithubClient_Expecter) GetEntityHook(ctx interface{}, id interface{}) *GithubClient_GetEntityHook_Call
GetEntityHook is a helper method to define mock.On call
- ctx context.Context
- id int64
func (*GithubClient_Expecter) GetEntityJITConfig ¶
func (_e *GithubClient_Expecter) GetEntityJITConfig(ctx interface{}, instance interface{}, pool interface{}, labels interface{}) *GithubClient_GetEntityJITConfig_Call
GetEntityJITConfig is a helper method to define mock.On call
- ctx context.Context
- instance string
- pool params.Pool
- labels []string
func (*GithubClient_Expecter) GetEntityRunnerGroupIDByName ¶
func (_e *GithubClient_Expecter) GetEntityRunnerGroupIDByName(ctx interface{}, runnerGroupName interface{}) *GithubClient_GetEntityRunnerGroupIDByName_Call
GetEntityRunnerGroupIDByName is a helper method to define mock.On call
- ctx context.Context
- runnerGroupName string
func (*GithubClient_Expecter) GetWorkflowJobByID ¶
func (_e *GithubClient_Expecter) GetWorkflowJobByID(ctx interface{}, owner interface{}, repo interface{}, jobID interface{}) *GithubClient_GetWorkflowJobByID_Call
GetWorkflowJobByID is a helper method to define mock.On call
- ctx context.Context
- owner string
- repo string
- jobID int64
func (*GithubClient_Expecter) GithubBaseURL ¶
func (_e *GithubClient_Expecter) GithubBaseURL() *GithubClient_GithubBaseURL_Call
GithubBaseURL is a helper method to define mock.On call
func (*GithubClient_Expecter) ListEntityHooks ¶
func (_e *GithubClient_Expecter) ListEntityHooks(ctx interface{}, opts interface{}) *GithubClient_ListEntityHooks_Call
ListEntityHooks is a helper method to define mock.On call
- ctx context.Context
- opts *github.ListOptions
func (*GithubClient_Expecter) ListEntityRunnerApplicationDownloads ¶
func (_e *GithubClient_Expecter) ListEntityRunnerApplicationDownloads(ctx interface{}) *GithubClient_ListEntityRunnerApplicationDownloads_Call
ListEntityRunnerApplicationDownloads is a helper method to define mock.On call
- ctx context.Context
func (*GithubClient_Expecter) ListEntityRunners ¶
func (_e *GithubClient_Expecter) ListEntityRunners(ctx interface{}, opts interface{}) *GithubClient_ListEntityRunners_Call
ListEntityRunners is a helper method to define mock.On call
- ctx context.Context
- opts *github.ListRunnersOptions
func (*GithubClient_Expecter) PingEntityHook ¶
func (_e *GithubClient_Expecter) PingEntityHook(ctx interface{}, id interface{}) *GithubClient_PingEntityHook_Call
PingEntityHook is a helper method to define mock.On call
- ctx context.Context
- id int64
func (*GithubClient_Expecter) RateLimit ¶
func (_e *GithubClient_Expecter) RateLimit(ctx interface{}) *GithubClient_RateLimit_Call
RateLimit is a helper method to define mock.On call
- ctx context.Context
func (*GithubClient_Expecter) RemoveEntityRunner ¶
func (_e *GithubClient_Expecter) RemoveEntityRunner(ctx interface{}, runnerID interface{}) *GithubClient_RemoveEntityRunner_Call
RemoveEntityRunner is a helper method to define mock.On call
- ctx context.Context
- runnerID int64
type GithubClient_GetEntityHook_Call ¶
GithubClient_GetEntityHook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntityHook'
func (*GithubClient_GetEntityHook_Call) Return ¶
func (_c *GithubClient_GetEntityHook_Call) Return(ret *github.Hook, err error) *GithubClient_GetEntityHook_Call
func (*GithubClient_GetEntityHook_Call) Run ¶
func (_c *GithubClient_GetEntityHook_Call) Run(run func(ctx context.Context, id int64)) *GithubClient_GetEntityHook_Call
func (*GithubClient_GetEntityHook_Call) RunAndReturn ¶
func (_c *GithubClient_GetEntityHook_Call) RunAndReturn(run func(context.Context, int64) (*github.Hook, error)) *GithubClient_GetEntityHook_Call
type GithubClient_GetEntityJITConfig_Call ¶
GithubClient_GetEntityJITConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntityJITConfig'
func (*GithubClient_GetEntityJITConfig_Call) Return ¶
func (_c *GithubClient_GetEntityJITConfig_Call) Return(jitConfigMap map[string]string, runner *github.Runner, err error) *GithubClient_GetEntityJITConfig_Call
func (*GithubClient_GetEntityJITConfig_Call) Run ¶
func (_c *GithubClient_GetEntityJITConfig_Call) Run(run func(ctx context.Context, instance string, pool params.Pool, labels []string)) *GithubClient_GetEntityJITConfig_Call
func (*GithubClient_GetEntityJITConfig_Call) RunAndReturn ¶
type GithubClient_GetEntityRunnerGroupIDByName_Call ¶
GithubClient_GetEntityRunnerGroupIDByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntityRunnerGroupIDByName'
func (*GithubClient_GetEntityRunnerGroupIDByName_Call) Return ¶
func (_c *GithubClient_GetEntityRunnerGroupIDByName_Call) Return(_a0 int64, _a1 error) *GithubClient_GetEntityRunnerGroupIDByName_Call
func (*GithubClient_GetEntityRunnerGroupIDByName_Call) Run ¶
func (_c *GithubClient_GetEntityRunnerGroupIDByName_Call) Run(run func(ctx context.Context, runnerGroupName string)) *GithubClient_GetEntityRunnerGroupIDByName_Call
func (*GithubClient_GetEntityRunnerGroupIDByName_Call) RunAndReturn ¶
func (_c *GithubClient_GetEntityRunnerGroupIDByName_Call) RunAndReturn(run func(context.Context, string) (int64, error)) *GithubClient_GetEntityRunnerGroupIDByName_Call
type GithubClient_GetEntity_Call ¶
GithubClient_GetEntity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntity'
func (*GithubClient_GetEntity_Call) Return ¶
func (_c *GithubClient_GetEntity_Call) Return(_a0 params.ForgeEntity) *GithubClient_GetEntity_Call
func (*GithubClient_GetEntity_Call) Run ¶
func (_c *GithubClient_GetEntity_Call) Run(run func()) *GithubClient_GetEntity_Call
func (*GithubClient_GetEntity_Call) RunAndReturn ¶
func (_c *GithubClient_GetEntity_Call) RunAndReturn(run func() params.ForgeEntity) *GithubClient_GetEntity_Call
type GithubClient_GetWorkflowJobByID_Call ¶
GithubClient_GetWorkflowJobByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWorkflowJobByID'
func (*GithubClient_GetWorkflowJobByID_Call) Return ¶
func (_c *GithubClient_GetWorkflowJobByID_Call) Return(_a0 *github.WorkflowJob, _a1 *github.Response, _a2 error) *GithubClient_GetWorkflowJobByID_Call
func (*GithubClient_GetWorkflowJobByID_Call) Run ¶
func (_c *GithubClient_GetWorkflowJobByID_Call) Run(run func(ctx context.Context, owner string, repo string, jobID int64)) *GithubClient_GetWorkflowJobByID_Call
func (*GithubClient_GetWorkflowJobByID_Call) RunAndReturn ¶
func (_c *GithubClient_GetWorkflowJobByID_Call) RunAndReturn(run func(context.Context, string, string, int64) (*github.WorkflowJob, *github.Response, error)) *GithubClient_GetWorkflowJobByID_Call
type GithubClient_GithubBaseURL_Call ¶
GithubClient_GithubBaseURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GithubBaseURL'
func (*GithubClient_GithubBaseURL_Call) Return ¶
func (_c *GithubClient_GithubBaseURL_Call) Return(_a0 *url.URL) *GithubClient_GithubBaseURL_Call
func (*GithubClient_GithubBaseURL_Call) Run ¶
func (_c *GithubClient_GithubBaseURL_Call) Run(run func()) *GithubClient_GithubBaseURL_Call
func (*GithubClient_GithubBaseURL_Call) RunAndReturn ¶
func (_c *GithubClient_GithubBaseURL_Call) RunAndReturn(run func() *url.URL) *GithubClient_GithubBaseURL_Call
type GithubClient_ListEntityHooks_Call ¶
GithubClient_ListEntityHooks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEntityHooks'
func (*GithubClient_ListEntityHooks_Call) Return ¶
func (_c *GithubClient_ListEntityHooks_Call) Return(ret []*github.Hook, response *github.Response, err error) *GithubClient_ListEntityHooks_Call
func (*GithubClient_ListEntityHooks_Call) Run ¶
func (_c *GithubClient_ListEntityHooks_Call) Run(run func(ctx context.Context, opts *github.ListOptions)) *GithubClient_ListEntityHooks_Call
func (*GithubClient_ListEntityHooks_Call) RunAndReturn ¶
func (_c *GithubClient_ListEntityHooks_Call) RunAndReturn(run func(context.Context, *github.ListOptions) ([]*github.Hook, *github.Response, error)) *GithubClient_ListEntityHooks_Call
type GithubClient_ListEntityRunnerApplicationDownloads_Call ¶
GithubClient_ListEntityRunnerApplicationDownloads_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEntityRunnerApplicationDownloads'
func (*GithubClient_ListEntityRunnerApplicationDownloads_Call) Return ¶
func (_c *GithubClient_ListEntityRunnerApplicationDownloads_Call) Return(_a0 []*github.RunnerApplicationDownload, _a1 *github.Response, _a2 error) *GithubClient_ListEntityRunnerApplicationDownloads_Call
func (*GithubClient_ListEntityRunnerApplicationDownloads_Call) Run ¶
func (_c *GithubClient_ListEntityRunnerApplicationDownloads_Call) Run(run func(ctx context.Context)) *GithubClient_ListEntityRunnerApplicationDownloads_Call
func (*GithubClient_ListEntityRunnerApplicationDownloads_Call) RunAndReturn ¶
func (_c *GithubClient_ListEntityRunnerApplicationDownloads_Call) RunAndReturn(run func(context.Context) ([]*github.RunnerApplicationDownload, *github.Response, error)) *GithubClient_ListEntityRunnerApplicationDownloads_Call
type GithubClient_ListEntityRunners_Call ¶
GithubClient_ListEntityRunners_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEntityRunners'
func (*GithubClient_ListEntityRunners_Call) Return ¶
func (_c *GithubClient_ListEntityRunners_Call) Return(_a0 *github.Runners, _a1 *github.Response, _a2 error) *GithubClient_ListEntityRunners_Call
func (*GithubClient_ListEntityRunners_Call) Run ¶
func (_c *GithubClient_ListEntityRunners_Call) Run(run func(ctx context.Context, opts *github.ListRunnersOptions)) *GithubClient_ListEntityRunners_Call
func (*GithubClient_ListEntityRunners_Call) RunAndReturn ¶
func (_c *GithubClient_ListEntityRunners_Call) RunAndReturn(run func(context.Context, *github.ListRunnersOptions) (*github.Runners, *github.Response, error)) *GithubClient_ListEntityRunners_Call
type GithubClient_PingEntityHook_Call ¶
GithubClient_PingEntityHook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PingEntityHook'
func (*GithubClient_PingEntityHook_Call) Return ¶
func (_c *GithubClient_PingEntityHook_Call) Return(ret *github.Response, err error) *GithubClient_PingEntityHook_Call
func (*GithubClient_PingEntityHook_Call) Run ¶
func (_c *GithubClient_PingEntityHook_Call) Run(run func(ctx context.Context, id int64)) *GithubClient_PingEntityHook_Call
func (*GithubClient_PingEntityHook_Call) RunAndReturn ¶
func (_c *GithubClient_PingEntityHook_Call) RunAndReturn(run func(context.Context, int64) (*github.Response, error)) *GithubClient_PingEntityHook_Call
type GithubClient_RateLimit_Call ¶
GithubClient_RateLimit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RateLimit'
func (*GithubClient_RateLimit_Call) Return ¶
func (_c *GithubClient_RateLimit_Call) Return(_a0 *github.RateLimits, _a1 error) *GithubClient_RateLimit_Call
func (*GithubClient_RateLimit_Call) Run ¶
func (_c *GithubClient_RateLimit_Call) Run(run func(ctx context.Context)) *GithubClient_RateLimit_Call
func (*GithubClient_RateLimit_Call) RunAndReturn ¶
func (_c *GithubClient_RateLimit_Call) RunAndReturn(run func(context.Context) (*github.RateLimits, error)) *GithubClient_RateLimit_Call
type GithubClient_RemoveEntityRunner_Call ¶
GithubClient_RemoveEntityRunner_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveEntityRunner'
func (*GithubClient_RemoveEntityRunner_Call) Return ¶
func (_c *GithubClient_RemoveEntityRunner_Call) Return(_a0 error) *GithubClient_RemoveEntityRunner_Call
func (*GithubClient_RemoveEntityRunner_Call) Run ¶
func (_c *GithubClient_RemoveEntityRunner_Call) Run(run func(ctx context.Context, runnerID int64)) *GithubClient_RemoveEntityRunner_Call
func (*GithubClient_RemoveEntityRunner_Call) RunAndReturn ¶
func (_c *GithubClient_RemoveEntityRunner_Call) RunAndReturn(run func(context.Context, int64) error) *GithubClient_RemoveEntityRunner_Call
type GithubEnterpriseClient ¶
GithubEnterpriseClient is an autogenerated mock type for the GithubEnterpriseClient type
func NewGithubEnterpriseClient ¶
func NewGithubEnterpriseClient(t interface {
mock.TestingT
Cleanup(func())
}) *GithubEnterpriseClient
NewGithubEnterpriseClient creates a new instance of GithubEnterpriseClient. 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 (*GithubEnterpriseClient) CreateRegistrationToken ¶
func (_m *GithubEnterpriseClient) CreateRegistrationToken(ctx context.Context, enterprise string) (*github.RegistrationToken, *github.Response, error)
CreateRegistrationToken provides a mock function with given fields: ctx, enterprise
func (*GithubEnterpriseClient) GenerateEnterpriseJITConfig ¶ added in v0.1.4
func (_m *GithubEnterpriseClient) GenerateEnterpriseJITConfig(ctx context.Context, enterprise string, request *github.GenerateJITConfigRequest) (*github.JITRunnerConfig, *github.Response, error)
GenerateEnterpriseJITConfig provides a mock function with given fields: ctx, enterprise, request
func (*GithubEnterpriseClient) ListRunnerApplicationDownloads ¶
func (_m *GithubEnterpriseClient) ListRunnerApplicationDownloads(ctx context.Context, enterprise string) ([]*github.RunnerApplicationDownload, *github.Response, error)
ListRunnerApplicationDownloads provides a mock function with given fields: ctx, enterprise
func (*GithubEnterpriseClient) ListRunnerGroups ¶ added in v0.1.4
func (_m *GithubEnterpriseClient) ListRunnerGroups(ctx context.Context, enterprise string, opts *github.ListEnterpriseRunnerGroupOptions) (*github.EnterpriseRunnerGroups, *github.Response, error)
ListRunnerGroups provides a mock function with given fields: ctx, enterprise, opts
func (*GithubEnterpriseClient) ListRunners ¶
func (_m *GithubEnterpriseClient) ListRunners(ctx context.Context, enterprise string, opts *github.ListOptions) (*github.Runners, *github.Response, error)
ListRunners provides a mock function with given fields: ctx, enterprise, opts
func (*GithubEnterpriseClient) RemoveRunner ¶
func (_m *GithubEnterpriseClient) RemoveRunner(ctx context.Context, enterprise string, runnerID int64) (*github.Response, error)
RemoveRunner provides a mock function with given fields: ctx, enterprise, runnerID
type GithubEntityOperations ¶ added in v0.1.5
GithubEntityOperations is an autogenerated mock type for the GithubEntityOperations type
func NewGithubEntityOperations ¶ added in v0.1.5
func NewGithubEntityOperations(t interface {
mock.TestingT
Cleanup(func())
}) *GithubEntityOperations
NewGithubEntityOperations creates a new instance of GithubEntityOperations. 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 (*GithubEntityOperations) CreateEntityHook ¶ added in v0.1.5
func (_m *GithubEntityOperations) CreateEntityHook(ctx context.Context, hook *github.Hook) (*github.Hook, error)
CreateEntityHook provides a mock function with given fields: ctx, hook
func (*GithubEntityOperations) CreateEntityRegistrationToken ¶ added in v0.1.5
func (_m *GithubEntityOperations) CreateEntityRegistrationToken(ctx context.Context) (*github.RegistrationToken, *github.Response, error)
CreateEntityRegistrationToken provides a mock function with given fields: ctx
func (*GithubEntityOperations) DeleteEntityHook ¶ added in v0.1.5
func (_m *GithubEntityOperations) DeleteEntityHook(ctx context.Context, id int64) (*github.Response, error)
DeleteEntityHook provides a mock function with given fields: ctx, id
func (*GithubEntityOperations) EXPECT ¶
func (_m *GithubEntityOperations) EXPECT() *GithubEntityOperations_Expecter
func (*GithubEntityOperations) GetEntity ¶
func (_m *GithubEntityOperations) GetEntity() params.ForgeEntity
GetEntity provides a mock function with no fields
func (*GithubEntityOperations) GetEntityHook ¶ added in v0.1.5
func (_m *GithubEntityOperations) GetEntityHook(ctx context.Context, id int64) (*github.Hook, error)
GetEntityHook provides a mock function with given fields: ctx, id
func (*GithubEntityOperations) GetEntityJITConfig ¶ added in v0.1.5
func (_m *GithubEntityOperations) GetEntityJITConfig(ctx context.Context, instance string, pool params.Pool, labels []string) (map[string]string, *github.Runner, error)
GetEntityJITConfig provides a mock function with given fields: ctx, instance, pool, labels
func (*GithubEntityOperations) GetEntityRunnerGroupIDByName ¶
func (_m *GithubEntityOperations) GetEntityRunnerGroupIDByName(ctx context.Context, runnerGroupName string) (int64, error)
GetEntityRunnerGroupIDByName provides a mock function with given fields: ctx, runnerGroupName
func (*GithubEntityOperations) GithubBaseURL ¶
func (_m *GithubEntityOperations) GithubBaseURL() *url.URL
GithubBaseURL provides a mock function with no fields
func (*GithubEntityOperations) ListEntityHooks ¶ added in v0.1.5
func (_m *GithubEntityOperations) ListEntityHooks(ctx context.Context, opts *github.ListOptions) ([]*github.Hook, *github.Response, error)
ListEntityHooks provides a mock function with given fields: ctx, opts
func (*GithubEntityOperations) ListEntityRunnerApplicationDownloads ¶ added in v0.1.5
func (_m *GithubEntityOperations) ListEntityRunnerApplicationDownloads(ctx context.Context) ([]*github.RunnerApplicationDownload, *github.Response, error)
ListEntityRunnerApplicationDownloads provides a mock function with given fields: ctx
func (*GithubEntityOperations) ListEntityRunners ¶ added in v0.1.5
func (_m *GithubEntityOperations) ListEntityRunners(ctx context.Context, opts *github.ListRunnersOptions) (*github.Runners, *github.Response, error)
ListEntityRunners provides a mock function with given fields: ctx, opts
func (*GithubEntityOperations) PingEntityHook ¶ added in v0.1.5
func (_m *GithubEntityOperations) PingEntityHook(ctx context.Context, id int64) (*github.Response, error)
PingEntityHook provides a mock function with given fields: ctx, id
func (*GithubEntityOperations) RateLimit ¶
func (_m *GithubEntityOperations) RateLimit(ctx context.Context) (*github.RateLimits, error)
RateLimit provides a mock function with given fields: ctx
func (*GithubEntityOperations) RemoveEntityRunner ¶ added in v0.1.5
func (_m *GithubEntityOperations) RemoveEntityRunner(ctx context.Context, runnerID int64) error
RemoveEntityRunner provides a mock function with given fields: ctx, runnerID
type GithubEntityOperations_CreateEntityHook_Call ¶
GithubEntityOperations_CreateEntityHook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEntityHook'
func (*GithubEntityOperations_CreateEntityHook_Call) Return ¶
func (_c *GithubEntityOperations_CreateEntityHook_Call) Return(ret *github.Hook, err error) *GithubEntityOperations_CreateEntityHook_Call
func (*GithubEntityOperations_CreateEntityHook_Call) Run ¶
func (_c *GithubEntityOperations_CreateEntityHook_Call) Run(run func(ctx context.Context, hook *github.Hook)) *GithubEntityOperations_CreateEntityHook_Call
func (*GithubEntityOperations_CreateEntityHook_Call) RunAndReturn ¶
func (_c *GithubEntityOperations_CreateEntityHook_Call) RunAndReturn(run func(context.Context, *github.Hook) (*github.Hook, error)) *GithubEntityOperations_CreateEntityHook_Call
type GithubEntityOperations_CreateEntityRegistrationToken_Call ¶
GithubEntityOperations_CreateEntityRegistrationToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEntityRegistrationToken'
func (*GithubEntityOperations_CreateEntityRegistrationToken_Call) Return ¶
func (_c *GithubEntityOperations_CreateEntityRegistrationToken_Call) Return(_a0 *github.RegistrationToken, _a1 *github.Response, _a2 error) *GithubEntityOperations_CreateEntityRegistrationToken_Call
func (*GithubEntityOperations_CreateEntityRegistrationToken_Call) Run ¶
func (_c *GithubEntityOperations_CreateEntityRegistrationToken_Call) Run(run func(ctx context.Context)) *GithubEntityOperations_CreateEntityRegistrationToken_Call
func (*GithubEntityOperations_CreateEntityRegistrationToken_Call) RunAndReturn ¶
func (_c *GithubEntityOperations_CreateEntityRegistrationToken_Call) RunAndReturn(run func(context.Context) (*github.RegistrationToken, *github.Response, error)) *GithubEntityOperations_CreateEntityRegistrationToken_Call
type GithubEntityOperations_DeleteEntityHook_Call ¶
GithubEntityOperations_DeleteEntityHook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteEntityHook'
func (*GithubEntityOperations_DeleteEntityHook_Call) Return ¶
func (_c *GithubEntityOperations_DeleteEntityHook_Call) Return(ret *github.Response, err error) *GithubEntityOperations_DeleteEntityHook_Call
func (*GithubEntityOperations_DeleteEntityHook_Call) Run ¶
func (_c *GithubEntityOperations_DeleteEntityHook_Call) Run(run func(ctx context.Context, id int64)) *GithubEntityOperations_DeleteEntityHook_Call
func (*GithubEntityOperations_DeleteEntityHook_Call) RunAndReturn ¶
func (_c *GithubEntityOperations_DeleteEntityHook_Call) RunAndReturn(run func(context.Context, int64) (*github.Response, error)) *GithubEntityOperations_DeleteEntityHook_Call
type GithubEntityOperations_Expecter ¶
type GithubEntityOperations_Expecter struct {
// contains filtered or unexported fields
}
func (*GithubEntityOperations_Expecter) CreateEntityHook ¶
func (_e *GithubEntityOperations_Expecter) CreateEntityHook(ctx interface{}, hook interface{}) *GithubEntityOperations_CreateEntityHook_Call
CreateEntityHook is a helper method to define mock.On call
- ctx context.Context
- hook *github.Hook
func (*GithubEntityOperations_Expecter) CreateEntityRegistrationToken ¶
func (_e *GithubEntityOperations_Expecter) CreateEntityRegistrationToken(ctx interface{}) *GithubEntityOperations_CreateEntityRegistrationToken_Call
CreateEntityRegistrationToken is a helper method to define mock.On call
- ctx context.Context
func (*GithubEntityOperations_Expecter) DeleteEntityHook ¶
func (_e *GithubEntityOperations_Expecter) DeleteEntityHook(ctx interface{}, id interface{}) *GithubEntityOperations_DeleteEntityHook_Call
DeleteEntityHook is a helper method to define mock.On call
- ctx context.Context
- id int64
func (*GithubEntityOperations_Expecter) GetEntity ¶
func (_e *GithubEntityOperations_Expecter) GetEntity() *GithubEntityOperations_GetEntity_Call
GetEntity is a helper method to define mock.On call
func (*GithubEntityOperations_Expecter) GetEntityHook ¶
func (_e *GithubEntityOperations_Expecter) GetEntityHook(ctx interface{}, id interface{}) *GithubEntityOperations_GetEntityHook_Call
GetEntityHook is a helper method to define mock.On call
- ctx context.Context
- id int64
func (*GithubEntityOperations_Expecter) GetEntityJITConfig ¶
func (_e *GithubEntityOperations_Expecter) GetEntityJITConfig(ctx interface{}, instance interface{}, pool interface{}, labels interface{}) *GithubEntityOperations_GetEntityJITConfig_Call
GetEntityJITConfig is a helper method to define mock.On call
- ctx context.Context
- instance string
- pool params.Pool
- labels []string
func (*GithubEntityOperations_Expecter) GetEntityRunnerGroupIDByName ¶
func (_e *GithubEntityOperations_Expecter) GetEntityRunnerGroupIDByName(ctx interface{}, runnerGroupName interface{}) *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call
GetEntityRunnerGroupIDByName is a helper method to define mock.On call
- ctx context.Context
- runnerGroupName string
func (*GithubEntityOperations_Expecter) GithubBaseURL ¶
func (_e *GithubEntityOperations_Expecter) GithubBaseURL() *GithubEntityOperations_GithubBaseURL_Call
GithubBaseURL is a helper method to define mock.On call
func (*GithubEntityOperations_Expecter) ListEntityHooks ¶
func (_e *GithubEntityOperations_Expecter) ListEntityHooks(ctx interface{}, opts interface{}) *GithubEntityOperations_ListEntityHooks_Call
ListEntityHooks is a helper method to define mock.On call
- ctx context.Context
- opts *github.ListOptions
func (*GithubEntityOperations_Expecter) ListEntityRunnerApplicationDownloads ¶
func (_e *GithubEntityOperations_Expecter) ListEntityRunnerApplicationDownloads(ctx interface{}) *GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call
ListEntityRunnerApplicationDownloads is a helper method to define mock.On call
- ctx context.Context
func (*GithubEntityOperations_Expecter) ListEntityRunners ¶
func (_e *GithubEntityOperations_Expecter) ListEntityRunners(ctx interface{}, opts interface{}) *GithubEntityOperations_ListEntityRunners_Call
ListEntityRunners is a helper method to define mock.On call
- ctx context.Context
- opts *github.ListRunnersOptions
func (*GithubEntityOperations_Expecter) PingEntityHook ¶
func (_e *GithubEntityOperations_Expecter) PingEntityHook(ctx interface{}, id interface{}) *GithubEntityOperations_PingEntityHook_Call
PingEntityHook is a helper method to define mock.On call
- ctx context.Context
- id int64
func (*GithubEntityOperations_Expecter) RateLimit ¶
func (_e *GithubEntityOperations_Expecter) RateLimit(ctx interface{}) *GithubEntityOperations_RateLimit_Call
RateLimit is a helper method to define mock.On call
- ctx context.Context
func (*GithubEntityOperations_Expecter) RemoveEntityRunner ¶
func (_e *GithubEntityOperations_Expecter) RemoveEntityRunner(ctx interface{}, runnerID interface{}) *GithubEntityOperations_RemoveEntityRunner_Call
RemoveEntityRunner is a helper method to define mock.On call
- ctx context.Context
- runnerID int64
type GithubEntityOperations_GetEntityHook_Call ¶
GithubEntityOperations_GetEntityHook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntityHook'
func (*GithubEntityOperations_GetEntityHook_Call) Return ¶
func (_c *GithubEntityOperations_GetEntityHook_Call) Return(ret *github.Hook, err error) *GithubEntityOperations_GetEntityHook_Call
func (*GithubEntityOperations_GetEntityHook_Call) Run ¶
func (_c *GithubEntityOperations_GetEntityHook_Call) Run(run func(ctx context.Context, id int64)) *GithubEntityOperations_GetEntityHook_Call
func (*GithubEntityOperations_GetEntityHook_Call) RunAndReturn ¶
func (_c *GithubEntityOperations_GetEntityHook_Call) RunAndReturn(run func(context.Context, int64) (*github.Hook, error)) *GithubEntityOperations_GetEntityHook_Call
type GithubEntityOperations_GetEntityJITConfig_Call ¶
GithubEntityOperations_GetEntityJITConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntityJITConfig'
func (*GithubEntityOperations_GetEntityJITConfig_Call) Return ¶
func (_c *GithubEntityOperations_GetEntityJITConfig_Call) Return(jitConfigMap map[string]string, runner *github.Runner, err error) *GithubEntityOperations_GetEntityJITConfig_Call
func (*GithubEntityOperations_GetEntityJITConfig_Call) Run ¶
func (_c *GithubEntityOperations_GetEntityJITConfig_Call) Run(run func(ctx context.Context, instance string, pool params.Pool, labels []string)) *GithubEntityOperations_GetEntityJITConfig_Call
func (*GithubEntityOperations_GetEntityJITConfig_Call) RunAndReturn ¶
type GithubEntityOperations_GetEntityRunnerGroupIDByName_Call ¶
GithubEntityOperations_GetEntityRunnerGroupIDByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntityRunnerGroupIDByName'
func (*GithubEntityOperations_GetEntityRunnerGroupIDByName_Call) Return ¶
func (_c *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call) Return(_a0 int64, _a1 error) *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call
func (*GithubEntityOperations_GetEntityRunnerGroupIDByName_Call) Run ¶
func (_c *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call) Run(run func(ctx context.Context, runnerGroupName string)) *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call
func (*GithubEntityOperations_GetEntityRunnerGroupIDByName_Call) RunAndReturn ¶
func (_c *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call) RunAndReturn(run func(context.Context, string) (int64, error)) *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call
type GithubEntityOperations_GetEntity_Call ¶
GithubEntityOperations_GetEntity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntity'
func (*GithubEntityOperations_GetEntity_Call) Return ¶
func (_c *GithubEntityOperations_GetEntity_Call) Return(_a0 params.ForgeEntity) *GithubEntityOperations_GetEntity_Call
func (*GithubEntityOperations_GetEntity_Call) Run ¶
func (_c *GithubEntityOperations_GetEntity_Call) Run(run func()) *GithubEntityOperations_GetEntity_Call
func (*GithubEntityOperations_GetEntity_Call) RunAndReturn ¶
func (_c *GithubEntityOperations_GetEntity_Call) RunAndReturn(run func() params.ForgeEntity) *GithubEntityOperations_GetEntity_Call
type GithubEntityOperations_GithubBaseURL_Call ¶
GithubEntityOperations_GithubBaseURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GithubBaseURL'
func (*GithubEntityOperations_GithubBaseURL_Call) Return ¶
func (_c *GithubEntityOperations_GithubBaseURL_Call) Return(_a0 *url.URL) *GithubEntityOperations_GithubBaseURL_Call
func (*GithubEntityOperations_GithubBaseURL_Call) Run ¶
func (_c *GithubEntityOperations_GithubBaseURL_Call) Run(run func()) *GithubEntityOperations_GithubBaseURL_Call
func (*GithubEntityOperations_GithubBaseURL_Call) RunAndReturn ¶
func (_c *GithubEntityOperations_GithubBaseURL_Call) RunAndReturn(run func() *url.URL) *GithubEntityOperations_GithubBaseURL_Call
type GithubEntityOperations_ListEntityHooks_Call ¶
GithubEntityOperations_ListEntityHooks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEntityHooks'
func (*GithubEntityOperations_ListEntityHooks_Call) Return ¶
func (_c *GithubEntityOperations_ListEntityHooks_Call) Return(ret []*github.Hook, response *github.Response, err error) *GithubEntityOperations_ListEntityHooks_Call
func (*GithubEntityOperations_ListEntityHooks_Call) Run ¶
func (_c *GithubEntityOperations_ListEntityHooks_Call) Run(run func(ctx context.Context, opts *github.ListOptions)) *GithubEntityOperations_ListEntityHooks_Call
func (*GithubEntityOperations_ListEntityHooks_Call) RunAndReturn ¶
func (_c *GithubEntityOperations_ListEntityHooks_Call) RunAndReturn(run func(context.Context, *github.ListOptions) ([]*github.Hook, *github.Response, error)) *GithubEntityOperations_ListEntityHooks_Call
type GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call ¶
GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEntityRunnerApplicationDownloads'
func (*GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call) RunAndReturn ¶
func (_c *GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call) RunAndReturn(run func(context.Context) ([]*github.RunnerApplicationDownload, *github.Response, error)) *GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call
type GithubEntityOperations_ListEntityRunners_Call ¶
GithubEntityOperations_ListEntityRunners_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEntityRunners'
func (*GithubEntityOperations_ListEntityRunners_Call) Return ¶
func (_c *GithubEntityOperations_ListEntityRunners_Call) Return(_a0 *github.Runners, _a1 *github.Response, _a2 error) *GithubEntityOperations_ListEntityRunners_Call
func (*GithubEntityOperations_ListEntityRunners_Call) Run ¶
func (_c *GithubEntityOperations_ListEntityRunners_Call) Run(run func(ctx context.Context, opts *github.ListRunnersOptions)) *GithubEntityOperations_ListEntityRunners_Call
func (*GithubEntityOperations_ListEntityRunners_Call) RunAndReturn ¶
func (_c *GithubEntityOperations_ListEntityRunners_Call) RunAndReturn(run func(context.Context, *github.ListRunnersOptions) (*github.Runners, *github.Response, error)) *GithubEntityOperations_ListEntityRunners_Call
type GithubEntityOperations_PingEntityHook_Call ¶
GithubEntityOperations_PingEntityHook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PingEntityHook'
func (*GithubEntityOperations_PingEntityHook_Call) Return ¶
func (_c *GithubEntityOperations_PingEntityHook_Call) Return(ret *github.Response, err error) *GithubEntityOperations_PingEntityHook_Call
func (*GithubEntityOperations_PingEntityHook_Call) Run ¶
func (_c *GithubEntityOperations_PingEntityHook_Call) Run(run func(ctx context.Context, id int64)) *GithubEntityOperations_PingEntityHook_Call
func (*GithubEntityOperations_PingEntityHook_Call) RunAndReturn ¶
func (_c *GithubEntityOperations_PingEntityHook_Call) RunAndReturn(run func(context.Context, int64) (*github.Response, error)) *GithubEntityOperations_PingEntityHook_Call
type GithubEntityOperations_RateLimit_Call ¶
GithubEntityOperations_RateLimit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RateLimit'
func (*GithubEntityOperations_RateLimit_Call) Return ¶
func (_c *GithubEntityOperations_RateLimit_Call) Return(_a0 *github.RateLimits, _a1 error) *GithubEntityOperations_RateLimit_Call
func (*GithubEntityOperations_RateLimit_Call) Run ¶
func (_c *GithubEntityOperations_RateLimit_Call) Run(run func(ctx context.Context)) *GithubEntityOperations_RateLimit_Call
func (*GithubEntityOperations_RateLimit_Call) RunAndReturn ¶
func (_c *GithubEntityOperations_RateLimit_Call) RunAndReturn(run func(context.Context) (*github.RateLimits, error)) *GithubEntityOperations_RateLimit_Call
type GithubEntityOperations_RemoveEntityRunner_Call ¶
GithubEntityOperations_RemoveEntityRunner_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveEntityRunner'
func (*GithubEntityOperations_RemoveEntityRunner_Call) Return ¶
func (_c *GithubEntityOperations_RemoveEntityRunner_Call) Return(_a0 error) *GithubEntityOperations_RemoveEntityRunner_Call
func (*GithubEntityOperations_RemoveEntityRunner_Call) Run ¶
func (_c *GithubEntityOperations_RemoveEntityRunner_Call) Run(run func(ctx context.Context, runnerID int64)) *GithubEntityOperations_RemoveEntityRunner_Call
func (*GithubEntityOperations_RemoveEntityRunner_Call) RunAndReturn ¶
func (_c *GithubEntityOperations_RemoveEntityRunner_Call) RunAndReturn(run func(context.Context, int64) error) *GithubEntityOperations_RemoveEntityRunner_Call
type OrganizationHooks ¶ added in v0.1.4
OrganizationHooks is an autogenerated mock type for the OrganizationHooks type
func NewOrganizationHooks ¶ added in v0.1.4
func NewOrganizationHooks(t interface {
mock.TestingT
Cleanup(func())
}) *OrganizationHooks
NewOrganizationHooks creates a new instance of OrganizationHooks. 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 (*OrganizationHooks) CreateOrgHook ¶ added in v0.1.4
func (_m *OrganizationHooks) CreateOrgHook(ctx context.Context, org string, hook *github.Hook) (*github.Hook, *github.Response, error)
CreateOrgHook provides a mock function with given fields: ctx, org, hook
func (*OrganizationHooks) DeleteOrgHook ¶ added in v0.1.4
func (_m *OrganizationHooks) DeleteOrgHook(ctx context.Context, org string, id int64) (*github.Response, error)
DeleteOrgHook provides a mock function with given fields: ctx, org, id
func (*OrganizationHooks) GetOrgHook ¶ added in v0.1.4
func (_m *OrganizationHooks) GetOrgHook(ctx context.Context, org string, id int64) (*github.Hook, *github.Response, error)
GetOrgHook provides a mock function with given fields: ctx, org, id
func (*OrganizationHooks) ListOrgHooks ¶ added in v0.1.4
func (_m *OrganizationHooks) ListOrgHooks(ctx context.Context, org string, opts *github.ListOptions) ([]*github.Hook, *github.Response, error)
ListOrgHooks provides a mock function with given fields: ctx, org, opts
func (*OrganizationHooks) PingOrgHook ¶ added in v0.1.4
func (_m *OrganizationHooks) PingOrgHook(ctx context.Context, org string, id int64) (*github.Response, error)
PingOrgHook provides a mock function with given fields: ctx, org, id
type PoolManager ¶
PoolManager is an autogenerated mock type for the PoolManager type
func NewPoolManager ¶
func NewPoolManager(t interface {
mock.TestingT
Cleanup(func())
}) *PoolManager
NewPoolManager creates a new instance of PoolManager. 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 (*PoolManager) EXPECT ¶
func (_m *PoolManager) EXPECT() *PoolManager_Expecter
func (*PoolManager) GetWebhookInfo ¶ added in v0.1.4
GetWebhookInfo provides a mock function with given fields: ctx
func (*PoolManager) GithubRunnerRegistrationToken ¶
func (_m *PoolManager) GithubRunnerRegistrationToken() (string, error)
GithubRunnerRegistrationToken provides a mock function with no fields
func (*PoolManager) HandleWorkflowJob ¶
func (_m *PoolManager) HandleWorkflowJob(job params.WorkflowJob) error
HandleWorkflowJob provides a mock function with given fields: job
func (*PoolManager) ID ¶
func (_m *PoolManager) ID() string
ID provides a mock function with no fields
func (*PoolManager) InstallWebhook ¶ added in v0.1.4
func (_m *PoolManager) InstallWebhook(ctx context.Context, param params.InstallWebhookParams) (params.HookInfo, error)
InstallWebhook provides a mock function with given fields: ctx, param
func (*PoolManager) RootCABundle ¶ added in v0.1.4
func (_m *PoolManager) RootCABundle() (params.CertificateBundle, error)
RootCABundle provides a mock function with no fields
func (*PoolManager) SetPoolRunningState ¶
func (_m *PoolManager) SetPoolRunningState(isRunning bool, failureReason string)
SetPoolRunningState provides a mock function with given fields: isRunning, failureReason
func (*PoolManager) Start ¶
func (_m *PoolManager) Start() error
Start provides a mock function with no fields
func (*PoolManager) Status ¶
func (_m *PoolManager) Status() params.PoolManagerStatus
Status provides a mock function with no fields
func (*PoolManager) Stop ¶
func (_m *PoolManager) Stop() error
Stop provides a mock function with no fields
func (*PoolManager) UninstallWebhook ¶ added in v0.1.4
func (_m *PoolManager) UninstallWebhook(ctx context.Context) error
UninstallWebhook provides a mock function with given fields: ctx
func (*PoolManager) Wait ¶
func (_m *PoolManager) Wait() error
Wait provides a mock function with no fields
func (*PoolManager) WebhookSecret ¶
func (_m *PoolManager) WebhookSecret() string
WebhookSecret provides a mock function with no fields
type PoolManager_Expecter ¶
type PoolManager_Expecter struct {
// contains filtered or unexported fields
}
func (*PoolManager_Expecter) GetWebhookInfo ¶
func (_e *PoolManager_Expecter) GetWebhookInfo(ctx interface{}) *PoolManager_GetWebhookInfo_Call
GetWebhookInfo is a helper method to define mock.On call
- ctx context.Context
func (*PoolManager_Expecter) GithubRunnerRegistrationToken ¶
func (_e *PoolManager_Expecter) GithubRunnerRegistrationToken() *PoolManager_GithubRunnerRegistrationToken_Call
GithubRunnerRegistrationToken is a helper method to define mock.On call
func (*PoolManager_Expecter) HandleWorkflowJob ¶
func (_e *PoolManager_Expecter) HandleWorkflowJob(job interface{}) *PoolManager_HandleWorkflowJob_Call
HandleWorkflowJob is a helper method to define mock.On call
- job params.WorkflowJob
func (*PoolManager_Expecter) ID ¶
func (_e *PoolManager_Expecter) ID() *PoolManager_ID_Call
ID is a helper method to define mock.On call
func (*PoolManager_Expecter) InstallWebhook ¶
func (_e *PoolManager_Expecter) InstallWebhook(ctx interface{}, param interface{}) *PoolManager_InstallWebhook_Call
InstallWebhook is a helper method to define mock.On call
- ctx context.Context
- param params.InstallWebhookParams
func (*PoolManager_Expecter) RootCABundle ¶
func (_e *PoolManager_Expecter) RootCABundle() *PoolManager_RootCABundle_Call
RootCABundle is a helper method to define mock.On call
func (*PoolManager_Expecter) SetPoolRunningState ¶
func (_e *PoolManager_Expecter) SetPoolRunningState(isRunning interface{}, failureReason interface{}) *PoolManager_SetPoolRunningState_Call
SetPoolRunningState is a helper method to define mock.On call
- isRunning bool
- failureReason string
func (*PoolManager_Expecter) Start ¶
func (_e *PoolManager_Expecter) Start() *PoolManager_Start_Call
Start is a helper method to define mock.On call
func (*PoolManager_Expecter) Status ¶
func (_e *PoolManager_Expecter) Status() *PoolManager_Status_Call
Status is a helper method to define mock.On call
func (*PoolManager_Expecter) Stop ¶
func (_e *PoolManager_Expecter) Stop() *PoolManager_Stop_Call
Stop is a helper method to define mock.On call
func (*PoolManager_Expecter) UninstallWebhook ¶
func (_e *PoolManager_Expecter) UninstallWebhook(ctx interface{}) *PoolManager_UninstallWebhook_Call
UninstallWebhook is a helper method to define mock.On call
- ctx context.Context
func (*PoolManager_Expecter) Wait ¶
func (_e *PoolManager_Expecter) Wait() *PoolManager_Wait_Call
Wait is a helper method to define mock.On call
func (*PoolManager_Expecter) WebhookSecret ¶
func (_e *PoolManager_Expecter) WebhookSecret() *PoolManager_WebhookSecret_Call
WebhookSecret is a helper method to define mock.On call
type PoolManager_GetWebhookInfo_Call ¶
PoolManager_GetWebhookInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWebhookInfo'
func (*PoolManager_GetWebhookInfo_Call) Return ¶
func (_c *PoolManager_GetWebhookInfo_Call) Return(_a0 params.HookInfo, _a1 error) *PoolManager_GetWebhookInfo_Call
func (*PoolManager_GetWebhookInfo_Call) Run ¶
func (_c *PoolManager_GetWebhookInfo_Call) Run(run func(ctx context.Context)) *PoolManager_GetWebhookInfo_Call
func (*PoolManager_GetWebhookInfo_Call) RunAndReturn ¶
func (_c *PoolManager_GetWebhookInfo_Call) RunAndReturn(run func(context.Context) (params.HookInfo, error)) *PoolManager_GetWebhookInfo_Call
type PoolManager_GithubRunnerRegistrationToken_Call ¶
PoolManager_GithubRunnerRegistrationToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GithubRunnerRegistrationToken'
func (*PoolManager_GithubRunnerRegistrationToken_Call) Return ¶
func (_c *PoolManager_GithubRunnerRegistrationToken_Call) Return(_a0 string, _a1 error) *PoolManager_GithubRunnerRegistrationToken_Call
func (*PoolManager_GithubRunnerRegistrationToken_Call) Run ¶
func (_c *PoolManager_GithubRunnerRegistrationToken_Call) Run(run func()) *PoolManager_GithubRunnerRegistrationToken_Call
func (*PoolManager_GithubRunnerRegistrationToken_Call) RunAndReturn ¶
func (_c *PoolManager_GithubRunnerRegistrationToken_Call) RunAndReturn(run func() (string, error)) *PoolManager_GithubRunnerRegistrationToken_Call
type PoolManager_HandleWorkflowJob_Call ¶
PoolManager_HandleWorkflowJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleWorkflowJob'
func (*PoolManager_HandleWorkflowJob_Call) Return ¶
func (_c *PoolManager_HandleWorkflowJob_Call) Return(_a0 error) *PoolManager_HandleWorkflowJob_Call
func (*PoolManager_HandleWorkflowJob_Call) Run ¶
func (_c *PoolManager_HandleWorkflowJob_Call) Run(run func(job params.WorkflowJob)) *PoolManager_HandleWorkflowJob_Call
func (*PoolManager_HandleWorkflowJob_Call) RunAndReturn ¶
func (_c *PoolManager_HandleWorkflowJob_Call) RunAndReturn(run func(params.WorkflowJob) error) *PoolManager_HandleWorkflowJob_Call
type PoolManager_ID_Call ¶
PoolManager_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*PoolManager_ID_Call) Return ¶
func (_c *PoolManager_ID_Call) Return(_a0 string) *PoolManager_ID_Call
func (*PoolManager_ID_Call) Run ¶
func (_c *PoolManager_ID_Call) Run(run func()) *PoolManager_ID_Call
func (*PoolManager_ID_Call) RunAndReturn ¶
func (_c *PoolManager_ID_Call) RunAndReturn(run func() string) *PoolManager_ID_Call
type PoolManager_InstallWebhook_Call ¶
PoolManager_InstallWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InstallWebhook'
func (*PoolManager_InstallWebhook_Call) Return ¶
func (_c *PoolManager_InstallWebhook_Call) Return(_a0 params.HookInfo, _a1 error) *PoolManager_InstallWebhook_Call
func (*PoolManager_InstallWebhook_Call) Run ¶
func (_c *PoolManager_InstallWebhook_Call) Run(run func(ctx context.Context, param params.InstallWebhookParams)) *PoolManager_InstallWebhook_Call
func (*PoolManager_InstallWebhook_Call) RunAndReturn ¶
func (_c *PoolManager_InstallWebhook_Call) RunAndReturn(run func(context.Context, params.InstallWebhookParams) (params.HookInfo, error)) *PoolManager_InstallWebhook_Call
type PoolManager_RootCABundle_Call ¶
PoolManager_RootCABundle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RootCABundle'
func (*PoolManager_RootCABundle_Call) Return ¶
func (_c *PoolManager_RootCABundle_Call) Return(_a0 params.CertificateBundle, _a1 error) *PoolManager_RootCABundle_Call
func (*PoolManager_RootCABundle_Call) Run ¶
func (_c *PoolManager_RootCABundle_Call) Run(run func()) *PoolManager_RootCABundle_Call
func (*PoolManager_RootCABundle_Call) RunAndReturn ¶
func (_c *PoolManager_RootCABundle_Call) RunAndReturn(run func() (params.CertificateBundle, error)) *PoolManager_RootCABundle_Call
type PoolManager_SetPoolRunningState_Call ¶
PoolManager_SetPoolRunningState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPoolRunningState'
func (*PoolManager_SetPoolRunningState_Call) Return ¶
func (_c *PoolManager_SetPoolRunningState_Call) Return() *PoolManager_SetPoolRunningState_Call
func (*PoolManager_SetPoolRunningState_Call) Run ¶
func (_c *PoolManager_SetPoolRunningState_Call) Run(run func(isRunning bool, failureReason string)) *PoolManager_SetPoolRunningState_Call
func (*PoolManager_SetPoolRunningState_Call) RunAndReturn ¶
func (_c *PoolManager_SetPoolRunningState_Call) RunAndReturn(run func(bool, string)) *PoolManager_SetPoolRunningState_Call
type PoolManager_Start_Call ¶
PoolManager_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*PoolManager_Start_Call) Return ¶
func (_c *PoolManager_Start_Call) Return(_a0 error) *PoolManager_Start_Call
func (*PoolManager_Start_Call) Run ¶
func (_c *PoolManager_Start_Call) Run(run func()) *PoolManager_Start_Call
func (*PoolManager_Start_Call) RunAndReturn ¶
func (_c *PoolManager_Start_Call) RunAndReturn(run func() error) *PoolManager_Start_Call
type PoolManager_Status_Call ¶
PoolManager_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*PoolManager_Status_Call) Return ¶
func (_c *PoolManager_Status_Call) Return(_a0 params.PoolManagerStatus) *PoolManager_Status_Call
func (*PoolManager_Status_Call) Run ¶
func (_c *PoolManager_Status_Call) Run(run func()) *PoolManager_Status_Call
func (*PoolManager_Status_Call) RunAndReturn ¶
func (_c *PoolManager_Status_Call) RunAndReturn(run func() params.PoolManagerStatus) *PoolManager_Status_Call
type PoolManager_Stop_Call ¶
PoolManager_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*PoolManager_Stop_Call) Return ¶
func (_c *PoolManager_Stop_Call) Return(_a0 error) *PoolManager_Stop_Call
func (*PoolManager_Stop_Call) Run ¶
func (_c *PoolManager_Stop_Call) Run(run func()) *PoolManager_Stop_Call
func (*PoolManager_Stop_Call) RunAndReturn ¶
func (_c *PoolManager_Stop_Call) RunAndReturn(run func() error) *PoolManager_Stop_Call
type PoolManager_UninstallWebhook_Call ¶
PoolManager_UninstallWebhook_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UninstallWebhook'
func (*PoolManager_UninstallWebhook_Call) Return ¶
func (_c *PoolManager_UninstallWebhook_Call) Return(_a0 error) *PoolManager_UninstallWebhook_Call
func (*PoolManager_UninstallWebhook_Call) Run ¶
func (_c *PoolManager_UninstallWebhook_Call) Run(run func(ctx context.Context)) *PoolManager_UninstallWebhook_Call
func (*PoolManager_UninstallWebhook_Call) RunAndReturn ¶
func (_c *PoolManager_UninstallWebhook_Call) RunAndReturn(run func(context.Context) error) *PoolManager_UninstallWebhook_Call
type PoolManager_Wait_Call ¶
PoolManager_Wait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wait'
func (*PoolManager_Wait_Call) Return ¶
func (_c *PoolManager_Wait_Call) Return(_a0 error) *PoolManager_Wait_Call
func (*PoolManager_Wait_Call) Run ¶
func (_c *PoolManager_Wait_Call) Run(run func()) *PoolManager_Wait_Call
func (*PoolManager_Wait_Call) RunAndReturn ¶
func (_c *PoolManager_Wait_Call) RunAndReturn(run func() error) *PoolManager_Wait_Call
type PoolManager_WebhookSecret_Call ¶
PoolManager_WebhookSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WebhookSecret'
func (*PoolManager_WebhookSecret_Call) Return ¶
func (_c *PoolManager_WebhookSecret_Call) Return(_a0 string) *PoolManager_WebhookSecret_Call
func (*PoolManager_WebhookSecret_Call) Run ¶
func (_c *PoolManager_WebhookSecret_Call) Run(run func()) *PoolManager_WebhookSecret_Call
func (*PoolManager_WebhookSecret_Call) RunAndReturn ¶
func (_c *PoolManager_WebhookSecret_Call) RunAndReturn(run func() string) *PoolManager_WebhookSecret_Call
type Provider ¶
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶
NewProvider creates a new instance of Provider. 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 (*Provider) CreateInstance ¶
func (_m *Provider) CreateInstance(ctx context.Context, bootstrapParams garm_provider_commonparams.BootstrapInstance, createInstanceParams common.CreateInstanceParams) (garm_provider_commonparams.ProviderInstance, error)
CreateInstance provides a mock function with given fields: ctx, bootstrapParams, createInstanceParams
func (*Provider) DeleteInstance ¶
func (_m *Provider) DeleteInstance(ctx context.Context, instance string, deleteInstanceParams common.DeleteInstanceParams) error
DeleteInstance provides a mock function with given fields: ctx, instance, deleteInstanceParams
func (*Provider) DisableJITConfig ¶ added in v0.1.4
DisableJITConfig provides a mock function with no fields
func (*Provider) EXPECT ¶
func (_m *Provider) EXPECT() *Provider_Expecter
func (*Provider) GetInstance ¶
func (_m *Provider) GetInstance(ctx context.Context, instance string, getInstanceParams common.GetInstanceParams) (garm_provider_commonparams.ProviderInstance, error)
GetInstance provides a mock function with given fields: ctx, instance, getInstanceParams
func (*Provider) ListInstances ¶
func (_m *Provider) ListInstances(ctx context.Context, poolID string, listInstancesParams common.ListInstancesParams) ([]garm_provider_commonparams.ProviderInstance, error)
ListInstances provides a mock function with given fields: ctx, poolID, listInstancesParams
func (*Provider) RemoveAllInstances ¶
func (_m *Provider) RemoveAllInstances(ctx context.Context, removeAllInstancesParams common.RemoveAllInstancesParams) error
RemoveAllInstances provides a mock function with given fields: ctx, removeAllInstancesParams
type Provider_AsParams_Call ¶
Provider_AsParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AsParams'
func (*Provider_AsParams_Call) Return ¶
func (_c *Provider_AsParams_Call) Return(_a0 params.Provider) *Provider_AsParams_Call
func (*Provider_AsParams_Call) Run ¶
func (_c *Provider_AsParams_Call) Run(run func()) *Provider_AsParams_Call
func (*Provider_AsParams_Call) RunAndReturn ¶
func (_c *Provider_AsParams_Call) RunAndReturn(run func() params.Provider) *Provider_AsParams_Call
type Provider_CreateInstance_Call ¶
Provider_CreateInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateInstance'
func (*Provider_CreateInstance_Call) Return ¶
func (_c *Provider_CreateInstance_Call) Return(_a0 garm_provider_commonparams.ProviderInstance, _a1 error) *Provider_CreateInstance_Call
func (*Provider_CreateInstance_Call) Run ¶
func (_c *Provider_CreateInstance_Call) Run(run func(ctx context.Context, bootstrapParams garm_provider_commonparams.BootstrapInstance, createInstanceParams common.CreateInstanceParams)) *Provider_CreateInstance_Call
func (*Provider_CreateInstance_Call) RunAndReturn ¶
func (_c *Provider_CreateInstance_Call) RunAndReturn(run func(context.Context, garm_provider_commonparams.BootstrapInstance, common.CreateInstanceParams) (garm_provider_commonparams.ProviderInstance, error)) *Provider_CreateInstance_Call
type Provider_DeleteInstance_Call ¶
Provider_DeleteInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteInstance'
func (*Provider_DeleteInstance_Call) Return ¶
func (_c *Provider_DeleteInstance_Call) Return(_a0 error) *Provider_DeleteInstance_Call
func (*Provider_DeleteInstance_Call) Run ¶
func (_c *Provider_DeleteInstance_Call) Run(run func(ctx context.Context, instance string, deleteInstanceParams common.DeleteInstanceParams)) *Provider_DeleteInstance_Call
func (*Provider_DeleteInstance_Call) RunAndReturn ¶
func (_c *Provider_DeleteInstance_Call) RunAndReturn(run func(context.Context, string, common.DeleteInstanceParams) error) *Provider_DeleteInstance_Call
type Provider_DisableJITConfig_Call ¶
Provider_DisableJITConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisableJITConfig'
func (*Provider_DisableJITConfig_Call) Return ¶
func (_c *Provider_DisableJITConfig_Call) Return(_a0 bool) *Provider_DisableJITConfig_Call
func (*Provider_DisableJITConfig_Call) Run ¶
func (_c *Provider_DisableJITConfig_Call) Run(run func()) *Provider_DisableJITConfig_Call
func (*Provider_DisableJITConfig_Call) RunAndReturn ¶
func (_c *Provider_DisableJITConfig_Call) RunAndReturn(run func() bool) *Provider_DisableJITConfig_Call
type Provider_Expecter ¶
type Provider_Expecter struct {
// contains filtered or unexported fields
}
func (*Provider_Expecter) AsParams ¶
func (_e *Provider_Expecter) AsParams() *Provider_AsParams_Call
AsParams is a helper method to define mock.On call
func (*Provider_Expecter) CreateInstance ¶
func (_e *Provider_Expecter) CreateInstance(ctx interface{}, bootstrapParams interface{}, createInstanceParams interface{}) *Provider_CreateInstance_Call
CreateInstance is a helper method to define mock.On call
- ctx context.Context
- bootstrapParams garm_provider_commonparams.BootstrapInstance
- createInstanceParams common.CreateInstanceParams
func (*Provider_Expecter) DeleteInstance ¶
func (_e *Provider_Expecter) DeleteInstance(ctx interface{}, instance interface{}, deleteInstanceParams interface{}) *Provider_DeleteInstance_Call
DeleteInstance is a helper method to define mock.On call
- ctx context.Context
- instance string
- deleteInstanceParams common.DeleteInstanceParams
func (*Provider_Expecter) DisableJITConfig ¶
func (_e *Provider_Expecter) DisableJITConfig() *Provider_DisableJITConfig_Call
DisableJITConfig is a helper method to define mock.On call
func (*Provider_Expecter) GetInstance ¶
func (_e *Provider_Expecter) GetInstance(ctx interface{}, instance interface{}, getInstanceParams interface{}) *Provider_GetInstance_Call
GetInstance is a helper method to define mock.On call
- ctx context.Context
- instance string
- getInstanceParams common.GetInstanceParams
func (*Provider_Expecter) ListInstances ¶
func (_e *Provider_Expecter) ListInstances(ctx interface{}, poolID interface{}, listInstancesParams interface{}) *Provider_ListInstances_Call
ListInstances is a helper method to define mock.On call
- ctx context.Context
- poolID string
- listInstancesParams common.ListInstancesParams
func (*Provider_Expecter) RemoveAllInstances ¶
func (_e *Provider_Expecter) RemoveAllInstances(ctx interface{}, removeAllInstancesParams interface{}) *Provider_RemoveAllInstances_Call
RemoveAllInstances is a helper method to define mock.On call
- ctx context.Context
- removeAllInstancesParams common.RemoveAllInstancesParams
func (*Provider_Expecter) Start ¶
func (_e *Provider_Expecter) Start(ctx interface{}, instance interface{}, startParams interface{}) *Provider_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
- instance string
- startParams common.StartParams
func (*Provider_Expecter) Stop ¶
func (_e *Provider_Expecter) Stop(ctx interface{}, instance interface{}, stopParams interface{}) *Provider_Stop_Call
Stop is a helper method to define mock.On call
- ctx context.Context
- instance string
- stopParams common.StopParams
type Provider_GetInstance_Call ¶
Provider_GetInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstance'
func (*Provider_GetInstance_Call) Return ¶
func (_c *Provider_GetInstance_Call) Return(_a0 garm_provider_commonparams.ProviderInstance, _a1 error) *Provider_GetInstance_Call
func (*Provider_GetInstance_Call) Run ¶
func (_c *Provider_GetInstance_Call) Run(run func(ctx context.Context, instance string, getInstanceParams common.GetInstanceParams)) *Provider_GetInstance_Call
func (*Provider_GetInstance_Call) RunAndReturn ¶
func (_c *Provider_GetInstance_Call) RunAndReturn(run func(context.Context, string, common.GetInstanceParams) (garm_provider_commonparams.ProviderInstance, error)) *Provider_GetInstance_Call
type Provider_ListInstances_Call ¶
Provider_ListInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListInstances'
func (*Provider_ListInstances_Call) Return ¶
func (_c *Provider_ListInstances_Call) Return(_a0 []garm_provider_commonparams.ProviderInstance, _a1 error) *Provider_ListInstances_Call
func (*Provider_ListInstances_Call) Run ¶
func (_c *Provider_ListInstances_Call) Run(run func(ctx context.Context, poolID string, listInstancesParams common.ListInstancesParams)) *Provider_ListInstances_Call
func (*Provider_ListInstances_Call) RunAndReturn ¶
func (_c *Provider_ListInstances_Call) RunAndReturn(run func(context.Context, string, common.ListInstancesParams) ([]garm_provider_commonparams.ProviderInstance, error)) *Provider_ListInstances_Call
type Provider_RemoveAllInstances_Call ¶
Provider_RemoveAllInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveAllInstances'
func (*Provider_RemoveAllInstances_Call) Return ¶
func (_c *Provider_RemoveAllInstances_Call) Return(_a0 error) *Provider_RemoveAllInstances_Call
func (*Provider_RemoveAllInstances_Call) Run ¶
func (_c *Provider_RemoveAllInstances_Call) Run(run func(ctx context.Context, removeAllInstancesParams common.RemoveAllInstancesParams)) *Provider_RemoveAllInstances_Call
func (*Provider_RemoveAllInstances_Call) RunAndReturn ¶
func (_c *Provider_RemoveAllInstances_Call) RunAndReturn(run func(context.Context, common.RemoveAllInstancesParams) error) *Provider_RemoveAllInstances_Call
type Provider_Start_Call ¶
Provider_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Provider_Start_Call) Return ¶
func (_c *Provider_Start_Call) Return(_a0 error) *Provider_Start_Call
func (*Provider_Start_Call) Run ¶
func (_c *Provider_Start_Call) Run(run func(ctx context.Context, instance string, startParams common.StartParams)) *Provider_Start_Call
func (*Provider_Start_Call) RunAndReturn ¶
func (_c *Provider_Start_Call) RunAndReturn(run func(context.Context, string, common.StartParams) error) *Provider_Start_Call
type Provider_Stop_Call ¶
Provider_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*Provider_Stop_Call) Return ¶
func (_c *Provider_Stop_Call) Return(_a0 error) *Provider_Stop_Call
func (*Provider_Stop_Call) Run ¶
func (_c *Provider_Stop_Call) Run(run func(ctx context.Context, instance string, stopParams common.StopParams)) *Provider_Stop_Call
func (*Provider_Stop_Call) RunAndReturn ¶
func (_c *Provider_Stop_Call) RunAndReturn(run func(context.Context, string, common.StopParams) error) *Provider_Stop_Call
type RateLimitClient ¶
RateLimitClient is an autogenerated mock type for the RateLimitClient type
func NewRateLimitClient ¶
func NewRateLimitClient(t interface {
mock.TestingT
Cleanup(func())
}) *RateLimitClient
NewRateLimitClient creates a new instance of RateLimitClient. 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 (*RateLimitClient) EXPECT ¶
func (_m *RateLimitClient) EXPECT() *RateLimitClient_Expecter
func (*RateLimitClient) RateLimit ¶
func (_m *RateLimitClient) RateLimit(ctx context.Context) (*github.RateLimits, error)
RateLimit provides a mock function with given fields: ctx
type RateLimitClient_Expecter ¶
type RateLimitClient_Expecter struct {
// contains filtered or unexported fields
}
func (*RateLimitClient_Expecter) RateLimit ¶
func (_e *RateLimitClient_Expecter) RateLimit(ctx interface{}) *RateLimitClient_RateLimit_Call
RateLimit is a helper method to define mock.On call
- ctx context.Context
type RateLimitClient_RateLimit_Call ¶
RateLimitClient_RateLimit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RateLimit'
func (*RateLimitClient_RateLimit_Call) Return ¶
func (_c *RateLimitClient_RateLimit_Call) Return(_a0 *github.RateLimits, _a1 error) *RateLimitClient_RateLimit_Call
func (*RateLimitClient_RateLimit_Call) Run ¶
func (_c *RateLimitClient_RateLimit_Call) Run(run func(ctx context.Context)) *RateLimitClient_RateLimit_Call
func (*RateLimitClient_RateLimit_Call) RunAndReturn ¶
func (_c *RateLimitClient_RateLimit_Call) RunAndReturn(run func(context.Context) (*github.RateLimits, error)) *RateLimitClient_RateLimit_Call
type RepositoryHooks ¶ added in v0.1.4
RepositoryHooks is an autogenerated mock type for the RepositoryHooks type
func NewRepositoryHooks ¶ added in v0.1.4
func NewRepositoryHooks(t interface {
mock.TestingT
Cleanup(func())
}) *RepositoryHooks
NewRepositoryHooks creates a new instance of RepositoryHooks. 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 (*RepositoryHooks) CreateRepoHook ¶ added in v0.1.4
func (_m *RepositoryHooks) CreateRepoHook(ctx context.Context, owner string, repo string, hook *github.Hook) (*github.Hook, *github.Response, error)
CreateRepoHook provides a mock function with given fields: ctx, owner, repo, hook
func (*RepositoryHooks) DeleteRepoHook ¶ added in v0.1.4
func (_m *RepositoryHooks) DeleteRepoHook(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)
DeleteRepoHook provides a mock function with given fields: ctx, owner, repo, id
func (*RepositoryHooks) GetRepoHook ¶ added in v0.1.4
func (_m *RepositoryHooks) GetRepoHook(ctx context.Context, owner string, repo string, id int64) (*github.Hook, *github.Response, error)
GetRepoHook provides a mock function with given fields: ctx, owner, repo, id
func (*RepositoryHooks) ListRepoHooks ¶ added in v0.1.4
func (_m *RepositoryHooks) ListRepoHooks(ctx context.Context, owner string, repo string, opts *github.ListOptions) ([]*github.Hook, *github.Response, error)
ListRepoHooks provides a mock function with given fields: ctx, owner, repo, opts