mocks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubClient

type GithubClient struct {
	mock.Mock
}

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

func (_m *GithubClient) CreateOrganizationRegistrationToken(ctx context.Context, owner string) (*github.RegistrationToken, *github.Response, error)

CreateOrganizationRegistrationToken provides a mock function with given fields: ctx, owner

func (*GithubClient) CreateRegistrationToken

func (_m *GithubClient) CreateRegistrationToken(ctx context.Context, owner string, repo string) (*github.RegistrationToken, *github.Response, error)

CreateRegistrationToken provides a mock function with given fields: ctx, owner, repo

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

func (_m *GithubClient) ListOrganizationRunnerApplicationDownloads(ctx context.Context, owner string) ([]*github.RunnerApplicationDownload, *github.Response, error)

ListOrganizationRunnerApplicationDownloads provides a mock function with given fields: ctx, owner

func (*GithubClient) ListOrganizationRunners

func (_m *GithubClient) ListOrganizationRunners(ctx context.Context, owner string, opts *github.ListOptions) (*github.Runners, *github.Response, error)

ListOrganizationRunners provides a mock function with given fields: ctx, owner, opts

func (*GithubClient) ListRunnerApplicationDownloads

func (_m *GithubClient) ListRunnerApplicationDownloads(ctx context.Context, owner string, repo string) ([]*github.RunnerApplicationDownload, *github.Response, error)

ListRunnerApplicationDownloads provides a mock function with given fields: ctx, owner, repo

func (*GithubClient) ListRunners

func (_m *GithubClient) ListRunners(ctx context.Context, owner string, repo string, opts *github.ListOptions) (*github.Runners, *github.Response, error)

ListRunners provides a mock function with given fields: ctx, owner, repo, opts

func (*GithubClient) RemoveOrganizationRunner

func (_m *GithubClient) RemoveOrganizationRunner(ctx context.Context, owner string, runnerID int64) (*github.Response, error)

RemoveOrganizationRunner provides a mock function with given fields: ctx, owner, runnerID

func (*GithubClient) RemoveRunner

func (_m *GithubClient) RemoveRunner(ctx context.Context, owner string, repo string, runnerID int64) (*github.Response, error)

RemoveRunner provides a mock function with given fields: ctx, owner, repo, runnerID

type GithubEnterpriseClient

type GithubEnterpriseClient struct {
	mock.Mock
}

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

type PoolManager struct {
	mock.Mock
}

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

func (_m *PoolManager) ForceDeleteRunner(runner params.Instance) error

ForceDeleteRunner provides a mock function with given fields: runner

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

func (_m *PoolManager) RefreshState(param params.UpdatePoolStateParams) error

RefreshState provides a mock function with given fields: param

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

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *Provider

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

func (_m *Provider) AsParams() params.Provider

AsParams provides a mock function with given fields:

func (*Provider) CreateInstance

func (_m *Provider) CreateInstance(ctx context.Context, bootstrapParams params.BootstrapInstance) (params.Instance, error)

CreateInstance provides a mock function with given fields: ctx, bootstrapParams

func (*Provider) DeleteInstance

func (_m *Provider) DeleteInstance(ctx context.Context, instance string) error

DeleteInstance provides a mock function with given fields: ctx, instance

func (*Provider) GetInstance

func (_m *Provider) GetInstance(ctx context.Context, instance string) (params.Instance, error)

GetInstance provides a mock function with given fields: ctx, instance

func (*Provider) ListInstances

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

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

func (*Provider) RemoveAllInstances

func (_m *Provider) RemoveAllInstances(ctx context.Context) error

RemoveAllInstances provides a mock function with given fields: ctx

func (*Provider) Start

func (_m *Provider) Start(ctx context.Context, instance string) error

Start provides a mock function with given fields: ctx, instance

func (*Provider) Stop

func (_m *Provider) Stop(ctx context.Context, instance string, force bool) error

Stop provides a mock function with given fields: ctx, instance, force

Jump to

Keyboard shortcuts

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