mocks

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterInterface

type ClusterInterface struct {
	mock.Mock
}

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 (*ClusterInterface) GetAllTargets

func (_m *ClusterInterface) GetAllTargets() map[string]*executioncluster.ExecutionTarget

GetAllTargets provides a mock function with no fields

func (*ClusterInterface) GetTarget

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

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

GetValidTargets is a helper method to define mock.On call

type ClusterInterface_GetAllTargets_Call added in v1.15.1

type ClusterInterface_GetAllTargets_Call struct {
	*mock.Call
}

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 (*ClusterInterface_GetAllTargets_Call) Run added in v1.15.1

func (*ClusterInterface_GetAllTargets_Call) RunAndReturn added in v1.15.1

type ClusterInterface_GetTarget_Call added in v1.15.1

type ClusterInterface_GetTarget_Call struct {
	*mock.Call
}

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 (*ClusterInterface_GetTarget_Call) Run added in v1.15.1

func (*ClusterInterface_GetTarget_Call) RunAndReturn added in v1.15.1

type ClusterInterface_GetValidTargets_Call added in v1.15.1

type ClusterInterface_GetValidTargets_Call struct {
	*mock.Call
}

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 (*ClusterInterface_GetValidTargets_Call) Run added in v1.15.1

func (*ClusterInterface_GetValidTargets_Call) RunAndReturn added in v1.15.1

type ExecutionTargetProvider

type ExecutionTargetProvider struct {
	mock.Mock
}

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 (*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

type ExecutionTargetProvider_GetExecutionTarget_Call struct {
	*mock.Call
}

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 (*ExecutionTargetProvider_GetExecutionTarget_Call) Run added in v1.15.1

func (*ExecutionTargetProvider_GetExecutionTarget_Call) RunAndReturn added in v1.15.1

type GetAllValidTargetsFunc

type GetAllValidTargetsFunc func() map[string]*executioncluster.ExecutionTarget

type GetTargetInterface

type GetTargetInterface struct {
	mock.Mock
}

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 (*GetTargetInterface) GetTarget

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

type GetTargetInterface_GetTarget_Call struct {
	*mock.Call
}

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 (*GetTargetInterface_GetTarget_Call) Run added in v1.15.1

func (*GetTargetInterface_GetTarget_Call) RunAndReturn added in v1.15.1

type ListTargetsInterface

type ListTargetsInterface struct {
	mock.Mock
}

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 (*ListTargetsInterface) GetAllTargets

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

GetAllTargets is a helper method to define mock.On call

func (*ListTargetsInterface_Expecter) GetValidTargets added in v1.15.1

GetValidTargets is a helper method to define mock.On call

type ListTargetsInterface_GetAllTargets_Call added in v1.15.1

type ListTargetsInterface_GetAllTargets_Call struct {
	*mock.Call
}

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 (*ListTargetsInterface_GetAllTargets_Call) Run added in v1.15.1

func (*ListTargetsInterface_GetAllTargets_Call) RunAndReturn added in v1.15.1

type ListTargetsInterface_GetValidTargets_Call added in v1.15.1

type ListTargetsInterface_GetValidTargets_Call struct {
	*mock.Call
}

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 (*ListTargetsInterface_GetValidTargets_Call) Run added in v1.15.1

func (*ListTargetsInterface_GetValidTargets_Call) RunAndReturn added in v1.15.1

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

Jump to

Keyboard shortcuts

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