mocks

package
v0.2.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 7 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) 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

func (_m *GithubClient) EXPECT() *GithubClient_Expecter

func (*GithubClient) GetEntity

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

GetEntity provides a mock function with no fields

func (*GithubClient) GetEntityHook added in v0.1.5

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

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

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

func (*GithubClient) GetWorkflowJobByID

func (_m *GithubClient) GetWorkflowJobByID(ctx context.Context, owner string, repo string, jobID int64) (*github.WorkflowJob, *github.Response, error)

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

func (*GithubClient) GithubBaseURL

func (_m *GithubClient) GithubBaseURL() *url.URL

GithubBaseURL provides a mock function with no fields

func (*GithubClient) ListEntityHooks added in v0.1.5

func (_m *GithubClient) ListEntityHooks(ctx context.Context, opts *github.ListOptions) ([]*github.Hook, *github.Response, error)

ListEntityHooks provides a mock function with given fields: ctx, opts

func (*GithubClient) ListEntityRunnerApplicationDownloads added in v0.1.5

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

ListEntityRunnerApplicationDownloads provides a mock function with given fields: ctx

func (*GithubClient) ListEntityRunners added in v0.1.5

func (_m *GithubClient) ListEntityRunners(ctx context.Context, opts *github.ListRunnersOptions) (*github.Runners, *github.Response, error)

ListEntityRunners provides a mock function with given fields: ctx, opts

func (*GithubClient) PingEntityHook added in v0.1.5

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

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

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

func (*GithubClient_CreateEntityHook_Call) Run

func (*GithubClient_CreateEntityHook_Call) RunAndReturn

type GithubClient_CreateEntityRegistrationToken_Call

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

func (*GithubClient_CreateEntityRegistrationToken_Call) Run

func (*GithubClient_CreateEntityRegistrationToken_Call) RunAndReturn

type GithubClient_DeleteEntityHook_Call

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

func (*GithubClient_DeleteEntityHook_Call) Run

func (*GithubClient_DeleteEntityHook_Call) RunAndReturn

type GithubClient_Expecter

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

func (*GithubClient_Expecter) CreateEntityHook

func (_e *GithubClient_Expecter) CreateEntityHook(ctx interface{}, hook interface{}) *GithubClient_CreateEntityHook_Call

CreateEntityHook is a helper method to define mock.On call

  • ctx context.Context
  • hook *github.Hook

func (*GithubClient_Expecter) CreateEntityRegistrationToken

func (_e *GithubClient_Expecter) CreateEntityRegistrationToken(ctx interface{}) *GithubClient_CreateEntityRegistrationToken_Call

CreateEntityRegistrationToken is a helper method to define mock.On call

  • ctx context.Context

func (*GithubClient_Expecter) DeleteEntityHook

func (_e *GithubClient_Expecter) DeleteEntityHook(ctx interface{}, id interface{}) *GithubClient_DeleteEntityHook_Call

DeleteEntityHook is a helper method to define mock.On call

  • ctx context.Context
  • id int64

func (*GithubClient_Expecter) GetEntity

GetEntity is a helper method to define mock.On call

func (*GithubClient_Expecter) GetEntityHook

func (_e *GithubClient_Expecter) GetEntityHook(ctx interface{}, id interface{}) *GithubClient_GetEntityHook_Call

GetEntityHook is a helper method to define mock.On call

  • ctx context.Context
  • id int64

func (*GithubClient_Expecter) GetEntityJITConfig

func (_e *GithubClient_Expecter) GetEntityJITConfig(ctx interface{}, instance interface{}, pool interface{}, labels interface{}) *GithubClient_GetEntityJITConfig_Call

GetEntityJITConfig is a helper method to define mock.On call

  • ctx context.Context
  • instance string
  • pool params.Pool
  • labels []string

func (*GithubClient_Expecter) GetEntityRunnerGroupIDByName

func (_e *GithubClient_Expecter) GetEntityRunnerGroupIDByName(ctx interface{}, runnerGroupName interface{}) *GithubClient_GetEntityRunnerGroupIDByName_Call

