Documentation ¶
Index ¶
- type GetAllValidTargetsFunc
- type GetTargetFunc
- type MockCluster
- func (m *MockCluster) GetAllValidTargets() []executioncluster.ExecutionTarget
- func (m *MockCluster) GetTarget(ctx context.Context, execCluster *executioncluster.ExecutionTargetSpec) (*executioncluster.ExecutionTarget, error)
- func (m *MockCluster) SetGetAllValidTargetsCallback(getAllValidTargetsFunc GetAllValidTargetsFunc)
- func (m *MockCluster) SetGetTargetCallback(getTargetFunc GetTargetFunc)
- type MockExecutionTargetProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetAllValidTargetsFunc ¶
type GetAllValidTargetsFunc func() []executioncluster.ExecutionTarget
type GetTargetFunc ¶
type GetTargetFunc func(context.Context, *executioncluster.ExecutionTargetSpec) (*executioncluster.ExecutionTarget, error)
type MockCluster ¶
type MockCluster struct {
// contains filtered or unexported fields
}
func (*MockCluster) GetAllValidTargets ¶
func (m *MockCluster) GetAllValidTargets() []executioncluster.ExecutionTarget
func (*MockCluster) GetTarget ¶
func (m *MockCluster) GetTarget(ctx context.Context, execCluster *executioncluster.ExecutionTargetSpec) (*executioncluster.ExecutionTarget, error)
func (*MockCluster) SetGetAllValidTargetsCallback ¶
func (m *MockCluster) SetGetAllValidTargetsCallback(getAllValidTargetsFunc GetAllValidTargetsFunc)
func (*MockCluster) SetGetTargetCallback ¶
func (m *MockCluster) SetGetTargetCallback(getTargetFunc GetTargetFunc)
type MockExecutionTargetProvider ¶
type MockExecutionTargetProvider struct{}
func (*MockExecutionTargetProvider) GetExecutionTarget ¶
func (c *MockExecutionTargetProvider) GetExecutionTarget(scope promutils.Scope, k8sCluster interfaces.ClusterConfig) (*executioncluster.ExecutionTarget, error)
Creates a new Execution target for a cluster based on config passed in.
Click to show internal directories.
Click to hide internal directories.