mocks

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 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 (*ClusterInterface) GetAllTargets

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

GetAllTargets provides a mock function with given 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 given fields:

func (*ClusterInterface) OnGetAllTargets

func (_m *ClusterInterface) OnGetAllTargets() *ClusterInterface_GetAllTargets

func (*ClusterInterface) OnGetAllTargetsMatch

func (_m *ClusterInterface) OnGetAllTargetsMatch(matchers ...interface{}) *ClusterInterface_GetAllTargets

func (*ClusterInterface) OnGetTargetMatch

func (_m *ClusterInterface) OnGetTargetMatch(matchers ...interface{}) *ClusterInterface_GetTarget

func (*ClusterInterface) OnGetValidTargets

func (_m *ClusterInterface) OnGetValidTargets() *ClusterInterface_GetValidTargets

func (*ClusterInterface) OnGetValidTargetsMatch

func (_m *ClusterInterface) OnGetValidTargetsMatch(matchers ...interface{}) *ClusterInterface_GetValidTargets

type ClusterInterface_GetAllTargets

type ClusterInterface_GetAllTargets struct {
	*mock.Call
}

func (ClusterInterface_GetAllTargets) Return

type ClusterInterface_GetTarget

type ClusterInterface_GetTarget struct {
	*mock.Call
}

func (ClusterInterface_GetTarget) Return

type ClusterInterface_GetValidTargets

type ClusterInterface_GetValidTargets struct {
	*mock.Call
}

func (ClusterInterface_GetValidTargets) Return

type ExecutionTargetProvider

type ExecutionTargetProvider struct {
	mock.Mock
}

ExecutionTargetProvider is an autogenerated mock type for the ExecutionTargetProvider type

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

func (*ExecutionTargetProvider) OnGetExecutionTarget

func (_m *ExecutionTargetProvider) OnGetExecutionTarget(initializationErrorCounter prometheus.Counter, k8sCluster interfaces.ClusterConfig) *ExecutionTargetProvider_GetExecutionTarget

func (*ExecutionTargetProvider) OnGetExecutionTargetMatch

func (_m *ExecutionTargetProvider) OnGetExecutionTargetMatch(matchers ...interface{}) *ExecutionTargetProvider_GetExecutionTarget

type ExecutionTargetProvider_GetExecutionTarget

type ExecutionTargetProvider_GetExecutionTarget struct {
	*mock.Call
}

func (ExecutionTargetProvider_GetExecutionTarget) Return

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

GetTarget provides a mock function with given fields: _a0, _a1

func (*GetTargetInterface) OnGetTargetMatch

func (_m *GetTargetInterface) OnGetTargetMatch(matchers ...interface{}) *GetTargetInterface_GetTarget

type GetTargetInterface_GetTarget

type GetTargetInterface_GetTarget struct {
	*mock.Call
}

func (GetTargetInterface_GetTarget) Return

type ListTargetsInterface

type ListTargetsInterface struct {
	mock.Mock
}

ListTargetsInterface is an autogenerated mock type for the ListTargetsInterface type

func (*ListTargetsInterface) GetAllTargets

GetAllTargets provides a mock function with given fields:

func (*ListTargetsInterface) GetValidTargets

func (_m *ListTargetsInterface) GetValidTargets() map[string]*executioncluster.ExecutionTarget

GetValidTargets provides a mock function with given fields:

func (*ListTargetsInterface) OnGetAllTargets

func (*ListTargetsInterface) OnGetAllTargetsMatch

func (_m *ListTargetsInterface) OnGetAllTargetsMatch(matchers ...interface{}) *ListTargetsInterface_GetAllTargets

func (*ListTargetsInterface) OnGetValidTargets

func (*ListTargetsInterface) OnGetValidTargetsMatch

func (_m *ListTargetsInterface) OnGetValidTargetsMatch(matchers ...interface{}) *ListTargetsInterface_GetValidTargets

type ListTargetsInterface_GetAllTargets

type ListTargetsInterface_GetAllTargets struct {
	*mock.Call
}

func (ListTargetsInterface_GetAllTargets) Return

type ListTargetsInterface_GetValidTargets

type ListTargetsInterface_GetValidTargets struct {
	*mock.Call
}

func (ListTargetsInterface_GetValidTargets) Return

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