GetEntityRunnerGroupIDByName is a helper method to define mock.On call

  • ctx context.Context
  • runnerGroupName string

func (*GithubClient_Expecter) GetWorkflowJobByID

func (_e *GithubClient_Expecter) GetWorkflowJobByID(ctx interface{}, owner interface{}, repo interface{}, jobID interface{}) *GithubClient_GetWorkflowJobByID_Call

GetWorkflowJobByID is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • repo string
  • jobID int64

func (*GithubClient_Expecter) GithubBaseURL

GithubBaseURL is a helper method to define mock.On call

func (*GithubClient_Expecter) ListEntityHooks

func (_e *GithubClient_Expecter) ListEntityHooks(ctx interface{}, opts interface{}) *GithubClient_ListEntityHooks_Call

ListEntityHooks is a helper method to define mock.On call

  • ctx context.Context
  • opts *github.ListOptions

func (*GithubClient_Expecter) ListEntityRunnerApplicationDownloads

func (_e *GithubClient_Expecter) ListEntityRunnerApplicationDownloads(ctx interface{}) *GithubClient_ListEntityRunnerApplicationDownloads_Call

ListEntityRunnerApplicationDownloads is a helper method to define mock.On call

  • ctx context.Context

func (*GithubClient_Expecter) ListEntityRunners

func (_e *GithubClient_Expecter) ListEntityRunners(ctx interface{}, opts interface{}) *GithubClient_ListEntityRunners_Call

ListEntityRunners is a helper method to define mock.On call

  • ctx context.Context
  • opts *github.ListRunnersOptions

func (*GithubClient_Expecter) PingEntityHook

func (_e *GithubClient_Expecter) PingEntityHook(ctx interface{}, id interface{}) *GithubClient_PingEntityHook_Call

PingEntityHook is a helper method to define mock.On call

  • ctx context.Context
  • id int64

func (*GithubClient_Expecter) RateLimit

func (_e *GithubClient_Expecter) RateLimit(ctx interface{}) *GithubClient_RateLimit_Call

RateLimit is a helper method to define mock.On call

  • ctx context.Context

func (*GithubClient_Expecter) RemoveEntityRunner

func (_e *GithubClient_Expecter) RemoveEntityRunner(ctx interface{}, runnerID interface{}) *GithubClient_RemoveEntityRunner_Call

RemoveEntityRunner is a helper method to define mock.On call

  • ctx context.Context
  • runnerID int64

type GithubClient_GetEntityHook_Call

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

func (*GithubClient_GetEntityHook_Call) Run

func (*GithubClient_GetEntityHook_Call) RunAndReturn

type GithubClient_GetEntityJITConfig_Call

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

func (*GithubClient_GetEntityJITConfig_Call) Run

func (*GithubClient_GetEntityJITConfig_Call) RunAndReturn

type GithubClient_GetEntityRunnerGroupIDByName_Call

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

func (*GithubClient_GetEntityRunnerGroupIDByName_Call) Run

func (*GithubClient_GetEntityRunnerGroupIDByName_Call) RunAndReturn

type GithubClient_GetEntity_Call

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

func (*GithubClient_GetEntity_Call) Run

func (*GithubClient_GetEntity_Call) RunAndReturn

type GithubClient_GetWorkflowJobByID_Call

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

func (*GithubClient_GetWorkflowJobByID_Call) Run

func (*GithubClient_GetWorkflowJobByID_Call) RunAndReturn

type GithubClient_GithubBaseURL_Call

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

func (*GithubClient_GithubBaseURL_Call) Run

func (*GithubClient_GithubBaseURL_Call) RunAndReturn

type GithubClient_ListEntityHooks_Call

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

func (*GithubClient_ListEntityHooks_Call) Run

func (*GithubClient_ListEntityHooks_Call) RunAndReturn

type GithubClient_ListEntityRunnerApplicationDownloads_Call

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

