mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (_m *GithubClient) DeleteEntityHook(ctx context.Context, id int64) (*github.Response, error)

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

func (*GithubClient) EXPECT added in v0.2.0

func (_m *GithubClient) EXPECT() *GithubClient_Expecter

func (*GithubClient) GetEntity added in v0.2.0

func (_m *GithubClient) GetEntity() params.ForgeEntity

GetEntity provides a mock function with no fields

func (*GithubClient) GetEntityHook added in v0.1.5

func (_m *GithubClient) GetEntityHook(ctx context.Context, id int64) (*github.Hook, error)

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 added in v0.2.0

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 added in v0.2.0

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

func (_m *GithubClient) PingEntityHook(ctx context.Context, id int64) (*github.Response, error)

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

func (*GithubClient) RateLimit added in v0.2.0

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 added in v0.2.0

type GithubClient_CreateEntityHook_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_CreateEntityHook_Call) Run added in v0.2.0

func (*GithubClient_CreateEntityHook_Call) RunAndReturn added in v0.2.0

type GithubClient_CreateEntityRegistrationToken_Call added in v0.2.0

type GithubClient_CreateEntityRegistrationToken_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_CreateEntityRegistrationToken_Call) Run added in v0.2.0

func (*GithubClient_CreateEntityRegistrationToken_Call) RunAndReturn added in v0.2.0

type GithubClient_DeleteEntityHook_Call added in v0.2.0

type GithubClient_DeleteEntityHook_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_DeleteEntityHook_Call) Run added in v0.2.0

func (*GithubClient_DeleteEntityHook_Call) RunAndReturn added in v0.2.0

type GithubClient_Expecter added in v0.2.0

type GithubClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*GithubClient_Expecter) CreateEntityHook added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

GetEntity is a helper method to define mock.On call

func (*GithubClient_Expecter) GetEntityHook added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

GithubBaseURL is a helper method to define mock.On call

func (*GithubClient_Expecter) ListEntityHooks added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

type GithubClient_GetEntityHook_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_GetEntityHook_Call) Run added in v0.2.0

func (*GithubClient_GetEntityHook_Call) RunAndReturn added in v0.2.0

type GithubClient_GetEntityJITConfig_Call added in v0.2.0

type GithubClient_GetEntityJITConfig_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_GetEntityJITConfig_Call) Run added in v0.2.0

func (*GithubClient_GetEntityJITConfig_Call) RunAndReturn added in v0.2.0

type GithubClient_GetEntityRunnerGroupIDByName_Call added in v0.2.0

type GithubClient_GetEntityRunnerGroupIDByName_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_GetEntityRunnerGroupIDByName_Call) Run added in v0.2.0

func (*GithubClient_GetEntityRunnerGroupIDByName_Call) RunAndReturn added in v0.2.0

type GithubClient_GetEntity_Call added in v0.2.0

type GithubClient_GetEntity_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_GetEntity_Call) Run added in v0.2.0

func (*GithubClient_GetEntity_Call) RunAndReturn added in v0.2.0

type GithubClient_GetWorkflowJobByID_Call added in v0.2.0

type GithubClient_GetWorkflowJobByID_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_GetWorkflowJobByID_Call) Run added in v0.2.0

func (*GithubClient_GetWorkflowJobByID_Call) RunAndReturn added in v0.2.0

type GithubClient_GithubBaseURL_Call added in v0.2.0

type GithubClient_GithubBaseURL_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_GithubBaseURL_Call) Run added in v0.2.0

func (*GithubClient_GithubBaseURL_Call) RunAndReturn added in v0.2.0

type GithubClient_ListEntityHooks_Call added in v0.2.0

type GithubClient_ListEntityHooks_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_ListEntityHooks_Call) Run added in v0.2.0

func (*GithubClient_ListEntityHooks_Call) RunAndReturn added in v0.2.0

type GithubClient_ListEntityRunnerApplicationDownloads_Call added in v0.2.0

type GithubClient_ListEntityRunnerApplicationDownloads_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_ListEntityRunnerApplicationDownloads_Call) Run added in v0.2.0

