mocks

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAnalyzerFactory

type MockAnalyzerFactory struct {
	// contains filtered or unexported fields
}

MockAnalyzerFactory is a mock of AnalyzerFactory interface.

func NewMockAnalyzerFactory

func NewMockAnalyzerFactory(ctrl *gomock.Controller) *MockAnalyzerFactory

NewMockAnalyzerFactory creates a new mock instance.

func (*MockAnalyzerFactory) DataCenterConfigAnalyzers

func (m *MockAnalyzerFactory) DataCenterConfigAnalyzers(datacenter v1alpha1.Ref) []*diagnostics.Analyze

DataCenterConfigAnalyzers mocks base method.

func (*MockAnalyzerFactory) DefaultAnalyzers

func (m *MockAnalyzerFactory) DefaultAnalyzers() []*diagnostics.Analyze

DefaultAnalyzers mocks base method.

func (*MockAnalyzerFactory) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAnalyzerFactory) EksaExternalEtcdAnalyzers

func (m *MockAnalyzerFactory) EksaExternalEtcdAnalyzers() []*diagnostics.Analyze

EksaExternalEtcdAnalyzers mocks base method.

func (*MockAnalyzerFactory) EksaGitopsAnalyzers

func (m *MockAnalyzerFactory) EksaGitopsAnalyzers() []*diagnostics.Analyze

EksaGitopsAnalyzers mocks base method.

func (*MockAnalyzerFactory) EksaLogTextAnalyzers

func (m *MockAnalyzerFactory) EksaLogTextAnalyzers(collectors []*diagnostics.Collect) []*diagnostics.Analyze

EksaLogTextAnalyzers mocks base method.

func (*MockAnalyzerFactory) EksaOidcAnalyzers

func (m *MockAnalyzerFactory) EksaOidcAnalyzers() []*diagnostics.Analyze

EksaOidcAnalyzers mocks base method.

func (*MockAnalyzerFactory) ManagementClusterAnalyzers

func (m *MockAnalyzerFactory) ManagementClusterAnalyzers() []*diagnostics.Analyze

ManagementClusterAnalyzers mocks base method.

func (*MockAnalyzerFactory) PackageAnalyzers added in v0.9.0

func (m *MockAnalyzerFactory) PackageAnalyzers() []*diagnostics.Analyze

PackageAnalyzers mocks base method.

type MockAnalyzerFactoryMockRecorder

type MockAnalyzerFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockAnalyzerFactoryMockRecorder is the mock recorder for MockAnalyzerFactory.

func (*MockAnalyzerFactoryMockRecorder) DataCenterConfigAnalyzers

func (mr *MockAnalyzerFactoryMockRecorder) DataCenterConfigAnalyzers(datacenter interface{}) *gomock.Call

DataCenterConfigAnalyzers indicates an expected call of DataCenterConfigAnalyzers.

func (*MockAnalyzerFactoryMockRecorder) DefaultAnalyzers

func (mr *MockAnalyzerFactoryMockRecorder) DefaultAnalyzers() *gomock.Call

DefaultAnalyzers indicates an expected call of DefaultAnalyzers.

func (*MockAnalyzerFactoryMockRecorder) EksaExternalEtcdAnalyzers

func (mr *MockAnalyzerFactoryMockRecorder) EksaExternalEtcdAnalyzers() *gomock.Call

EksaExternalEtcdAnalyzers indicates an expected call of EksaExternalEtcdAnalyzers.

func (*MockAnalyzerFactoryMockRecorder) EksaGitopsAnalyzers

func (mr *MockAnalyzerFactoryMockRecorder) EksaGitopsAnalyzers() *gomock.Call

EksaGitopsAnalyzers indicates an expected call of EksaGitopsAnalyzers.

func (*MockAnalyzerFactoryMockRecorder) EksaLogTextAnalyzers

func (mr *MockAnalyzerFactoryMockRecorder) EksaLogTextAnalyzers(collectors interface{}) *gomock.Call