func (*GithubClient_ListEntityRunnerApplicationDownloads_Call) Run

type GithubClient_ListEntityRunners_Call

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

func (*GithubClient_ListEntityRunners_Call) Run

type GithubClient_PingEntityHook_Call

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

func (*GithubClient_PingEntityHook_Call) Run

func (*GithubClient_PingEntityHook_Call) RunAndReturn

type GithubClient_RateLimit_Call

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

func (*GithubClient_RateLimit_Call) Run

func (*GithubClient_RateLimit_Call) RunAndReturn

type GithubClient_RemoveEntityRunner_Call

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

func (*GithubClient_RemoveEntityRunner_Call) Run

func (*GithubClient_RemoveEntityRunner_Call) RunAndReturn

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

func (*GithubEntityOperations) GetEntity

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

GetEntity provides a mock function with no fields

func (*GithubEntityOperations) GetEntityHook added in v0.1.5

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

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

func (*GithubEntityOperations) GetEntityJITConfig added in v0.1.5

func (_m *GithubEntityOperations) GetEntityJITConfig(ctx context.Context, instance string, pool params.Pool, labels []string) (map[string]string, *github.Runner, error)

GetEntityJITConfig provides a mock function with given fields: ctx, instance, pool, labels

func (*GithubEntityOperations) GetEntityRunnerGroupIDByName

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

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

func (*GithubEntityOperations) GithubBaseURL

func (_m *GithubEntityOperations) GithubBaseURL() *url.URL

GithubBaseURL provides a mock function with no fields

func (*GithubEntityOperations) ListEntityHooks added in v0.1.5

func (_m *GithubEntityOperations) ListEntityHooks(ctx context.Context, opts *github.ListOptions) ([]*github.Hook, *github.Response, error)

ListEntityHooks provides a mock function with given fields: ctx, opts

func (*GithubEntityOperations) ListEntityRunnerApplicationDownloads added in v0.1.5

func (_m *GithubEntityOperations) ListEntityRunnerApplicationDownloads(ctx context.Context) ([]*github.RunnerApplicationDownload, *github.Response, error)

ListEntityRunnerApplicationDownloads provides a mock function with given fields: ctx

func (*GithubEntityOperations) ListEntityRunners added in v0.1.5

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

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

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

func (*GithubEntityOperations_CreateEntityHook_Call) Run

func (*GithubEntityOperations_CreateEntityHook_Call) RunAndReturn

type GithubEntityOperations_CreateEntityRegistrationToken_Call

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

func (*GithubEntityOperations_CreateEntityRegistrationToken_Call) Run

type GithubEntityOperations_DeleteEntityHook_Call

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

func (*GithubEntityOperations_DeleteEntityHook_Call) Run

func (*GithubEntityOperations_DeleteEntityHook_Call) RunAndReturn

type GithubEntityOperations_Expecter

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

func (*GithubEntityOperations_Expecter) CreateEntityHook

func (_e *GithubEntityOperations_Expecter) CreateEntityHook(ctx interface{}, hook interface{}) *GithubEntityOperations_CreateEntityHook_Call

CreateEntityHook is a helper method to define mock.On call

  • ctx context.Context
  • hook *github.Hook

func (*GithubEntityOperations_Expecter) CreateEntityRegistrationToken

func (_e *GithubEntityOperations_Expecter) CreateEntityRegistrationToken(ctx interface{}) *GithubEntityOperations_CreateEntityRegistrationToken_Call

CreateEntityRegistrationToken is a helper method to define mock.On call

  • ctx context.Context

func (*GithubEntityOperations_Expecter) DeleteEntityHook

func (_e *GithubEntityOperations_Expecter) DeleteEntityHook(ctx interface{}, id interface{}) *GithubEntityOperations_DeleteEntityHook_Call

DeleteEntityHook is a helper method to define mock.On call

  • ctx context.Context
  • id int64

func (*GithubEntityOperations_Expecter) GetEntity