func (*GithubClient_ListEntityRunnerApplicationDownloads_Call) RunAndReturn added in v0.2.0

type GithubClient_ListEntityRunners_Call added in v0.2.0

type GithubClient_ListEntityRunners_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_ListEntityRunners_Call) Run added in v0.2.0

func (*GithubClient_ListEntityRunners_Call) RunAndReturn added in v0.2.0

type GithubClient_PingEntityHook_Call added in v0.2.0

type GithubClient_PingEntityHook_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_PingEntityHook_Call) Run added in v0.2.0

func (*GithubClient_PingEntityHook_Call) RunAndReturn added in v0.2.0

type GithubClient_RateLimit_Call added in v0.2.0

type GithubClient_RateLimit_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_RateLimit_Call) Run added in v0.2.0

func (*GithubClient_RateLimit_Call) RunAndReturn added in v0.2.0

type GithubClient_RemoveEntityRunner_Call added in v0.2.0

type GithubClient_RemoveEntityRunner_Call struct {
	*mock.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 added in v0.2.0

func (*GithubClient_RemoveEntityRunner_Call) Run added in v0.2.0

func (*GithubClient_RemoveEntityRunner_Call) RunAndReturn added in v0.2.0

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

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

type GithubEntityOperations struct {
	mock.Mock
}

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 added in v0.2.0

func (*GithubEntityOperations) GetEntity added in v0.2.0

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 added in v0.2.0

func (_m *GithubEntityOperations) GetEntityRunnerGroupIDByName(ctx context.Context, runnerGroupName string) (int64, error)

GetEntityRunnerGroupIDByName provides a mock function with given fields: ctx, runnerGroupName

func (*GithubEntityOperations) GithubBaseURL added in v0.2.0

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

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 added in v0.2.0

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 added in v0.2.0

type GithubEntityOperations_CreateEntityHook_Call struct {
	*mock.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 added in v0.2.0

func (*GithubEntityOperations_CreateEntityHook_Call) Run added in v0.2.0

func (*GithubEntityOperations_CreateEntityHook_Call) RunAndReturn added in v0.2.0

type GithubEntityOperations_CreateEntityRegistrationToken_Call added in v0.2.0

type GithubEntityOperations_CreateEntityRegistrationToken_Call struct {
	*mock.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 added in v0.2.0

func (*GithubEntityOperations_CreateEntityRegistrationToken_Call) Run added in v0.2.0

func (*GithubEntityOperations_CreateEntityRegistrationToken_Call) RunAndReturn added in v0.2.0

type GithubEntityOperations_DeleteEntityHook_Call added in v0.2.0

type GithubEntityOperations_DeleteEntityHook_Call struct {
	*mock.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 added in v0.2.0

func (*GithubEntityOperations_DeleteEntityHook_Call) Run added in v0.2.0

func (*GithubEntityOperations_DeleteEntityHook_Call) RunAndReturn added in v0.2.0

type GithubEntityOperations_Expecter added in v0.2.0

type GithubEntityOperations_Expecter struct {
	// contains filtered or unexported fields
}

func (*GithubEntityOperations_Expecter) CreateEntityHook added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

GetEntity is a helper method to define mock.On call

func (*GithubEntityOperations_Expecter) GetEntityHook added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

GithubBaseURL is a helper method to define mock.On call

func (*GithubEntityOperations_Expecter) ListEntityHooks added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

RateLimit is a helper method to define mock.On call

  • ctx context.Context

func (*GithubEntityOperations_Expecter) RemoveEntityRunner added in v0.2.0

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 added in v0.2.0

type GithubEntityOperations_GetEntityHook_Call struct {
	*mock.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 added in v0.2.0

func (*GithubEntityOperations_GetEntityHook_Call) Run added in v0.2.0

func (*GithubEntityOperations_GetEntityHook_Call) RunAndReturn added in v0.2.0

type GithubEntityOperations_GetEntityJITConfig_Call added in v0.2.0

type GithubEntityOperations_GetEntityJITConfig_Call struct {
	*mock.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 added in v0.2.0

func (*GithubEntityOperations_GetEntityJITConfig_Call) Run added in v0.2.0

func (*GithubEntityOperations_GetEntityJITConfig_Call) RunAndReturn added in v0.2.0

type GithubEntityOperations_GetEntityRunnerGroupIDByName_Call added in v0.2.0

type GithubEntityOperations_GetEntityRunnerGroupIDByName_Call struct {
	*mock.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 added in v0.2.0

func (*GithubEntityOperations_GetEntityRunnerGroupIDByName_Call) Run added in v0.2.0

func (*GithubEntityOperations_GetEntityRunnerGroupIDByName_Call) RunAndReturn added in v0.2.0

type GithubEntityOperations_GetEntity_Call added in v0.2.0

type GithubEntityOperations_GetEntity_Call struct {
	*mock.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 added in v0.2.0

func (*GithubEntityOperations_GetEntity_Call) Run added in v0.2.0

func (*GithubEntityOperations_GetEntity_Call) RunAndReturn added in v0.2.0

type GithubEntityOperations_GithubBaseURL_Call added in v0.2.0

type GithubEntityOperations_GithubBaseURL_Call struct {
	*mock.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 added in v0.2.0

func (*GithubEntityOperations_GithubBaseURL_Call) Run added in v0.2.0

func (*GithubEntityOperations_GithubBaseURL_Call) RunAndReturn added in v0.2.0

type GithubEntityOperations_ListEntityHooks_Call added in v0.2.0

type GithubEntityOperations_ListEntityHooks_Call struct {
	*mock.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 added in v0.2.0

func (*GithubEntityOperations_ListEntityHooks_Call) Run added in v0.2.0

func (*GithubEntityOperations_ListEntityHooks_Call) RunAndReturn added in v0.2.0

type GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call added in v0.2.0

type GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call struct {
	*mock.Call
}

GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEntityRunnerApplicationDownloads'

func (*GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call) Return added in v0.2.0

func (*GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call) Run added in v0.2.0

func (*GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call) RunAndReturn added in v0.2.0

type GithubEntityOperations_ListEntityRunners_Call added in v0.2.0

type GithubEntityOperations_ListEntityRunners_Call struct {
	*mock.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 added in v0.2.0

func (*GithubEntityOperations_ListEntityRunners_Call) Run added in v0.2.0

func (*GithubEntityOperations_ListEntityRunners_Call) RunAndReturn added in v0.2.0

type GithubEntityOperations_PingEntityHook_Call added in v0.2.0

type GithubEntityOperations_PingEntityHook_Call struct {
	*mock.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 added in v0.2.0

func (*GithubEntityOperations_PingEntityHook_Call) Run added in v0.2.0

func (*GithubEntityOperations_PingEntityHook_Call) RunAndReturn added in v0.2.0

type GithubEntityOperations_RateLimit_Call added in v0.2.0

type GithubEntityOperations_RateLimit_Call struct {
	*mock.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 added in v0.2.0

func (*GithubEntityOperations_RateLimit_Call) Run added in v0.2.0

func (*GithubEntityOperations_RateLimit_Call) RunAndReturn added in v0.2.0

type GithubEntityOperations_RemoveEntityRunner_Call added in v0.2.0

type GithubEntityOperations_RemoveEntityRunner_Call struct {
	*mock.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 added in v0.2.0

func (*GithubEntityOperations_RemoveEntityRunner_Call) Run added in v0.2.0

func (*GithubEntityOperations_RemoveEntityRunner_Call) RunAndReturn added in v0.2.0

type OrganizationHooks added in v0.1.4

type OrganizationHooks struct {
	mock.Mock
}

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

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) EXPECT added in v0.2.0

func (_m *PoolManager) EXPECT() *PoolManager_Expecter

func (*PoolManager) GetWebhookInfo added in v0.1.4

func (_m *PoolManager) GetWebhookInfo(ctx context.Context) (params.HookInfo, error)

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 added in v0.2.0

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 added in v0.2.0

type PoolManager_Expecter struct {
	// contains filtered or unexported fields
}

func (*PoolManager_Expecter) GetWebhookInfo added in v0.2.0

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 added in v0.2.0

func (_e *PoolManager_Expecter) GithubRunnerRegistrationToken() *PoolManager_GithubRunnerRegistrationToken_Call

GithubRunnerRegistrationToken is a helper method to define mock.On call

func (*PoolManager_Expecter) HandleWorkflowJob added in v0.2.0

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 added in v0.2.0

ID is a helper method to define mock.On call

func (*PoolManager_Expecter) InstallWebhook added in v0.2.0

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 added in v0.2.0

RootCABundle is a helper method to define mock.On call

func (*PoolManager_Expecter) SetPoolRunningState added in v0.2.0

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 added in v0.2.0

Start is a helper method to define mock.On call

func (*PoolManager_Expecter) Status added in v0.2.0

Status is a helper method to define mock.On call

func (*PoolManager_Expecter) Stop added in v0.2.0

Stop is a helper method to define mock.On call

func (*PoolManager_Expecter) UninstallWebhook added in v0.2.0

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 added in v0.2.0

Wait is a helper method to define mock.On call

func (*PoolManager_Expecter) WebhookSecret added in v0.2.0

WebhookSecret is a helper method to define mock.On call

type PoolManager_GetWebhookInfo_Call added in v0.2.0

type PoolManager_GetWebhookInfo_Call struct {
	*mock.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 added in v0.2.0

func (*PoolManager_GetWebhookInfo_Call) Run added in v0.2.0

func (*PoolManager_GetWebhookInfo_Call) RunAndReturn added in v0.2.0

type PoolManager_GithubRunnerRegistrationToken_Call added in v0.2.0

type PoolManager_GithubRunnerRegistrationToken_Call struct {
	*mock.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 added in v0.2.0

func (*PoolManager_GithubRunnerRegistrationToken_Call) Run added in v0.2.0

func (*PoolManager_GithubRunnerRegistrationToken_Call) RunAndReturn added in v0.2.0

type PoolManager_HandleWorkflowJob_Call added in v0.2.0

type PoolManager_HandleWorkflowJob_Call struct {
	*mock.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 added in v0.2.0

func (*PoolManager_HandleWorkflowJob_Call) Run added in v0.2.0

func (*PoolManager_HandleWorkflowJob_Call) RunAndReturn added in v0.2.0

type PoolManager_ID_Call added in v0.2.0

type PoolManager_ID_Call struct {
	*mock.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 added in v0.2.0

func (*PoolManager_ID_Call) Run added in v0.2.0

func (_c *PoolManager_ID_Call) Run(run func()) *PoolManager_ID_Call

func (*PoolManager_ID_Call) RunAndReturn added in v0.2.0

func (_c *PoolManager_ID_Call) RunAndReturn(run func() string) *PoolManager_ID_Call

type PoolManager_InstallWebhook_Call added in v0.2.0

type PoolManager_InstallWebhook_Call struct {
	*mock.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 added in v0.2.0

func (*PoolManager_InstallWebhook_Call) Run added in v0.2.0

func (*PoolManager_InstallWebhook_Call) RunAndReturn added in v0.2.0

type PoolManager_RootCABundle_Call added in v0.2.0

type PoolManager_RootCABundle_Call struct {
	*mock.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 added in v0.2.0

func (*PoolManager_RootCABundle_Call) Run added in v0.2.0

func (*PoolManager_RootCABundle_Call) RunAndReturn added in v0.2.0

type PoolManager_SetPoolRunningState_Call added in v0.2.0

type PoolManager_SetPoolRunningState_Call struct {
	*mock.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 added in v0.2.0

func (*PoolManager_SetPoolRunningState_Call) Run added in v0.2.0

func (_c *PoolManager_SetPoolRunningState_Call) Run(run func(isRunning bool, failureReason string)) *PoolManager_SetPoolRunningState_Call

func (*PoolManager_SetPoolRunningState_Call) RunAndReturn added in v0.2.0

type PoolManager_Start_Call added in v0.2.0

type PoolManager_Start_Call struct {
	*mock.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 added in v0.2.0

func (*PoolManager_Start_Call) Run added in v0.2.0

func (_c *PoolManager_Start_Call) Run(run func()) *PoolManager_Start_Call

func (*PoolManager_Start_Call) RunAndReturn added in v0.2.0

func (_c *PoolManager_Start_Call) RunAndReturn(run func() error) *PoolManager_Start_Call

type PoolManager_Status_Call added in v0.2.0

type PoolManager_Status_Call struct {
	*mock.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 added in v0.2.0

func (*PoolManager_Status_Call) Run added in v0.2.0

func (_c *PoolManager_Status_Call) Run(run func()) *PoolManager_Status_Call

func (*PoolManager_Status_Call) RunAndReturn added in v0.2.0

type PoolManager_Stop_Call added in v0.2.0

type PoolManager_Stop_Call struct {
	*mock.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 added in v0.2.0

func (*PoolManager_Stop_Call) Run added in v0.2.0

func (_c *PoolManager_Stop_Call) Run(run func()) *PoolManager_Stop_Call

func (*PoolManager_Stop_Call) RunAndReturn added in v0.2.0

func (_c *PoolManager_Stop_Call) RunAndReturn(run func() error) *PoolManager_Stop_Call

type PoolManager_UninstallWebhook_Call added in v0.2.0

type PoolManager_UninstallWebhook_Call struct {
	*mock.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 added in v0.2.0

func (*PoolManager_UninstallWebhook_Call) Run added in v0.2.0

func (*PoolManager_UninstallWebhook_Call) RunAndReturn added in v0.2.0

type PoolManager_Wait_Call added in v0.2.0

type PoolManager_Wait_Call struct {
	*mock.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 added in v0.2.0

func (*PoolManager_Wait_Call) Run added in v0.2.0

func (_c *PoolManager_Wait_Call) Run(run func()) *PoolManager_Wait_Call

func (*PoolManager_Wait_Call) RunAndReturn added in v0.2.0

func (_c *PoolManager_Wait_Call) RunAndReturn(run func() error) *PoolManager_Wait_Call

type PoolManager_WebhookSecret_Call added in v0.2.0

type PoolManager_WebhookSecret_Call struct {
	*mock.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 added in v0.2.0

func (*PoolManager_WebhookSecret_Call) Run added in v0.2.0

func (*PoolManager_WebhookSecret_Call) RunAndReturn added in v0.2.0

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 no fields

func (*Provider) CreateInstance

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

func (_m *Provider) DisableJITConfig() bool

DisableJITConfig provides a mock function with no fields

func (*Provider) EXPECT added in v0.2.0

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

func (*Provider) Start

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

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

func (*Provider) Stop

func (_m *Provider) Stop(ctx context.Context, instance string, stopParams common.StopParams) error

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

type Provider_AsParams_Call added in v0.2.0

type Provider_AsParams_Call struct {
	*mock.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 added in v0.2.0

func (*Provider_AsParams_Call) Run added in v0.2.0

func (_c *Provider_AsParams_Call) Run(run func()) *Provider_AsParams_Call

func (*Provider_AsParams_Call) RunAndReturn added in v0.2.0

func (_c *Provider_AsParams_Call) RunAndReturn(run func() params.Provider) *Provider_AsParams_Call

type Provider_CreateInstance_Call added in v0.2.0

type Provider_CreateInstance_Call struct {
	*mock.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 added in v0.2.0

func (*Provider_CreateInstance_Call) Run added in v0.2.0

type Provider_DeleteInstance_Call added in v0.2.0

type Provider_DeleteInstance_Call struct {
	*mock.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 added in v0.2.0

func (*Provider_DeleteInstance_Call) Run added in v0.2.0

func (_c *Provider_DeleteInstance_Call) Run(run func(ctx context.Context, instance string, deleteInstanceParams common.DeleteInstanceParams)) *Provider_DeleteInstance_Call

func (*Provider_DeleteInstance_Call) RunAndReturn added in v0.2.0

type Provider_DisableJITConfig_Call added in v0.2.0

type Provider_DisableJITConfig_Call struct {
	*mock.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 added in v0.2.0

func (*Provider_DisableJITConfig_Call) Run added in v0.2.0

func (*Provider_DisableJITConfig_Call) RunAndReturn added in v0.2.0

type Provider_Expecter added in v0.2.0

type Provider_Expecter struct {
	// contains filtered or unexported fields
}

func (*Provider_Expecter) AsParams added in v0.2.0

func (_e *Provider_Expecter) AsParams() *Provider_AsParams_Call

AsParams is a helper method to define mock.On call

func (*Provider_Expecter) CreateInstance added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

func (_e *Provider_Expecter) DisableJITConfig() *Provider_DisableJITConfig_Call

DisableJITConfig is a helper method to define mock.On call

func (*Provider_Expecter) GetInstance added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

type Provider_GetInstance_Call struct {
	*mock.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 added in v0.2.0

func (*Provider_GetInstance_Call) Run added in v0.2.0

func (_c *Provider_GetInstance_Call) Run(run func(ctx context.Context, instance string, getInstanceParams common.GetInstanceParams)) *Provider_GetInstance_Call

func (*Provider_GetInstance_Call) RunAndReturn added in v0.2.0

type Provider_ListInstances_Call added in v0.2.0

type Provider_ListInstances_Call struct {
	*mock.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 added in v0.2.0

func (*Provider_ListInstances_Call) Run added in v0.2.0

func (_c *Provider_ListInstances_Call) Run(run func(ctx context.Context, poolID string, listInstancesParams common.ListInstancesParams)) *Provider_ListInstances_Call

func (*Provider_ListInstances_Call) RunAndReturn added in v0.2.0

type Provider_RemoveAllInstances_Call added in v0.2.0

type Provider_RemoveAllInstances_Call struct {
	*mock.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 added in v0.2.0

func (*Provider_RemoveAllInstances_Call) Run added in v0.2.0

func (*Provider_RemoveAllInstances_Call) RunAndReturn added in v0.2.0

type Provider_Start_Call added in v0.2.0

type Provider_Start_Call struct {
	*mock.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 added in v0.2.0

func (*Provider_Start_Call) Run added in v0.2.0

func (_c *Provider_Start_Call) Run(run func(ctx context.Context, instance string, startParams common.StartParams)) *Provider_Start_Call

func (*Provider_Start_Call) RunAndReturn added in v0.2.0

type Provider_Stop_Call added in v0.2.0

type Provider_Stop_Call struct {
	*mock.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 added in v0.2.0

func (_c *Provider_Stop_Call) Return(_a0 error) *Provider_Stop_Call

func (*Provider_Stop_Call) Run added in v0.2.0

func (_c *Provider_Stop_Call) Run(run func(ctx context.Context, instance string, stopParams common.StopParams)) *Provider_Stop_Call

func (*Provider_Stop_Call) RunAndReturn added in v0.2.0

type RateLimitClient added in v0.2.0

type RateLimitClient struct {
	mock.Mock
}

RateLimitClient is an autogenerated mock type for the RateLimitClient type

func NewRateLimitClient added in v0.2.0

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 added in v0.2.0

func (*RateLimitClient) RateLimit added in v0.2.0

func (_m *RateLimitClient) RateLimit(ctx context.Context) (*github.RateLimits, error)

RateLimit provides a mock function with given fields: ctx

type RateLimitClient_Expecter added in v0.2.0

type RateLimitClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*RateLimitClient_Expecter) RateLimit added in v0.2.0

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 added in v0.2.0

type RateLimitClient_RateLimit_Call struct {
	*mock.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 added in v0.2.0

func (*RateLimitClient_RateLimit_Call) Run added in v0.2.0

func (*RateLimitClient_RateLimit_Call) RunAndReturn added in v0.2.0

type RepositoryHooks added in v0.1.4

type RepositoryHooks struct {
	mock.Mock
}

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

func (*RepositoryHooks) PingRepoHook added in v0.1.4

func (_m *RepositoryHooks) PingRepoHook(ctx context.Context, owner string, repo string, id int64) (*github.Response, error)

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

Jump to

Keyboard shortcuts

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