Documentation ¶
Index ¶
- Constants
- func GetClusterVersionPath() string
- func GetHostAnalyzer(analyzer *preflightv1beta2.ExtendHostAnalyze) (analyze.HostAnalyzer, bool)
- func HostKBAnalyze(ctx context.Context, kbHostAnalyzer *preflightv1beta2.ExtendHostAnalyze, ...) []*analyze.AnalyzeResult
- func KBAnalyze(ctx context.Context, kbAnalyzer *preflightv1beta2.ExtendAnalyze, ...) []*analyze.AnalyzeResult
- func NewAnalyzeResultError(analyzer KBAnalyzer, err error) []*analyze.AnalyzeResult
- type AnalyzeClusterAccess
- type AnalyzeClusterRegion
- type AnalyzeHostUtility
- type AnalyzeStorageClassByKb
- func (a *AnalyzeStorageClassByKb) Analyze(getFile GetCollectedFileContents, findFiles GetChildCollectedFileContents) ([]*analyze.AnalyzeResult, error)
- func (a *AnalyzeStorageClassByKb) GetAnalyzer() *preflightv1beta2.KBStorageClassAnalyze
- func (a *AnalyzeStorageClassByKb) IsExcluded() (bool, error)
- func (a *AnalyzeStorageClassByKb) Title() string
- type AnalyzeTaintClassByKb
- func (a *AnalyzeTaintClassByKb) Analyze(getFile GetCollectedFileContents, findFiles GetChildCollectedFileContents) ([]*analyze.AnalyzeResult, error)
- func (a *AnalyzeTaintClassByKb) GetAnalyzer() *preflightv1beta2.KBTaintAnalyze
- func (a *AnalyzeTaintClassByKb) IsExcluded() (bool, error)
- func (a *AnalyzeTaintClassByKb) Title() string
- type GetChildCollectedFileContents
- type GetCollectedFileContents
- type KBAnalyzer
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 GetHostAnalyzer ¶
func GetHostAnalyzer(analyzer *preflightv1beta2.ExtendHostAnalyze) (analyze.HostAnalyzer, bool)
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 NewAnalyzeResultError ¶
func NewAnalyzeResultError(analyzer KBAnalyzer, err error) []*analyze.AnalyzeResult
Types ¶
type AnalyzeClusterAccess ¶
type AnalyzeClusterAccess struct {
// contains filtered or unexported fields
}
func (*AnalyzeClusterAccess) Analyze ¶
func (a *AnalyzeClusterAccess) Analyze(getFile GetCollectedFileContents, findFiles GetChildCollectedFileContents) ([]*analyze.AnalyzeResult, error)
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 (a *AnalyzeStorageClassByKb) Analyze(getFile GetCollectedFileContents, findFiles GetChildCollectedFileContents) ([]*analyze.AnalyzeResult, error)
func (*AnalyzeStorageClassByKb) GetAnalyzer ¶
func (a *AnalyzeStorageClassByKb) GetAnalyzer() *preflightv1beta2.KBStorageClassAnalyze
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 (a *AnalyzeTaintClassByKb) Analyze(getFile GetCollectedFileContents, findFiles GetChildCollectedFileContents) ([]*analyze.AnalyzeResult, error)
func (*AnalyzeTaintClassByKb) GetAnalyzer ¶
func (a *AnalyzeTaintClassByKb) GetAnalyzer() *preflightv1beta2.KBTaintAnalyze
func (*AnalyzeTaintClassByKb) IsExcluded ¶
func (a *AnalyzeTaintClassByKb) IsExcluded() (bool, error)
func (*AnalyzeTaintClassByKb) Title ¶
func (a *AnalyzeTaintClassByKb) Title() string
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)
Click to show internal directories.
Click to hide internal directories.