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) 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) GetWorkflowJobByID(ctx context.Context, owner string, repo string, jobID int64) (*github.WorkflowJob, *github.Response, error)
- 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.ListOptions) (*github.Runners, *github.Response, error)
- func (_m *GithubClient) PingEntityHook(ctx context.Context, id int64) (*github.Response, error)
- func (_m *GithubClient) RemoveEntityRunner(ctx context.Context, runnerID int64) (*github.Response, error)
- 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) 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) 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.ListOptions) (*github.Runners, *github.Response, error)
- func (_m *GithubEntityOperations) PingEntityHook(ctx context.Context, id int64) (*github.Response, error)
- func (_m *GithubEntityOperations) RemoveEntityRunner(ctx context.Context, runnerID int64) (*github.Response, error)
- 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) DeleteRunner(runner params.Instance, forceRemove bool, bypassGHUnauthorizedError bool) error
- 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) 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 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) 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) error
- func (_m *Provider) Start(ctx context.Context, instance string) error
- func (_m *Provider) Stop(ctx context.Context, instance string) error
- 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) 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) 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) 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.ListOptions) (*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) RemoveEntityRunner ¶ added in v0.1.5
func (_m *GithubClient) RemoveEntityRunner(ctx context.Context, runnerID int64) (*github.Response, error)
RemoveEntityRunner provides a mock function with given fields: ctx, runnerID
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) 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) 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.ListOptions) (*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) RemoveEntityRunner ¶ added in v0.1.5
func (_m *GithubEntityOperations) RemoveEntityRunner(ctx context.Context, runnerID int64) (*github.Response, error)
RemoveEntityRunner provides a mock function with given fields: ctx, runnerID
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) DeleteRunner ¶ added in v0.1.4
func (_m *PoolManager) DeleteRunner(runner params.Instance, forceRemove bool, bypassGHUnauthorizedError bool) error
DeleteRunner provides a mock function with given fields: runner, forceRemove, bypassGHUnauthorizedError
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 given 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 given 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 given fields:
func (*PoolManager) Start ¶
func (_m *PoolManager) Start() error
Start provides a mock function with given fields:
func (*PoolManager) Status ¶
func (_m *PoolManager) Status() params.PoolManagerStatus
Status provides a mock function with given fields:
func (*PoolManager) Stop ¶
func (_m *PoolManager) Stop() error
Stop provides a mock function with given 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 given fields:
func (*PoolManager) WebhookSecret ¶
func (_m *PoolManager) WebhookSecret() string
WebhookSecret provides a mock function with given fields:
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) (garm_provider_commonparams.ProviderInstance, error)
CreateInstance provides a mock function with given fields: ctx, bootstrapParams
func (*Provider) DeleteInstance ¶
DeleteInstance provides a mock function with given fields: ctx, instance
func (*Provider) DisableJITConfig ¶ added in v0.1.4
DisableJITConfig provides a mock function with given fields:
func (*Provider) GetInstance ¶
func (_m *Provider) GetInstance(ctx context.Context, instance string) (garm_provider_commonparams.ProviderInstance, error)
GetInstance provides a mock function with given fields: ctx, instance
func (*Provider) ListInstances ¶
func (_m *Provider) ListInstances(ctx context.Context, poolID string) ([]garm_provider_commonparams.ProviderInstance, error)
ListInstances provides a mock function with given fields: ctx, poolID
func (*Provider) RemoveAllInstances ¶
RemoveAllInstances provides a mock function with given fields: ctx
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