Documentation ¶
Overview ¶
Package mock_utils is a generated GoMock package.
Package mock_utils is a generated GoMock package.
Index ¶
- type MockClusterTestRunner
- func (m *MockClusterTestRunner) CheckWorkloadClusterIsRunning(workloadClusterName string) error
- func (m *MockClusterTestRunner) CleanupDockerBootstrapCluster(managementClusterName string) error
- func (m *MockClusterTestRunner) CollectManagementClusterAndWorkloadClusterDiagnostics(managementClusterName, workloadClusterName, workloadClusterInfra string) error
- func (m *MockClusterTestRunner) CollectManagementClusterDiagnostics(managementClusterName string) error
- func (m *MockClusterTestRunner) DeleteCluster(clusterName string, provider utils.Provider, clusterType utils.ClusterType) error
- func (m *MockClusterTestRunner) DeleteContext(kubeConfigPath, contextName string) error
- func (m *MockClusterTestRunner) EXPECT() *MockClusterTestRunnerMockRecorder
- func (m *MockClusterTestRunner) GetClusterKubeConfig(clusterName string, provider utils.Provider, clusterType utils.ClusterType)
- func (m *MockClusterTestRunner) GetKubeConfigPath() (string, error)
- func (m *MockClusterTestRunner) GetKubeContextForTanzuCluster(clusterName string) string
- func (m *MockClusterTestRunner) GetRandomClusterNames() (string, string)
- func (m *MockClusterTestRunner) PrintClusterInformation(kubeConfigPath, kubeContext string) error
- func (m *MockClusterTestRunner) RunChecks()
- func (m *MockClusterTestRunner) RunCluster(clusterName string, provider utils.Provider, clusterType utils.ClusterType) error
- func (m *MockClusterTestRunner) WaitForWorkloadClusterDeletion(workloadClusterName string) error
- type MockClusterTestRunnerMockRecorder
- func (mr *MockClusterTestRunnerMockRecorder) CheckWorkloadClusterIsRunning(workloadClusterName interface{}) *gomock.Call
- func (mr *MockClusterTestRunnerMockRecorder) CleanupDockerBootstrapCluster(managementClusterName interface{}) *gomock.Call
- func (mr *MockClusterTestRunnerMockRecorder) CollectManagementClusterAndWorkloadClusterDiagnostics(managementClusterName, workloadClusterName, workloadClusterInfra interface{}) *gomock.Call
- func (mr *MockClusterTestRunnerMockRecorder) CollectManagementClusterDiagnostics(managementClusterName interface{}) *gomock.Call
- func (mr *MockClusterTestRunnerMockRecorder) DeleteCluster(clusterName, provider, clusterType interface{}) *gomock.Call
- func (mr *MockClusterTestRunnerMockRecorder) DeleteContext(kubeConfigPath, contextName interface{}) *gomock.Call
- func (mr *MockClusterTestRunnerMockRecorder) GetClusterKubeConfig(clusterName, provider, clusterType interface{}) *gomock.Call
- func (mr *MockClusterTestRunnerMockRecorder) GetKubeConfigPath() *gomock.Call
- func (mr *MockClusterTestRunnerMockRecorder) GetKubeContextForTanzuCluster(clusterName interface{}) *gomock.Call
- func (mr *MockClusterTestRunnerMockRecorder) GetRandomClusterNames() *gomock.Call
- func (mr *MockClusterTestRunnerMockRecorder) PrintClusterInformation(kubeConfigPath, kubeContext interface{}) *gomock.Call
- func (mr *MockClusterTestRunnerMockRecorder) RunChecks() *gomock.Call
- func (mr *MockClusterTestRunnerMockRecorder) RunCluster(clusterName, provider, clusterType interface{}) *gomock.Call
- func (mr *MockClusterTestRunnerMockRecorder) WaitForWorkloadClusterDeletion(workloadClusterName interface{}) *gomock.Call
- type MockProvider
- func (m *MockProvider) CleanupCluster(ctx context.Context, clusterName string) error
- func (m *MockProvider) EXPECT() *MockProviderMockRecorder
- func (m *MockProvider) GetTanzuConfig(clusterName string) tanzu.TanzuConfig
- func (m *MockProvider) Init() error
- func (m *MockProvider) Name() string
- func (m *MockProvider) PreClusterCreationTasks(clusterName string, clusterType utils.ClusterType) error
- func (m *MockProvider) RequiredEnvVars() []string
- type MockProviderMockRecorder
- func (mr *MockProviderMockRecorder) CleanupCluster(ctx, clusterName interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) GetTanzuConfig(clusterName interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) Init() *gomock.Call
- func (mr *MockProviderMockRecorder) Name() *gomock.Call
- func (mr *MockProviderMockRecorder) PreClusterCreationTasks(clusterName, clusterType interface{}) *gomock.Call
- func (mr *MockProviderMockRecorder) RequiredEnvVars() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClusterTestRunner ¶
type MockClusterTestRunner struct {
// contains filtered or unexported fields
}
MockClusterTestRunner is a mock of ClusterTestRunner interface.
func NewMockClusterTestRunner ¶
func NewMockClusterTestRunner(ctrl *gomock.Controller) *MockClusterTestRunner
NewMockClusterTestRunner creates a new mock instance.
func (*MockClusterTestRunner) CheckWorkloadClusterIsRunning ¶
func (m *MockClusterTestRunner) CheckWorkloadClusterIsRunning(workloadClusterName string) error
CheckWorkloadClusterIsRunning mocks base method.
func (*MockClusterTestRunner) CleanupDockerBootstrapCluster ¶
func (m *MockClusterTestRunner) CleanupDockerBootstrapCluster(managementClusterName string) error
CleanupDockerBootstrapCluster mocks base method.
func (*MockClusterTestRunner) CollectManagementClusterAndWorkloadClusterDiagnostics ¶
func (m *MockClusterTestRunner) CollectManagementClusterAndWorkloadClusterDiagnostics(managementClusterName, workloadClusterName, workloadClusterInfra string) error
CollectManagementClusterAndWorkloadClusterDiagnostics mocks base method.
func (*MockClusterTestRunner) CollectManagementClusterDiagnostics ¶
func (m *MockClusterTestRunner) CollectManagementClusterDiagnostics(managementClusterName string) error
CollectManagementClusterDiagnostics mocks base method.
func (*MockClusterTestRunner) DeleteCluster ¶
func (m *MockClusterTestRunner) DeleteCluster(clusterName string, provider utils.Provider, clusterType utils.ClusterType) error
DeleteCluster mocks base method.
func (*MockClusterTestRunner) DeleteContext ¶
func (m *MockClusterTestRunner) DeleteContext(kubeConfigPath, contextName string) error
DeleteContext mocks base method.
func (*MockClusterTestRunner) EXPECT ¶
func (m *MockClusterTestRunner) EXPECT() *MockClusterTestRunnerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClusterTestRunner) GetClusterKubeConfig ¶
func (m *MockClusterTestRunner) GetClusterKubeConfig(clusterName string, provider utils.Provider, clusterType utils.ClusterType)
GetClusterKubeConfig mocks base method.
func (*MockClusterTestRunner) GetKubeConfigPath ¶
func (m *MockClusterTestRunner) GetKubeConfigPath() (string, error)
GetKubeConfigPath mocks base method.
func (*MockClusterTestRunner) GetKubeContextForTanzuCluster ¶
func (m *MockClusterTestRunner) GetKubeContextForTanzuCluster(clusterName string) string
GetKubeContextForTanzuCluster mocks base method.
func (*MockClusterTestRunner) GetRandomClusterNames ¶
func (m *MockClusterTestRunner) GetRandomClusterNames() (string, string)
GetRandomClusterNames mocks base method.
func (*MockClusterTestRunner) PrintClusterInformation ¶
func (m *MockClusterTestRunner) PrintClusterInformation(kubeConfigPath, kubeContext string) error
PrintClusterInformation mocks base method.
func (*MockClusterTestRunner) RunChecks ¶
func (m *MockClusterTestRunner) RunChecks()
RunChecks mocks base method.
func (*MockClusterTestRunner) RunCluster ¶
func (m *MockClusterTestRunner) RunCluster(clusterName string, provider utils.Provider, clusterType utils.ClusterType) error
RunCluster mocks base method.
func (*MockClusterTestRunner) WaitForWorkloadClusterDeletion ¶
func (m *MockClusterTestRunner) WaitForWorkloadClusterDeletion(workloadClusterName string) error
WaitForWorkloadClusterDeletion mocks base method.
type MockClusterTestRunnerMockRecorder ¶
type MockClusterTestRunnerMockRecorder struct {
// contains filtered or unexported fields
}
MockClusterTestRunnerMockRecorder is the mock recorder for MockClusterTestRunner.
func (*MockClusterTestRunnerMockRecorder) CheckWorkloadClusterIsRunning ¶
func (mr *MockClusterTestRunnerMockRecorder) CheckWorkloadClusterIsRunning(workloadClusterName interface{}) *gomock.Call
CheckWorkloadClusterIsRunning indicates an expected call of CheckWorkloadClusterIsRunning.
func (*MockClusterTestRunnerMockRecorder) CleanupDockerBootstrapCluster ¶
func (mr *MockClusterTestRunnerMockRecorder) CleanupDockerBootstrapCluster(managementClusterName interface{}) *gomock.Call
CleanupDockerBootstrapCluster indicates an expected call of CleanupDockerBootstrapCluster.
func (*MockClusterTestRunnerMockRecorder) CollectManagementClusterAndWorkloadClusterDiagnostics ¶
func (mr *MockClusterTestRunnerMockRecorder) CollectManagementClusterAndWorkloadClusterDiagnostics(managementClusterName, workloadClusterName, workloadClusterInfra interface{}) *gomock.Call
CollectManagementClusterAndWorkloadClusterDiagnostics indicates an expected call of CollectManagementClusterAndWorkloadClusterDiagnostics.
func (*MockClusterTestRunnerMockRecorder) CollectManagementClusterDiagnostics ¶
func (mr *MockClusterTestRunnerMockRecorder) CollectManagementClusterDiagnostics(managementClusterName interface{}) *gomock.Call
CollectManagementClusterDiagnostics indicates an expected call of CollectManagementClusterDiagnostics.
func (*MockClusterTestRunnerMockRecorder) DeleteCluster ¶
func (mr *MockClusterTestRunnerMockRecorder) DeleteCluster(clusterName, provider, clusterType interface{}) *gomock.Call
DeleteCluster indicates an expected call of DeleteCluster.
func (*MockClusterTestRunnerMockRecorder) DeleteContext ¶
func (mr *MockClusterTestRunnerMockRecorder) DeleteContext(kubeConfigPath, contextName interface{}) *gomock.Call
DeleteContext indicates an expected call of DeleteContext.
func (*MockClusterTestRunnerMockRecorder) GetClusterKubeConfig ¶
func (mr *MockClusterTestRunnerMockRecorder) GetClusterKubeConfig(clusterName, provider, clusterType interface{}) *gomock.Call
GetClusterKubeConfig indicates an expected call of GetClusterKubeConfig.
func (*MockClusterTestRunnerMockRecorder) GetKubeConfigPath ¶
func (mr *MockClusterTestRunnerMockRecorder) GetKubeConfigPath() *gomock.Call
GetKubeConfigPath indicates an expected call of GetKubeConfigPath.
func (*MockClusterTestRunnerMockRecorder) GetKubeContextForTanzuCluster ¶
func (mr *MockClusterTestRunnerMockRecorder) GetKubeContextForTanzuCluster(clusterName interface{}) *gomock.Call
GetKubeContextForTanzuCluster indicates an expected call of GetKubeContextForTanzuCluster.
func (*MockClusterTestRunnerMockRecorder) GetRandomClusterNames ¶
func (mr *MockClusterTestRunnerMockRecorder) GetRandomClusterNames() *gomock.Call
GetRandomClusterNames indicates an expected call of GetRandomClusterNames.
func (*MockClusterTestRunnerMockRecorder) PrintClusterInformation ¶
func (mr *MockClusterTestRunnerMockRecorder) PrintClusterInformation(kubeConfigPath, kubeContext interface{}) *gomock.Call
PrintClusterInformation indicates an expected call of PrintClusterInformation.
func (*MockClusterTestRunnerMockRecorder) RunChecks ¶
func (mr *MockClusterTestRunnerMockRecorder) RunChecks() *gomock.Call
RunChecks indicates an expected call of RunChecks.
func (*MockClusterTestRunnerMockRecorder) RunCluster ¶
func (mr *MockClusterTestRunnerMockRecorder) RunCluster(clusterName, provider, clusterType interface{}) *gomock.Call
RunCluster indicates an expected call of RunCluster.
func (*MockClusterTestRunnerMockRecorder) WaitForWorkloadClusterDeletion ¶
func (mr *MockClusterTestRunnerMockRecorder) WaitForWorkloadClusterDeletion(workloadClusterName interface{}) *gomock.Call
WaitForWorkloadClusterDeletion indicates an expected call of WaitForWorkloadClusterDeletion.
type MockProvider ¶
type MockProvider struct {
// contains filtered or unexported fields
}
MockProvider is a mock of Provider interface.
func NewMockProvider ¶
func NewMockProvider(ctrl *gomock.Controller) *MockProvider
NewMockProvider creates a new mock instance.
func (*MockProvider) CleanupCluster ¶
func (m *MockProvider) CleanupCluster(ctx context.Context, clusterName string) error
CleanupCluster mocks base method.
func (*MockProvider) EXPECT ¶
func (m *MockProvider) EXPECT() *MockProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProvider) GetTanzuConfig ¶
func (m *MockProvider) GetTanzuConfig(clusterName string) tanzu.TanzuConfig
GetTanzuConfig mocks base method.
func (*MockProvider) PreClusterCreationTasks ¶
func (m *MockProvider) PreClusterCreationTasks(clusterName string, clusterType utils.ClusterType) error
PreClusterCreationTasks mocks base method.
func (*MockProvider) RequiredEnvVars ¶
func (m *MockProvider) RequiredEnvVars() []string
RequiredEnvVars mocks base method.
type MockProviderMockRecorder ¶
type MockProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderMockRecorder is the mock recorder for MockProvider.
func (*MockProviderMockRecorder) CleanupCluster ¶
func (mr *MockProviderMockRecorder) CleanupCluster(ctx, clusterName interface{}) *gomock.Call
CleanupCluster indicates an expected call of CleanupCluster.
func (*MockProviderMockRecorder) GetTanzuConfig ¶
func (mr *MockProviderMockRecorder) GetTanzuConfig(clusterName interface{}) *gomock.Call
GetTanzuConfig indicates an expected call of GetTanzuConfig.
func (*MockProviderMockRecorder) Init ¶
func (mr *MockProviderMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init.
func (*MockProviderMockRecorder) Name ¶
func (mr *MockProviderMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockProviderMockRecorder) PreClusterCreationTasks ¶
func (mr *MockProviderMockRecorder) PreClusterCreationTasks(clusterName, clusterType interface{}) *gomock.Call
PreClusterCreationTasks indicates an expected call of PreClusterCreationTasks.
func (*MockProviderMockRecorder) RequiredEnvVars ¶
func (mr *MockProviderMockRecorder) RequiredEnvVars() *gomock.Call
RequiredEnvVars indicates an expected call of RequiredEnvVars.