EksaLogTextAnalyzers indicates an expected call of EksaLogTextAnalyzers.

func (*MockAnalyzerFactoryMockRecorder) EksaOidcAnalyzers

func (mr *MockAnalyzerFactoryMockRecorder) EksaOidcAnalyzers() *gomock.Call

EksaOidcAnalyzers indicates an expected call of EksaOidcAnalyzers.

func (*MockAnalyzerFactoryMockRecorder) ManagementClusterAnalyzers

func (mr *MockAnalyzerFactoryMockRecorder) ManagementClusterAnalyzers() *gomock.Call

ManagementClusterAnalyzers indicates an expected call of ManagementClusterAnalyzers.

func (*MockAnalyzerFactoryMockRecorder) PackageAnalyzers added in v0.9.0

func (mr *MockAnalyzerFactoryMockRecorder) PackageAnalyzers() *gomock.Call

PackageAnalyzers indicates an expected call of PackageAnalyzers.

type MockBundleClient

type MockBundleClient struct {
	// contains filtered or unexported fields
}

MockBundleClient is a mock of BundleClient interface.

func NewMockBundleClient

func NewMockBundleClient(ctrl *gomock.Controller) *MockBundleClient

NewMockBundleClient creates a new mock instance.

func (*MockBundleClient) Analyze

func (m *MockBundleClient) Analyze(ctx context.Context, bundleSpecPath, archivePath string) ([]*executables.SupportBundleAnalysis, error)

Analyze mocks base method.

func (*MockBundleClient) Collect

func (m *MockBundleClient) Collect(ctx context.Context, bundlePath string, sinceTime *time.Time, kubeconfig string) (string, error)

Collect mocks base method.

func (*MockBundleClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockBundleClientMockRecorder

type MockBundleClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockBundleClientMockRecorder is the mock recorder for MockBundleClient.

func (*MockBundleClientMockRecorder) Analyze

func (mr *MockBundleClientMockRecorder) Analyze(ctx, bundleSpecPath, archivePath interface{}) *gomock.Call

Analyze indicates an expected call of Analyze.

func (*MockBundleClientMockRecorder) Collect

func (mr *MockBundleClientMockRecorder) Collect(ctx, bundlePath, sinceTime, kubeconfig interface{}) *gomock.Call

Collect indicates an expected call of Collect.

type MockCollectorFactory

type MockCollectorFactory struct {
	// contains filtered or unexported fields
}

MockCollectorFactory is a mock of CollectorFactory interface.

func NewMockCollectorFactory

func NewMockCollectorFactory(ctrl *gomock.Controller) *MockCollectorFactory

NewMockCollectorFactory creates a new mock instance.

func (*MockCollectorFactory) DataCenterConfigCollectors added in v0.6.1

func (m *MockCollectorFactory) DataCenterConfigCollectors(datacenter v1alpha1.Ref) []*diagnostics.Collect

DataCenterConfigCollectors mocks base method.

func (*MockCollectorFactory) DefaultCollectors

func (m *MockCollectorFactory) DefaultCollectors() []*diagnostics.Collect

DefaultCollectors mocks base method.

func (*MockCollectorFactory) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCollectorFactory) EksaHostCollectors

func (m *MockCollectorFactory) EksaHostCollectors(configs []providers.MachineConfig) []*diagnostics.Collect

EksaHostCollectors mocks base method.

func (*MockCollectorFactory) ManagementClusterCollectors

func (m *MockCollectorFactory) ManagementClusterCollectors() []*diagnostics.Collect

ManagementClusterCollectors mocks base method.

func (*MockCollectorFactory) PackagesCollectors added in v0.9.0

func (m *MockCollectorFactory) PackagesCollectors() []*diagnostics.Collect

PackagesCollectors mocks base method.

type MockCollectorFactoryMockRecorder

type MockCollectorFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockCollectorFactoryMockRecorder is the mock recorder for MockCollectorFactory.

