supportbundle

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnalyzerFactory

func NewAnalyzerFactory() *analyzerFactory

func NewCollectorFactory

func NewCollectorFactory() *collectorFactory

func ParseTimeOptions

func ParseTimeOptions(since string, sinceTime string) (*time.Time, error)

Types

type AnalyzerFactory

type AnalyzerFactory interface {
	DefaultAnalyzers() []*v1beta2.Analyze
	EksaGitopsAnalyzers() []*v1beta2.Analyze
	EksaOidcAnalyzers() []*v1beta2.Analyze
	EksaExternalEtcdAnalyzers() []*v1beta2.Analyze
	DataCenterConfigAnalyzers(datacenter v1alpha1.Ref) []*v1beta2.Analyze
}

type CollectorFactory

type CollectorFactory interface {
	DefaultCollectors() []*v1beta2.Collect
}

type DiagnosticBundle

type DiagnosticBundle interface {
	PrintBundleConfig() error
	WithDefaultAnalyzers() *EksaDiagnosticBundle
	WithDefaultCollectors() *EksaDiagnosticBundle
	WithDatacenterConfig(config v1alpha1.Ref) *EksaDiagnosticBundle
	WithOidcConfig(config *v1alpha1.OIDCConfig) *EksaDiagnosticBundle
	WithExternalEtcd(config *v1alpha1.ExternalEtcdConfiguration) *EksaDiagnosticBundle
	WithGitOpsConfig(config *v1alpha1.GitOpsConfig) *EksaDiagnosticBundle
}

type EksaDiagnosticBundle

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

func NewCustomBundleConfig

func NewCustomBundleConfig(customBundle *v1beta2.SupportBundle, af AnalyzerFactory, cf CollectorFactory) *EksaDiagnosticBundle

func ParseBundleFromDoc

func ParseBundleFromDoc(clusterSpec *cluster.Spec, bundleConfig string) (*EksaDiagnosticBundle, error)

func (*EksaDiagnosticBundle) AnalyzeBundle

func (e *EksaDiagnosticBundle) AnalyzeBundle(archivePath string) error

func (*EksaDiagnosticBundle) CollectBundleFromSpec

func (e *EksaDiagnosticBundle) CollectBundleFromSpec(sinceTimeValue *time.Time) (string, error)

func (*EksaDiagnosticBundle) PrintBundleConfig

func (e *EksaDiagnosticBundle) PrintBundleConfig() error

func (*EksaDiagnosticBundle) WithDatacenterConfig

func (e *EksaDiagnosticBundle) WithDatacenterConfig(config v1alpha1.Ref) *EksaDiagnosticBundle

func (*EksaDiagnosticBundle) WithDefaultAnalyzers

func (e *EksaDiagnosticBundle) WithDefaultAnalyzers() *EksaDiagnosticBundle

func (*EksaDiagnosticBundle) WithDefaultCollectors

func (e *EksaDiagnosticBundle) WithDefaultCollectors() *EksaDiagnosticBundle

func (*EksaDiagnosticBundle) WithExternalEtcd

func (*EksaDiagnosticBundle) WithGitOpsConfig

func (e *EksaDiagnosticBundle) WithGitOpsConfig(config *v1alpha1.GitOpsConfig) *EksaDiagnosticBundle

func (*EksaDiagnosticBundle) WithOidcConfig

func (e *EksaDiagnosticBundle) WithOidcConfig(config *v1alpha1.OIDCConfig) *EksaDiagnosticBundle

Directories

Path Synopsis
interfaces
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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