GetEntity is a helper method to define mock.On call

func (*GithubEntityOperations_Expecter) GetEntityHook

func (_e *GithubEntityOperations_Expecter) GetEntityHook(ctx interface{}, id interface{}) *GithubEntityOperations_GetEntityHook_Call

GetEntityHook is a helper method to define mock.On call

  • ctx context.Context
  • id int64

func (*GithubEntityOperations_Expecter) GetEntityJITConfig

func (_e *GithubEntityOperations_Expecter) GetEntityJITConfig(ctx interface{}, instance interface{}, pool interface{}, labels interface{}) *GithubEntityOperations_GetEntityJITConfig_Call

GetEntityJITConfig is a helper method to define mock.On call

  • ctx context.Context
  • instance string
  • pool params.Pool
  • labels []string

func (*GithubEntityOperations_Expecter) GetEntityRunnerGroupIDByName

func (_e *GithubEntityOperations_Expecter) GetEntityRunnerGroupIDByName(ctx interface{}, runnerGroupName interface{}) *GithubEntityOperations_GetEntityRunnerGroupIDByName_Call

GetEntityRunnerGroupIDByName is a helper method to define mock.On call

  • ctx context.Context
  • runnerGroupName string

func (*GithubEntityOperations_Expecter) GithubBaseURL

GithubBaseURL is a helper method to define mock.On call

func (*GithubEntityOperations_Expecter) ListEntityHooks

func (_e *GithubEntityOperations_Expecter) ListEntityHooks(ctx interface{}, opts interface{}) *GithubEntityOperations_ListEntityHooks_Call

ListEntityHooks is a helper method to define mock.On call

  • ctx context.Context
  • opts *github.ListOptions

func (*GithubEntityOperations_Expecter) ListEntityRunnerApplicationDownloads

func (_e *GithubEntityOperations_Expecter) ListEntityRunnerApplicationDownloads(ctx interface{}) *GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call

ListEntityRunnerApplicationDownloads is a helper method to define mock.On call

  • ctx context.Context

func (*GithubEntityOperations_Expecter) ListEntityRunners

func (_e *GithubEntityOperations_Expecter) ListEntityRunners(ctx interface{}, opts interface{}) *GithubEntityOperations_ListEntityRunners_Call

ListEntityRunners is a helper method to define mock.On call

  • ctx context.Context
  • opts *github.ListRunnersOptions

func (*GithubEntityOperations_Expecter) PingEntityHook

func (_e *GithubEntityOperations_Expecter) PingEntityHook(ctx interface{}, id interface{}) *GithubEntityOperations_PingEntityHook_Call

PingEntityHook is a helper method to define mock.On call

  • ctx context.Context
  • id int64

func (*GithubEntityOperations_Expecter) RateLimit

RateLimit is a helper method to define mock.On call

  • ctx context.Context

func (*GithubEntityOperations_Expecter) RemoveEntityRunner

func (_e *GithubEntityOperations_Expecter) RemoveEntityRunner(ctx interface{}, runnerID interface{}) *GithubEntityOperations_RemoveEntityRunner_Call

RemoveEntityRunner is a helper method to define mock.On call

  • ctx context.Context
  • runnerID int64

type GithubEntityOperations_GetEntityHook_Call

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

func (*GithubEntityOperations_GetEntityHook_Call) Run

func (*GithubEntityOperations_GetEntityHook_Call) RunAndReturn

type GithubEntityOperations_GetEntityJITConfig_Call

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

func (*GithubEntityOperations_GetEntityJITConfig_Call) Run

func (*GithubEntityOperations_GetEntityJITConfig_Call) RunAndReturn

type GithubEntityOperations_GetEntityRunnerGroupIDByName_Call

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

func (*GithubEntityOperations_GetEntityRunnerGroupIDByName_Call) Run

func (*GithubEntityOperations_GetEntityRunnerGroupIDByName_Call) RunAndReturn

type GithubEntityOperations_GetEntity_Call

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