func (*MockCollectorFactoryMockRecorder) DataCenterConfigCollectors added in v0.6.1

func (mr *MockCollectorFactoryMockRecorder) DataCenterConfigCollectors(datacenter interface{}) *gomock.Call

DataCenterConfigCollectors indicates an expected call of DataCenterConfigCollectors.

func (*MockCollectorFactoryMockRecorder) DefaultCollectors

func (mr *MockCollectorFactoryMockRecorder) DefaultCollectors() *gomock.Call

DefaultCollectors indicates an expected call of DefaultCollectors.

func (*MockCollectorFactoryMockRecorder) EksaHostCollectors

func (mr *MockCollectorFactoryMockRecorder) EksaHostCollectors(configs interface{}) *gomock.Call

EksaHostCollectors indicates an expected call of EksaHostCollectors.

func (*MockCollectorFactoryMockRecorder) ManagementClusterCollectors

func (mr *MockCollectorFactoryMockRecorder) ManagementClusterCollectors() *gomock.Call

ManagementClusterCollectors indicates an expected call of ManagementClusterCollectors.

func (*MockCollectorFactoryMockRecorder) PackagesCollectors added in v0.9.0

func (mr *MockCollectorFactoryMockRecorder) PackagesCollectors() *gomock.Call

PackagesCollectors indicates an expected call of PackagesCollectors.

type MockDiagnosticBundle

type MockDiagnosticBundle struct {
	// contains filtered or unexported fields
}

MockDiagnosticBundle is a mock of DiagnosticBundle interface.

func NewMockDiagnosticBundle

func NewMockDiagnosticBundle(ctrl *gomock.Controller) *MockDiagnosticBundle

NewMockDiagnosticBundle creates a new mock instance.

func (*MockDiagnosticBundle) CollectAndAnalyze

func (m *MockDiagnosticBundle) CollectAndAnalyze(ctx context.Context, sinceTimeValue *time.Time) error

CollectAndAnalyze mocks base method.

func (*MockDiagnosticBundle) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDiagnosticBundle) PrintAnalysis

func (m *MockDiagnosticBundle) PrintAnalysis() error

PrintAnalysis mocks base method.

func (*MockDiagnosticBundle) PrintBundleConfig

func (m *MockDiagnosticBundle) PrintBundleConfig() error

PrintBundleConfig mocks base method.

func (*MockDiagnosticBundle) WithDatacenterConfig

func (m *MockDiagnosticBundle) WithDatacenterConfig(config v1alpha1.Ref) *diagnostics.EksaDiagnosticBundle

WithDatacenterConfig mocks base method.

func (*MockDiagnosticBundle) WithDefaultAnalyzers

func (m *MockDiagnosticBundle) WithDefaultAnalyzers() *diagnostics.EksaDiagnosticBundle

WithDefaultAnalyzers mocks base method.

func (*MockDiagnosticBundle) WithDefaultCollectors

func (m *MockDiagnosticBundle) WithDefaultCollectors() *diagnostics.EksaDiagnosticBundle

WithDefaultCollectors mocks base method.

func (*MockDiagnosticBundle) WithExternalEtcd

WithExternalEtcd mocks base method.

func (*MockDiagnosticBundle) WithGitOpsConfig

WithGitOpsConfig mocks base method.

func (*MockDiagnosticBundle) WithLogTextAnalyzers

func (m *MockDiagnosticBundle) WithLogTextAnalyzers() *diagnostics.EksaDiagnosticBundle

WithLogTextAnalyzers mocks base method.

func (*MockDiagnosticBundle) WithMachineConfigs

WithMachineConfigs mocks base method.

func (*MockDiagnosticBundle) WithOidcConfig

WithOidcConfig mocks base method.

func (*MockDiagnosticBundle) WriteAnalysisToFile

func (m *MockDiagnosticBundle) WriteAnalysisToFile() (string, error)

WriteAnalysisToFile mocks base method.

func (*MockDiagnosticBundle) WriteBundleConfig

