Documentation ¶
Index ¶
- type ClusterInterface
- 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
- func (_m *ClusterInterface) OnGetAllTargets() *ClusterInterface_GetAllTargets
- func (_m *ClusterInterface) OnGetAllTargetsMatch(matchers ...interface{}) *ClusterInterface_GetAllTargets
- func (_m *ClusterInterface) OnGetTarget(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec) *ClusterInterface_GetTarget
- func (_m *ClusterInterface) OnGetTargetMatch(matchers ...interface{}) *ClusterInterface_GetTarget
- func (_m *ClusterInterface) OnGetValidTargets() *ClusterInterface_GetValidTargets
- func (_m *ClusterInterface) OnGetValidTargetsMatch(matchers ...interface{}) *ClusterInterface_GetValidTargets
- type ClusterInterface_GetAllTargets
- type ClusterInterface_GetTarget
- type ClusterInterface_GetValidTargets
- type ExecutionTargetProvider
- func (_m *ExecutionTargetProvider) GetExecutionTarget(initializationErrorCounter prometheus.Counter, ...) (*executioncluster.ExecutionTarget, error)
- func (_m *ExecutionTargetProvider) OnGetExecutionTarget(initializationErrorCounter prometheus.Counter, ...) *ExecutionTargetProvider_GetExecutionTarget
- func (_m *ExecutionTargetProvider) OnGetExecutionTargetMatch(matchers ...interface{}) *ExecutionTargetProvider_GetExecutionTarget
- type ExecutionTargetProvider_GetExecutionTarget
- type GetAllValidTargetsFunc
- type GetTargetFunc
- type GetTargetInterface
- func (_m *GetTargetInterface) GetTarget(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec) (*executioncluster.ExecutionTarget, error)
- func (_m *GetTargetInterface) OnGetTarget(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec) *GetTargetInterface_GetTarget
- func (_m *GetTargetInterface) OnGetTargetMatch(matchers ...interface{}) *GetTargetInterface_GetTarget
- type GetTargetInterface_GetTarget
- type ListTargetsInterface
- func (_m *ListTargetsInterface) GetAllTargets() map[string]*executioncluster.ExecutionTarget
- func (_m *ListTargetsInterface) GetValidTargets() map[string]*executioncluster.ExecutionTarget
- func (_m *ListTargetsInterface) OnGetAllTargets() *ListTargetsInterface_GetAllTargets
- func (_m *ListTargetsInterface) OnGetAllTargetsMatch(matchers ...interface{}) *ListTargetsInterface_GetAllTargets
- func (_m *ListTargetsInterface) OnGetValidTargets() *ListTargetsInterface_GetValidTargets
- func (_m *ListTargetsInterface) OnGetValidTargetsMatch(matchers ...interface{}) *ListTargetsInterface_GetValidTargets
- type ListTargetsInterface_GetAllTargets
- type ListTargetsInterface_GetValidTargets
- 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 (*ClusterInterface) GetAllTargets ¶
func (_m *ClusterInterface) GetAllTargets() map[string]*executioncluster.ExecutionTarget
GetAllTargets provides a mock function with given 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 given fields:
func (*ClusterInterface) OnGetAllTargets ¶
func (_m *ClusterInterface) OnGetAllTargets() *ClusterInterface_GetAllTargets
func (*ClusterInterface) OnGetAllTargetsMatch ¶
func (_m *ClusterInterface) OnGetAllTargetsMatch(matchers ...interface{}) *ClusterInterface_GetAllTargets
func (*ClusterInterface) OnGetTarget ¶
func (_m *ClusterInterface) OnGetTarget(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec) *ClusterInterface_GetTarget
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 ¶
func (ClusterInterface_GetAllTargets) Return ¶
func (_m ClusterInterface_GetAllTargets) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ClusterInterface_GetAllTargets
type ClusterInterface_GetTarget ¶
func (ClusterInterface_GetTarget) Return ¶
func (_m ClusterInterface_GetTarget) Return(_a0 *executioncluster.ExecutionTarget, _a1 error) *ClusterInterface_GetTarget
type ClusterInterface_GetValidTargets ¶
func (ClusterInterface_GetValidTargets) Return ¶
func (_m ClusterInterface_GetValidTargets) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ClusterInterface_GetValidTargets
type ExecutionTargetProvider ¶
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 ¶
func (ExecutionTargetProvider_GetExecutionTarget) Return ¶
func (_m ExecutionTargetProvider_GetExecutionTarget) Return(_a0 *executioncluster.ExecutionTarget, _a1 error) *ExecutionTargetProvider_GetExecutionTarget
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 (*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
func (*GetTargetInterface) OnGetTarget ¶
func (_m *GetTargetInterface) OnGetTarget(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec) *GetTargetInterface_GetTarget
func (*GetTargetInterface) OnGetTargetMatch ¶
func (_m *GetTargetInterface) OnGetTargetMatch(matchers ...interface{}) *GetTargetInterface_GetTarget
type GetTargetInterface_GetTarget ¶
func (GetTargetInterface_GetTarget) Return ¶
func (_m GetTargetInterface_GetTarget) Return(_a0 *executioncluster.ExecutionTarget, _a1 error) *GetTargetInterface_GetTarget
type ListTargetsInterface ¶
ListTargetsInterface is an autogenerated mock type for the ListTargetsInterface type
func (*ListTargetsInterface) GetAllTargets ¶
func (_m *ListTargetsInterface) GetAllTargets() map[string]*executioncluster.ExecutionTarget
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 (_m *ListTargetsInterface) OnGetAllTargets() *ListTargetsInterface_GetAllTargets
func (*ListTargetsInterface) OnGetAllTargetsMatch ¶
func (_m *ListTargetsInterface) OnGetAllTargetsMatch(matchers ...interface{}) *ListTargetsInterface_GetAllTargets
func (*ListTargetsInterface) OnGetValidTargets ¶
func (_m *ListTargetsInterface) OnGetValidTargets() *ListTargetsInterface_GetValidTargets
func (*ListTargetsInterface) OnGetValidTargetsMatch ¶
func (_m *ListTargetsInterface) OnGetValidTargetsMatch(matchers ...interface{}) *ListTargetsInterface_GetValidTargets
type ListTargetsInterface_GetAllTargets ¶
func (ListTargetsInterface_GetAllTargets) Return ¶
func (_m ListTargetsInterface_GetAllTargets) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ListTargetsInterface_GetAllTargets
type ListTargetsInterface_GetValidTargets ¶
func (ListTargetsInterface_GetValidTargets) Return ¶
func (_m ListTargetsInterface_GetValidTargets) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ListTargetsInterface_GetValidTargets
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)