func (*GithubEntityOperations_GetEntity_Call) Run

func (*GithubEntityOperations_GetEntity_Call) RunAndReturn

type GithubEntityOperations_GithubBaseURL_Call

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

func (*GithubEntityOperations_GithubBaseURL_Call) Run

func (*GithubEntityOperations_GithubBaseURL_Call) RunAndReturn

type GithubEntityOperations_ListEntityHooks_Call

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

func (*GithubEntityOperations_ListEntityHooks_Call) Run

func (*GithubEntityOperations_ListEntityHooks_Call) RunAndReturn

type GithubEntityOperations_ListEntityRunnerApplicationDownloads_Call

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

type GithubEntityOperations_ListEntityRunners_Call

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

func (*GithubEntityOperations_ListEntityRunners_Call) Run

type GithubEntityOperations_PingEntityHook_Call

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

func (*GithubEntityOperations_PingEntityHook_Call) Run

func (*GithubEntityOperations_PingEntityHook_Call) RunAndReturn

type GithubEntityOperations_RateLimit_Call

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

func (*GithubEntityOperations_RateLimit_Call) Run

func (*GithubEntityOperations_RateLimit_Call) RunAndReturn

type GithubEntityOperations_RemoveEntityRunner_Call

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

func (*GithubEntityOperations_RemoveEntityRunner_Call) Run

func (*GithubEntityOperations_RemoveEntityRunner_Call) RunAndReturn

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

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

func (_m *PoolManager) SetPoolRunningState(isRunning bool, failureReason string)

SetPoolRunningState provides a mock function with given fields: isRunning, failureReason

func (*PoolManager) Start

func (_m *PoolManager) Start() error

Start provides a mock function with no fields

func (*PoolManager) Status

func (_m *PoolManager) Status() params.PoolManagerStatus

Status provides a mock function with no fields

func (*PoolManager) Stop

func (_m *PoolManager) Stop() error

Stop provides a mock function with no fields

func (*PoolManager) UninstallWebhook added in v0.1.4

func (_m *PoolManager) UninstallWebhook(ctx context.Context) error

UninstallWebhook provides a mock function with given fields: ctx

func (*PoolManager) Wait

func (_m *PoolManager) Wait() error

Wait provides a mock function with no fields

func (*PoolManager) WebhookSecret

func (_m *PoolManager) WebhookSecret() string

WebhookSecret provides a mock function with no fields

type PoolManager_Expecter

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

func (*PoolManager_Expecter) GetWebhookInfo

func (_e *PoolManager_Expecter) GetWebhookInfo(ctx interface{}) *PoolManager_GetWebhookInfo_Call

GetWebhookInfo is a helper method to define mock.On call

  • ctx context.Context

func (*PoolManager_Expecter) GithubRunnerRegistrationToken

func (_e *PoolManager_Expecter) GithubRunnerRegistrationToken() *PoolManager_GithubRunnerRegistrationToken_Call

GithubRunnerRegistrationToken is a helper method to define mock.On call

func (*PoolManager_Expecter) HandleWorkflowJob

func (_e *PoolManager_Expecter) HandleWorkflowJob(job interface{}) *PoolManager_HandleWorkflowJob_Call

HandleWorkflowJob is a helper method to define mock.On call

  • job params.WorkflowJob

func (*PoolManager_Expecter) ID

ID is a helper method to define mock.On call

func (*PoolManager_Expecter) InstallWebhook

func (_e *PoolManager_Expecter) InstallWebhook(ctx interface{}, param interface{}) *PoolManager_InstallWebhook_Call

InstallWebhook is a helper method to define mock.On call

  • ctx context.Context
  • param params.InstallWebhookParams

func (*PoolManager_Expecter) RootCABundle

RootCABundle is a helper method to define mock.On call

func (*PoolManager_Expecter) SetPoolRunningState

func (_e *PoolManager_Expecter) SetPoolRunningState(isRunning interface{}, failureReason interface{}) *PoolManager_SetPoolRunningState_Call