func (m *MockDiagnosticBundle) WriteBundleConfig() error

WriteBundleConfig mocks base method.

type MockDiagnosticBundleFactory

type MockDiagnosticBundleFactory struct {
	// contains filtered or unexported fields
}

MockDiagnosticBundleFactory is a mock of DiagnosticBundleFactory interface.

func NewMockDiagnosticBundleFactory

func NewMockDiagnosticBundleFactory(ctrl *gomock.Controller) *MockDiagnosticBundleFactory

NewMockDiagnosticBundleFactory creates a new mock instance.

func (*MockDiagnosticBundleFactory) DiagnosticBundle

func (m *MockDiagnosticBundleFactory) DiagnosticBundle(spec *cluster.Spec, provider providers.Provider, kubeconfig, bundlePath string) (diagnostics.DiagnosticBundle, error)

DiagnosticBundle mocks base method.

func (*MockDiagnosticBundleFactory) DiagnosticBundleCustom

func (m *MockDiagnosticBundleFactory) DiagnosticBundleCustom(kubeconfig, bundlePath string) diagnostics.DiagnosticBundle

DiagnosticBundleCustom mocks base method.

func (*MockDiagnosticBundleFactory) DiagnosticBundleDefault

func (m *MockDiagnosticBundleFactory) DiagnosticBundleDefault() diagnostics.DiagnosticBundle

DiagnosticBundleDefault mocks base method.

func (*MockDiagnosticBundleFactory) DiagnosticBundleManagementCluster

func (m *MockDiagnosticBundleFactory) DiagnosticBundleManagementCluster(spec *cluster.Spec, kubeconfig string) (diagnostics.DiagnosticBundle, error)

DiagnosticBundleManagementCluster mocks base method.

func (*MockDiagnosticBundleFactory) DiagnosticBundleWorkloadCluster added in v0.9.1

func (m *MockDiagnosticBundleFactory) DiagnosticBundleWorkloadCluster(spec *cluster.Spec, provider providers.Provider, kubeconfig string) (diagnostics.DiagnosticBundle, error)

DiagnosticBundleWorkloadCluster mocks base method.

func (*MockDiagnosticBundleFactory) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockDiagnosticBundleFactoryMockRecorder

type MockDiagnosticBundleFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockDiagnosticBundleFactoryMockRecorder is the mock recorder for MockDiagnosticBundleFactory.

func (*MockDiagnosticBundleFactoryMockRecorder) DiagnosticBundle

func (mr *MockDiagnosticBundleFactoryMockRecorder) DiagnosticBundle(spec, provider, kubeconfig, bundlePath interface{}) *gomock.Call

DiagnosticBundle indicates an expected call of DiagnosticBundle.

func (*MockDiagnosticBundleFactoryMockRecorder) DiagnosticBundleCustom

func (mr *MockDiagnosticBundleFactoryMockRecorder) DiagnosticBundleCustom(kubeconfig, bundlePath interface{}) *gomock.Call

DiagnosticBundleCustom indicates an expected call of DiagnosticBundleCustom.

func (*MockDiagnosticBundleFactoryMockRecorder) DiagnosticBundleDefault

func (mr *MockDiagnosticBundleFactoryMockRecorder) DiagnosticBundleDefault() *gomock.Call

DiagnosticBundleDefault indicates an expected call of DiagnosticBundleDefault.

func (*MockDiagnosticBundleFactoryMockRecorder) DiagnosticBundleManagementCluster

func (mr *MockDiagnosticBundleFactoryMockRecorder) DiagnosticBundleManagementCluster(spec, kubeconfig interface{}) *gomock.Call

DiagnosticBundleManagementCluster indicates an expected call of DiagnosticBundleManagementCluster.

func (*MockDiagnosticBundleFactoryMockRecorder) DiagnosticBundleWorkloadCluster added in v0.9.1

func (mr *MockDiagnosticBundleFactoryMockRecorder) DiagnosticBundleWorkloadCluster(spec, provider, kubeconfig interface{}) *gomock.Call

