Documentation
¶
Index ¶
- type ClusterInterface
- func (_m *ClusterInterface) EXPECT() *ClusterInterface_Expecter
- func (_m *ClusterInterface) GetAllTargets() map[string]*executioncluster.ExecutionTarget
- func (_m *ClusterInterface) GetTarget(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec) (*executioncluster.ExecutionTarget, error)
- func (_m *ClusterInterface) GetValidTargets() map[string]*executioncluster.ExecutionTarget
- type ClusterInterface_Expecter
- type ClusterInterface_GetAllTargets_Call
- func (_c *ClusterInterface_GetAllTargets_Call) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ClusterInterface_GetAllTargets_Call
- func (_c *ClusterInterface_GetAllTargets_Call) Run(run func()) *ClusterInterface_GetAllTargets_Call
- func (_c *ClusterInterface_GetAllTargets_Call) RunAndReturn(run func() map[string]*executioncluster.ExecutionTarget) *ClusterInterface_GetAllTargets_Call
- type ClusterInterface_GetTarget_Call
- func (_c *ClusterInterface_GetTarget_Call) Return(_a0 *executioncluster.ExecutionTarget, _a1 error) *ClusterInterface_GetTarget_Call
- func (_c *ClusterInterface_GetTarget_Call) Run(run func(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec)) *ClusterInterface_GetTarget_Call
- func (_c *ClusterInterface_GetTarget_Call) RunAndReturn(...) *ClusterInterface_GetTarget_Call
- type ClusterInterface_GetValidTargets_Call
- func (_c *ClusterInterface_GetValidTargets_Call) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ClusterInterface_GetValidTargets_Call
- func (_c *ClusterInterface_GetValidTargets_Call) Run(run func()) *ClusterInterface_GetValidTargets_Call
- func (_c *ClusterInterface_GetValidTargets_Call) RunAndReturn(run func() map[string]*executioncluster.ExecutionTarget) *ClusterInterface_GetValidTargets_Call
- type ExecutionTargetProvider
- type ExecutionTargetProvider_Expecter
- type ExecutionTargetProvider_GetExecutionTarget_Call
- func (_c *ExecutionTargetProvider_GetExecutionTarget_Call) Return(_a0 *executioncluster.ExecutionTarget, _a1 error) *ExecutionTargetProvider_GetExecutionTarget_Call
- func (_c *ExecutionTargetProvider_GetExecutionTarget_Call) Run(run func(initializationErrorCounter prometheus.Counter, ...)) *ExecutionTargetProvider_GetExecutionTarget_Call
- func (_c *ExecutionTargetProvider_GetExecutionTarget_Call) RunAndReturn(...) *ExecutionTargetProvider_GetExecutionTarget_Call
- type GetAllValidTargetsFunc
- type GetTargetFunc
- type GetTargetInterface
- type GetTargetInterface_Expecter
- type GetTargetInterface_GetTarget_Call
- func (_c *GetTargetInterface_GetTarget_Call) Return(_a0 *executioncluster.ExecutionTarget, _a1 error) *GetTargetInterface_GetTarget_Call
- func (_c *GetTargetInterface_GetTarget_Call) Run(run func(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec)) *GetTargetInterface_GetTarget_Call
- func (_c *GetTargetInterface_GetTarget_Call) RunAndReturn(...) *GetTargetInterface_GetTarget_Call
- type ListTargetsInterface
- type ListTargetsInterface_Expecter
- type ListTargetsInterface_GetAllTargets_Call
- func (_c *ListTargetsInterface_GetAllTargets_Call) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ListTargetsInterface_GetAllTargets_Call
- func (_c *ListTargetsInterface_GetAllTargets_Call) Run(run func()) *ListTargetsInterface_GetAllTargets_Call
- func (_c *ListTargetsInterface_GetAllTargets_Call) RunAndReturn(run func() map[string]*executioncluster.ExecutionTarget) *ListTargetsInterface_GetAllTargets_Call
- type ListTargetsInterface_GetValidTargets_Call
- func (_c *ListTargetsInterface_GetValidTargets_Call) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ListTargetsInterface_GetValidTargets_Call
- func (_c *ListTargetsInterface_GetValidTargets_Call) Run(run func()) *ListTargetsInterface_GetValidTargets_Call
- func (_c *ListTargetsInterface_GetValidTargets_Call) RunAndReturn(run func() map[string]*executioncluster.ExecutionTarget) *ListTargetsInterface_GetValidTargets_Call
- type MockCluster
- func (m *MockCluster) GetAllTargets() map[string]*executioncluster.ExecutionTarget
- func (m *MockCluster) GetTarget(ctx context.Context, execCluster *executioncluster.ExecutionTargetSpec) (*executioncluster.ExecutionTarget, error)
- func (m *MockCluster) GetValidTargets() map[string]*executioncluster.ExecutionTarget
- func (m *MockCluster) SetGetAllTargetsCallback(getAllTargetsFunc GetAllValidTargetsFunc)
- func (m *MockCluster) SetGetAllValidTargetsCallback(getAllValidTargetsFunc GetAllValidTargetsFunc)
- func (m *MockCluster) SetGetTargetCallback(getTargetFunc GetTargetFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterInterface ¶
ClusterInterface is an autogenerated mock type for the ClusterInterface type
func NewClusterInterface ¶ added in v1.15.1
func NewClusterInterface(t interface {
mock.TestingT
Cleanup(func())
}) *ClusterInterface
NewClusterInterface creates a new instance of ClusterInterface. 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 (*ClusterInterface) EXPECT ¶ added in v1.15.1
func (_m *ClusterInterface) EXPECT() *ClusterInterface_Expecter
func (*ClusterInterface) GetAllTargets ¶
func (_m *ClusterInterface) GetAllTargets() map[string]*executioncluster.ExecutionTarget
GetAllTargets provides a mock function with no fields
func (*ClusterInterface) GetTarget ¶
func (_m *ClusterInterface) GetTarget(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec) (*executioncluster.ExecutionTarget, error)
GetTarget provides a mock function with given fields: _a0, _a1
func (*ClusterInterface) GetValidTargets ¶
func (_m *ClusterInterface) GetValidTargets() map[string]*executioncluster.ExecutionTarget
GetValidTargets provides a mock function with no fields
type ClusterInterface_Expecter ¶ added in v1.15.1
type ClusterInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*ClusterInterface_Expecter) GetAllTargets ¶ added in v1.15.1
func (_e *ClusterInterface_Expecter) GetAllTargets() *ClusterInterface_GetAllTargets_Call
GetAllTargets is a helper method to define mock.On call
func (*ClusterInterface_Expecter) GetTarget ¶ added in v1.15.1
func (_e *ClusterInterface_Expecter) GetTarget(_a0 interface{}, _a1 interface{}) *ClusterInterface_GetTarget_Call
GetTarget is a helper method to define mock.On call
- _a0 context.Context
- _a1 *executioncluster.ExecutionTargetSpec
func (*ClusterInterface_Expecter) GetValidTargets ¶ added in v1.15.1
func (_e *ClusterInterface_Expecter) GetValidTargets() *ClusterInterface_GetValidTargets_Call
GetValidTargets is a helper method to define mock.On call
type ClusterInterface_GetAllTargets_Call ¶ added in v1.15.1
ClusterInterface_GetAllTargets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllTargets'
func (*ClusterInterface_GetAllTargets_Call) Return ¶ added in v1.15.1
func (_c *ClusterInterface_GetAllTargets_Call) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ClusterInterface_GetAllTargets_Call
func (*ClusterInterface_GetAllTargets_Call) Run ¶ added in v1.15.1
func (_c *ClusterInterface_GetAllTargets_Call) Run(run func()) *ClusterInterface_GetAllTargets_Call
func (*ClusterInterface_GetAllTargets_Call) RunAndReturn ¶ added in v1.15.1
func (_c *ClusterInterface_GetAllTargets_Call) RunAndReturn(run func() map[string]*executioncluster.ExecutionTarget) *ClusterInterface_GetAllTargets_Call
type ClusterInterface_GetTarget_Call ¶ added in v1.15.1
ClusterInterface_GetTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTarget'
func (*ClusterInterface_GetTarget_Call) Return ¶ added in v1.15.1
func (_c *ClusterInterface_GetTarget_Call) Return(_a0 *executioncluster.ExecutionTarget, _a1 error) *ClusterInterface_GetTarget_Call
func (*ClusterInterface_GetTarget_Call) Run ¶ added in v1.15.1
func (_c *ClusterInterface_GetTarget_Call) Run(run func(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec)) *ClusterInterface_GetTarget_Call
func (*ClusterInterface_GetTarget_Call) RunAndReturn ¶ added in v1.15.1
func (_c *ClusterInterface_GetTarget_Call) RunAndReturn(run func(context.Context, *executioncluster.ExecutionTargetSpec) (*executioncluster.ExecutionTarget, error)) *ClusterInterface_GetTarget_Call
type ClusterInterface_GetValidTargets_Call ¶ added in v1.15.1
ClusterInterface_GetValidTargets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetValidTargets'
func (*ClusterInterface_GetValidTargets_Call) Return ¶ added in v1.15.1
func (_c *ClusterInterface_GetValidTargets_Call) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ClusterInterface_GetValidTargets_Call
func (*ClusterInterface_GetValidTargets_Call) Run ¶ added in v1.15.1
func (_c *ClusterInterface_GetValidTargets_Call) Run(run func()) *ClusterInterface_GetValidTargets_Call
func (*ClusterInterface_GetValidTargets_Call) RunAndReturn ¶ added in v1.15.1
func (_c *ClusterInterface_GetValidTargets_Call) RunAndReturn(run func() map[string]*executioncluster.ExecutionTarget) *ClusterInterface_GetValidTargets_Call
type ExecutionTargetProvider ¶
ExecutionTargetProvider is an autogenerated mock type for the ExecutionTargetProvider type
func NewExecutionTargetProvider ¶ added in v1.15.1
func NewExecutionTargetProvider(t interface {
mock.TestingT
Cleanup(func())
}) *ExecutionTargetProvider
NewExecutionTargetProvider creates a new instance of ExecutionTargetProvider. 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 (*ExecutionTargetProvider) EXPECT ¶ added in v1.15.1
func (_m *ExecutionTargetProvider) EXPECT() *ExecutionTargetProvider_Expecter
func (*ExecutionTargetProvider) GetExecutionTarget ¶
func (_m *ExecutionTargetProvider) GetExecutionTarget(initializationErrorCounter prometheus.Counter, k8sCluster interfaces.ClusterConfig) (*executioncluster.ExecutionTarget, error)
GetExecutionTarget provides a mock function with given fields: initializationErrorCounter, k8sCluster
type ExecutionTargetProvider_Expecter ¶ added in v1.15.1
type ExecutionTargetProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*ExecutionTargetProvider_Expecter) GetExecutionTarget ¶ added in v1.15.1
func (_e *ExecutionTargetProvider_Expecter) GetExecutionTarget(initializationErrorCounter interface{}, k8sCluster interface{}) *ExecutionTargetProvider_GetExecutionTarget_Call
GetExecutionTarget is a helper method to define mock.On call
- initializationErrorCounter prometheus.Counter
- k8sCluster interfaces.ClusterConfig
type ExecutionTargetProvider_GetExecutionTarget_Call ¶ added in v1.15.1
ExecutionTargetProvider_GetExecutionTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetExecutionTarget'
func (*ExecutionTargetProvider_GetExecutionTarget_Call) Return ¶ added in v1.15.1
func (_c *ExecutionTargetProvider_GetExecutionTarget_Call) Return(_a0 *executioncluster.ExecutionTarget, _a1 error) *ExecutionTargetProvider_GetExecutionTarget_Call
func (*ExecutionTargetProvider_GetExecutionTarget_Call) Run ¶ added in v1.15.1
func (_c *ExecutionTargetProvider_GetExecutionTarget_Call) Run(run func(initializationErrorCounter prometheus.Counter, k8sCluster interfaces.ClusterConfig)) *ExecutionTargetProvider_GetExecutionTarget_Call
func (*ExecutionTargetProvider_GetExecutionTarget_Call) RunAndReturn ¶ added in v1.15.1
func (_c *ExecutionTargetProvider_GetExecutionTarget_Call) RunAndReturn(run func(prometheus.Counter, interfaces.ClusterConfig) (*executioncluster.ExecutionTarget, error)) *ExecutionTargetProvider_GetExecutionTarget_Call
type GetAllValidTargetsFunc ¶
type GetAllValidTargetsFunc func() map[string]*executioncluster.ExecutionTarget
type GetTargetFunc ¶
type GetTargetFunc func(context.Context, *executioncluster.ExecutionTargetSpec) (*executioncluster.ExecutionTarget, error)
type GetTargetInterface ¶
GetTargetInterface is an autogenerated mock type for the GetTargetInterface type
func NewGetTargetInterface ¶ added in v1.15.1
func NewGetTargetInterface(t interface {
mock.TestingT
Cleanup(func())
}) *GetTargetInterface
NewGetTargetInterface creates a new instance of GetTargetInterface. 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 (*GetTargetInterface) EXPECT ¶ added in v1.15.1
func (_m *GetTargetInterface) EXPECT() *GetTargetInterface_Expecter
func (*GetTargetInterface) GetTarget ¶
func (_m *GetTargetInterface) GetTarget(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec) (*executioncluster.ExecutionTarget, error)
GetTarget provides a mock function with given fields: _a0, _a1
type GetTargetInterface_Expecter ¶ added in v1.15.1
type GetTargetInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*GetTargetInterface_Expecter) GetTarget ¶ added in v1.15.1
func (_e *GetTargetInterface_Expecter) GetTarget(_a0 interface{}, _a1 interface{}) *GetTargetInterface_GetTarget_Call
GetTarget is a helper method to define mock.On call
- _a0 context.Context
- _a1 *executioncluster.ExecutionTargetSpec
type GetTargetInterface_GetTarget_Call ¶ added in v1.15.1
GetTargetInterface_GetTarget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTarget'
func (*GetTargetInterface_GetTarget_Call) Return ¶ added in v1.15.1
func (_c *GetTargetInterface_GetTarget_Call) Return(_a0 *executioncluster.ExecutionTarget, _a1 error) *GetTargetInterface_GetTarget_Call
func (*GetTargetInterface_GetTarget_Call) Run ¶ added in v1.15.1
func (_c *GetTargetInterface_GetTarget_Call) Run(run func(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec)) *GetTargetInterface_GetTarget_Call
func (*GetTargetInterface_GetTarget_Call) RunAndReturn ¶ added in v1.15.1
func (_c *GetTargetInterface_GetTarget_Call) RunAndReturn(run func(context.Context, *executioncluster.ExecutionTargetSpec) (*executioncluster.ExecutionTarget, error)) *GetTargetInterface_GetTarget_Call
type ListTargetsInterface ¶
ListTargetsInterface is an autogenerated mock type for the ListTargetsInterface type
func NewListTargetsInterface ¶ added in v1.15.1
func NewListTargetsInterface(t interface {
mock.TestingT
Cleanup(func())
}) *ListTargetsInterface
NewListTargetsInterface creates a new instance of ListTargetsInterface. 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 (*ListTargetsInterface) EXPECT ¶ added in v1.15.1
func (_m *ListTargetsInterface) EXPECT() *ListTargetsInterface_Expecter
func (*ListTargetsInterface) GetAllTargets ¶
func (_m *ListTargetsInterface) GetAllTargets() map[string]*executioncluster.ExecutionTarget
GetAllTargets provides a mock function with no fields
func (*ListTargetsInterface) GetValidTargets ¶
func (_m *ListTargetsInterface) GetValidTargets() map[string]*executioncluster.ExecutionTarget
GetValidTargets provides a mock function with no fields
type ListTargetsInterface_Expecter ¶ added in v1.15.1
type ListTargetsInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*ListTargetsInterface_Expecter) GetAllTargets ¶ added in v1.15.1
func (_e *ListTargetsInterface_Expecter) GetAllTargets() *ListTargetsInterface_GetAllTargets_Call
GetAllTargets is a helper method to define mock.On call
func (*ListTargetsInterface_Expecter) GetValidTargets ¶ added in v1.15.1
func (_e *ListTargetsInterface_Expecter) GetValidTargets() *ListTargetsInterface_GetValidTargets_Call
GetValidTargets is a helper method to define mock.On call
type ListTargetsInterface_GetAllTargets_Call ¶ added in v1.15.1
ListTargetsInterface_GetAllTargets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllTargets'
func (*ListTargetsInterface_GetAllTargets_Call) Return ¶ added in v1.15.1
func (_c *ListTargetsInterface_GetAllTargets_Call) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ListTargetsInterface_GetAllTargets_Call
func (*ListTargetsInterface_GetAllTargets_Call) Run ¶ added in v1.15.1
func (_c *ListTargetsInterface_GetAllTargets_Call) Run(run func()) *ListTargetsInterface_GetAllTargets_Call
func (*ListTargetsInterface_GetAllTargets_Call) RunAndReturn ¶ added in v1.15.1
func (_c *ListTargetsInterface_GetAllTargets_Call) RunAndReturn(run func() map[string]*executioncluster.ExecutionTarget) *ListTargetsInterface_GetAllTargets_Call
type ListTargetsInterface_GetValidTargets_Call ¶ added in v1.15.1
ListTargetsInterface_GetValidTargets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetValidTargets'
func (*ListTargetsInterface_GetValidTargets_Call) Return ¶ added in v1.15.1
func (_c *ListTargetsInterface_GetValidTargets_Call) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ListTargetsInterface_GetValidTargets_Call
func (*ListTargetsInterface_GetValidTargets_Call) Run ¶ added in v1.15.1
func (_c *ListTargetsInterface_GetValidTargets_Call) Run(run func()) *ListTargetsInterface_GetValidTargets_Call
func (*ListTargetsInterface_GetValidTargets_Call) RunAndReturn ¶ added in v1.15.1
func (_c *ListTargetsInterface_GetValidTargets_Call) RunAndReturn(run func() map[string]*executioncluster.ExecutionTarget) *ListTargetsInterface_GetValidTargets_Call
type MockCluster ¶
type MockCluster struct {
// contains filtered or unexported fields
}
func (*MockCluster) GetAllTargets ¶
func (m *MockCluster) GetAllTargets() map[string]*executioncluster.ExecutionTarget
func (*MockCluster) GetTarget ¶
func (m *MockCluster) GetTarget(ctx context.Context, execCluster *executioncluster.ExecutionTargetSpec) (*executioncluster.ExecutionTarget, error)
func (*MockCluster) GetValidTargets ¶
func (m *MockCluster) GetValidTargets() map[string]*executioncluster.ExecutionTarget
func (*MockCluster) SetGetAllTargetsCallback ¶
func (m *MockCluster) SetGetAllTargetsCallback(getAllTargetsFunc GetAllValidTargetsFunc)
func (*MockCluster) SetGetAllValidTargetsCallback ¶
func (m *MockCluster) SetGetAllValidTargetsCallback(getAllValidTargetsFunc GetAllValidTargetsFunc)
func (*MockCluster) SetGetTargetCallback ¶
func (m *MockCluster) SetGetTargetCallback(getTargetFunc GetTargetFunc)