SetPoolRunningState is a helper method to define mock.On call

  • isRunning bool
  • failureReason string

func (*PoolManager_Expecter) Start

Start is a helper method to define mock.On call

func (*PoolManager_Expecter) Status

Status is a helper method to define mock.On call

func (*PoolManager_Expecter) Stop

Stop is a helper method to define mock.On call

func (*PoolManager_Expecter) UninstallWebhook

func (_e *PoolManager_Expecter) UninstallWebhook(ctx interface{}) *PoolManager_UninstallWebhook_Call

UninstallWebhook is a helper method to define mock.On call

  • ctx context.Context

func (*PoolManager_Expecter) Wait

Wait is a helper method to define mock.On call

func (*PoolManager_Expecter) WebhookSecret

WebhookSecret is a helper method to define mock.On call

type PoolManager_GetWebhookInfo_Call

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

func (*PoolManager_GetWebhookInfo_Call) Run

func (*PoolManager_GetWebhookInfo_Call) RunAndReturn

type PoolManager_GithubRunnerRegistrationToken_Call

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

func (*PoolManager_GithubRunnerRegistrationToken_Call) Run

func (*PoolManager_GithubRunnerRegistrationToken_Call) RunAndReturn

type PoolManager_HandleWorkflowJob_Call

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

func (*PoolManager_HandleWorkflowJob_Call) Run

func (*PoolManager_HandleWorkflowJob_Call) RunAndReturn

type PoolManager_ID_Call

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

func (*PoolManager_ID_Call) Run

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

func (*PoolManager_ID_Call) RunAndReturn

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

type PoolManager_InstallWebhook_Call

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

func (*PoolManager_InstallWebhook_Call) Run

func (*PoolManager_InstallWebhook_Call) RunAndReturn

type PoolManager_RootCABundle_Call

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

func (*PoolManager_RootCABundle_Call) Run

func (*PoolManager_RootCABundle_Call) RunAndReturn

type PoolManager_SetPoolRunningState_Call

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

func (*PoolManager_SetPoolRunningState_Call) Run

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

func (*PoolManager_SetPoolRunningState_Call) RunAndReturn

type PoolManager_Start_Call

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

func (*PoolManager_Start_Call) Run

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

func (*PoolManager_Start_Call) RunAndReturn

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

type PoolManager_Status_Call

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

func (*PoolManager_Status_Call) Run

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

func (*PoolManager_Status_Call) RunAndReturn

type PoolManager_Stop_Call

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

func (*PoolManager_Stop_Call) Run

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

func (*PoolManager_Stop_Call) RunAndReturn

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

type PoolManager_UninstallWebhook_Call

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

func (*PoolManager_UninstallWebhook_Call) Run

func (*PoolManager_UninstallWebhook_Call) RunAndReturn

type PoolManager_Wait_Call

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

func (*PoolManager_Wait_Call) Run

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

func (*PoolManager_Wait_Call) RunAndReturn

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

type PoolManager_WebhookSecret_Call

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

func (*PoolManager_WebhookSecret_Call) Run

func (*PoolManager_WebhookSecret_Call) RunAndReturn

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

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

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

func (*Provider_AsParams_Call) Run

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

func (*Provider_AsParams_Call) RunAndReturn

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

type Provider_CreateInstance_Call

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

func (*Provider_CreateInstance_Call) Run

type Provider_DeleteInstance_Call

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

func (*Provider_DeleteInstance_Call) Run

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

func (*Provider_DeleteInstance_Call) RunAndReturn

type Provider_DisableJITConfig_Call

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

func (*Provider_DisableJITConfig_Call) Run

func (*Provider_DisableJITConfig_Call) RunAndReturn

type Provider_Expecter

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

func (*Provider_Expecter) AsParams

func (_e *Provider_Expecter) AsParams() *Provider_AsParams_Call

AsParams is a helper method to define mock.On call

func (*Provider_Expecter) CreateInstance