DiagnosticBundleWorkloadCluster indicates an expected call of DiagnosticBundleWorkloadCluster.

type MockDiagnosticBundleMockRecorder

type MockDiagnosticBundleMockRecorder struct {
	// contains filtered or unexported fields
}

MockDiagnosticBundleMockRecorder is the mock recorder for MockDiagnosticBundle.

func (*MockDiagnosticBundleMockRecorder) CollectAndAnalyze

func (mr *MockDiagnosticBundleMockRecorder) CollectAndAnalyze(ctx, sinceTimeValue interface{}) *gomock.Call

CollectAndAnalyze indicates an expected call of CollectAndAnalyze.

func (*MockDiagnosticBundleMockRecorder) PrintAnalysis

func (mr *MockDiagnosticBundleMockRecorder) PrintAnalysis() *gomock.Call

PrintAnalysis indicates an expected call of PrintAnalysis.

func (*MockDiagnosticBundleMockRecorder) PrintBundleConfig

func (mr *MockDiagnosticBundleMockRecorder) PrintBundleConfig() *gomock.Call

PrintBundleConfig indicates an expected call of PrintBundleConfig.

func (*MockDiagnosticBundleMockRecorder) WithDatacenterConfig

func (mr *MockDiagnosticBundleMockRecorder) WithDatacenterConfig(config interface{}) *gomock.Call

WithDatacenterConfig indicates an expected call of WithDatacenterConfig.

func (*MockDiagnosticBundleMockRecorder) WithDefaultAnalyzers

func (mr *MockDiagnosticBundleMockRecorder) WithDefaultAnalyzers() *gomock.Call

WithDefaultAnalyzers indicates an expected call of WithDefaultAnalyzers.

func (*MockDiagnosticBundleMockRecorder) WithDefaultCollectors

func (mr *MockDiagnosticBundleMockRecorder) WithDefaultCollectors() *gomock.Call

WithDefaultCollectors indicates an expected call of WithDefaultCollectors.

func (*MockDiagnosticBundleMockRecorder) WithExternalEtcd

func (mr *MockDiagnosticBundleMockRecorder) WithExternalEtcd(config interface{}) *gomock.Call

WithExternalEtcd indicates an expected call of WithExternalEtcd.

func (*MockDiagnosticBundleMockRecorder) WithGitOpsConfig

func (mr *MockDiagnosticBundleMockRecorder) WithGitOpsConfig(config interface{}) *gomock.Call

WithGitOpsConfig indicates an expected call of WithGitOpsConfig.

func (*MockDiagnosticBundleMockRecorder) WithLogTextAnalyzers

func (mr *MockDiagnosticBundleMockRecorder) WithLogTextAnalyzers() *gomock.Call

WithLogTextAnalyzers indicates an expected call of WithLogTextAnalyzers.

func (*MockDiagnosticBundleMockRecorder) WithMachineConfigs

func (mr *MockDiagnosticBundleMockRecorder) WithMachineConfigs(configs interface{}) *gomock.Call

WithMachineConfigs indicates an expected call of WithMachineConfigs.

func (*MockDiagnosticBundleMockRecorder) WithOidcConfig

func (mr *MockDiagnosticBundleMockRecorder) WithOidcConfig(config interface{}) *gomock.Call

WithOidcConfig indicates an expected call of WithOidcConfig.

func (*MockDiagnosticBundleMockRecorder) WriteAnalysisToFile

func (mr *MockDiagnosticBundleMockRecorder) WriteAnalysisToFile() *gomock.Call

WriteAnalysisToFile indicates an expected call of WriteAnalysisToFile.

func (*MockDiagnosticBundleMockRecorder) WriteBundleConfig

func (mr *MockDiagnosticBundleMockRecorder) WriteBundleConfig() *gomock.Call

WriteBundleConfig indicates an expected call of WriteBundleConfig.

Jump to

Keyboard shortcuts

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