analyzer

package
v0.7.2-beta.23 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MissingOutcomeMessage = "there is a missing outcome message"
	IncorrectOutcomeType  = "there is an incorrect outcome type"
	PassType              = "Pass"
	WarnType              = "Warn"
	FailType              = "Fail"
)
View Source
const (
	StorageClassPath      = "cluster-resources/storage-classes.json"
	StorageClassErrorPath = "cluster-resources/storage-classes-errors.json"
)
View Source
const (
	NodesPath      = "cluster-resources/nodes.json"
	NodesErrorPath = "cluster-resources/nodes-errors.json"
	Tolerations    = "tolerations"
	KubeBlocks     = "kubeblocks"
)

Variables

This section is empty.

Functions

func GetClusterVersionPath

func GetClusterVersionPath() string

func HostKBAnalyze

func HostKBAnalyze(ctx context.Context, kbHostAnalyzer *preflightv1beta2.ExtendHostAnalyze, getFile func(string) ([]byte, error), findFiles func(string, []string) (map[string][]byte, error)) []*analyze.AnalyzeResult

func KBAnalyze

func KBAnalyze(ctx context.Context, kbAnalyzer *preflightv1beta2.ExtendAnalyze, getFile func(string) ([]byte, error), findFiles func(string, []string) (map[string][]byte, error), options *values.Options) []*analyze.AnalyzeResult

func NewAnalyzeResultError

func NewAnalyzeResultError(analyzer KBAnalyzer, err error) []*analyze.AnalyzeResult

Types

type AnalyzeClusterAccess

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

func (*AnalyzeClusterAccess) Analyze

func (*AnalyzeClusterAccess) IsExcluded

func (a *AnalyzeClusterAccess) IsExcluded() (bool, error)

func (*AnalyzeClusterAccess) Title

func (a *AnalyzeClusterAccess) Title() string

type AnalyzeClusterRegion

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

func (*AnalyzeClusterRegion) Analyze

func (a *AnalyzeClusterRegion) Analyze(getFile func(string) ([]byte, error)) ([]*analyzer.AnalyzeResult, error)

func (*AnalyzeClusterRegion) IsExcluded

func (a *AnalyzeClusterRegion) IsExcluded() (bool, error)

func (*AnalyzeClusterRegion) Title

func (a *AnalyzeClusterRegion) Title() string

type AnalyzeHostUtility

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

func (*AnalyzeHostUtility) Analyze

func (a *AnalyzeHostUtility) Analyze(getCollectedFileContents func(string) ([]byte, error)) ([]*analyzer.AnalyzeResult, error)

func (*AnalyzeHostUtility) IsExcluded

func (a *AnalyzeHostUtility) IsExcluded() (bool, error)

func (*AnalyzeHostUtility) Title

func (a *AnalyzeHostUtility) Title() string

type AnalyzeStorageClassByKb

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

func (*AnalyzeStorageClassByKb) Analyze

func (*AnalyzeStorageClassByKb) GetAnalyzer

func (*AnalyzeStorageClassByKb) IsExcluded

func (a *AnalyzeStorageClassByKb) IsExcluded() (bool, error)

func (*AnalyzeStorageClassByKb) Title

func (a *AnalyzeStorageClassByKb) Title() string

type AnalyzeTaintClassByKb

type AnalyzeTaintClassByKb struct {
	HelmOpts *values.Options
	// contains filtered or unexported fields
}

func (*AnalyzeTaintClassByKb) Analyze

func (*AnalyzeTaintClassByKb) GetAnalyzer

func (*AnalyzeTaintClassByKb) IsExcluded

func (a *AnalyzeTaintClassByKb) IsExcluded() (bool, error)

func (*AnalyzeTaintClassByKb) Title

func (a *AnalyzeTaintClassByKb) Title() string

type GetChildCollectedFileContents

type GetChildCollectedFileContents func(string, []string) (map[string][]byte, error)

type GetCollectedFileContents

type GetCollectedFileContents func(string) ([]byte, error)

type KBAnalyzer

type KBAnalyzer interface {
	Title() string
	IsExcluded() (bool, error)
	Analyze(getFile GetCollectedFileContents, findFiles GetChildCollectedFileContents) ([]*analyze.AnalyzeResult, error)
}

func GetAnalyzer

func GetAnalyzer(analyzer *preflightv1beta2.ExtendAnalyze, options *values.Options) (KBAnalyzer, bool)

Jump to

Keyboard shortcuts

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