func (_e *Provider_Expecter) CreateInstance(ctx interface{}, bootstrapParams interface{}, createInstanceParams interface{}) *Provider_CreateInstance_Call

CreateInstance is a helper method to define mock.On call

  • ctx context.Context
  • bootstrapParams garm_provider_commonparams.BootstrapInstance
  • createInstanceParams common.CreateInstanceParams

func (*Provider_Expecter) DeleteInstance

func (_e *Provider_Expecter) DeleteInstance(ctx interface{}, instance interface{}, deleteInstanceParams interface{}) *Provider_DeleteInstance_Call

DeleteInstance is a helper method to define mock.On call

  • ctx context.Context
  • instance string
  • deleteInstanceParams common.DeleteInstanceParams

func (*Provider_Expecter) DisableJITConfig

func (_e *Provider_Expecter) DisableJITConfig() *Provider_DisableJITConfig_Call

DisableJITConfig is a helper method to define mock.On call

func (*Provider_Expecter) GetInstance

func (_e *Provider_Expecter) GetInstance(ctx interface{}, instance interface{}, getInstanceParams interface{}) *Provider_GetInstance_Call

GetInstance is a helper method to define mock.On call

  • ctx context.Context
  • instance string
  • getInstanceParams common.GetInstanceParams

func (*Provider_Expecter) ListInstances

func (_e *Provider_Expecter) ListInstances(ctx interface{}, poolID interface{}, listInstancesParams interface{}) *Provider_ListInstances_Call

ListInstances is a helper method to define mock.On call

  • ctx context.Context
  • poolID string
  • listInstancesParams common.ListInstancesParams

func (*Provider_Expecter) RemoveAllInstances

func (_e *Provider_Expecter) RemoveAllInstances(ctx interface{}, removeAllInstancesParams interface{}) *Provider_RemoveAllInstances_Call

RemoveAllInstances is a helper method to define mock.On call

  • ctx context.Context
  • removeAllInstancesParams common.RemoveAllInstancesParams

func (*Provider_Expecter) Start

func (_e *Provider_Expecter) Start(ctx interface{}, instance interface{}, startParams interface{}) *Provider_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context
  • instance string
  • startParams common.StartParams

func (*Provider_Expecter) Stop

func (_e *Provider_Expecter) Stop(ctx interface{}, instance interface{}, stopParams interface{}) *Provider_Stop_Call

Stop is a helper method to define mock.On call

  • ctx context.Context
  • instance string
  • stopParams common.StopParams

type Provider_GetInstance_Call

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

func (*Provider_GetInstance_Call) Run

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

type Provider_ListInstances_Call

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

func (*Provider_ListInstances_Call) Run

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

type Provider_RemoveAllInstances_Call

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

func (*Provider_RemoveAllInstances_Call) Run

func (*Provider_RemoveAllInstances_Call) RunAndReturn

type Provider_Start_Call

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

func (*Provider_Start_Call) Run

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

func (*Provider_Start_Call) RunAndReturn

type Provider_Stop_Call

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

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

func (*Provider_Stop_Call) Run

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

func (*Provider_Stop_Call) RunAndReturn

type RateLimitClient

type RateLimitClient struct {
	mock.Mock
}

RateLimitClient is an autogenerated mock type for the RateLimitClient type

func NewRateLimitClient

func NewRateLimitClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *RateLimitClient

NewRateLimitClient creates a new instance of RateLimitClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RateLimitClient) EXPECT

func (*RateLimitClient) RateLimit

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

RateLimit provides a mock function with given fields: ctx

type RateLimitClient_Expecter

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

func (*RateLimitClient_Expecter) RateLimit

func (_e *RateLimitClient_Expecter) RateLimit(ctx interface{}) *RateLimitClient_RateLimit_Call

RateLimit is a helper method to define mock.On call

  • ctx context.Context

type RateLimitClient_RateLimit_Call

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

func (*RateLimitClient_RateLimit_Call) Run

func (*RateLimitClient_RateLimit_Call) RunAndReturn

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