Documentation ¶
Index ¶
- Constants
- Variables
- func CheckOpenShift(foundProviders *providers, apiResources []*metav1.APIResourceList, ...) string
- func ExtractTroubleshootBundle(reader io.Reader, destDir string) error
- func FindBundleRootDir(localBundlePath string) (string, error)
- func ParseNodesForProviders(nodes []corev1.Node) (providers, string)
- type AnalyzeResult
- func Analyze(analyzer *troubleshootv1beta2.Analyze, getFile getCollectedFileContents, ...) ([]*AnalyzeResult, error)
- func AnalyzeLocal(localBundlePath string, analyzers []*troubleshootv1beta2.Analyze) ([]*AnalyzeResult, error)
- func DownloadAndAnalyze(bundleURL string, analyzersSpec string) ([]*AnalyzeResult, error)
- func HostAnalyze(hostAnalyzer *troubleshootv1beta2.HostAnalyze, ...) ([]*AnalyzeResult, error)
- type CephHealth
- type Provider
Constants ¶
View Source
const ( SynchronizedActive = "synchronized+active" SynchronizedInactive = "synchronized+inactive" UnsynchronizedActive = "unsynchronized+active" UnsynchronizedInactive = "unsynchronized+inactive" )
Variables ¶
View Source
var CephStatusDefaultOutcomes = []*troubleshootv1beta2.Outcome{ { Pass: &troubleshootv1beta2.SingleOutcome{ Message: "Ceph is healthy", }, }, { Warn: &troubleshootv1beta2.SingleOutcome{ Message: "Ceph status is HEALTH_WARN", URI: "https://rook.io/docs/rook/v1.4/ceph-common-issues.html", }, }, { Fail: &troubleshootv1beta2.SingleOutcome{ Message: "Ceph status is HEALTH_ERR", URI: "https://rook.io/docs/rook/v1.4/ceph-common-issues.html", }, }, }
Functions ¶
func CheckOpenShift ¶ added in v0.9.27
func CheckOpenShift(foundProviders *providers, apiResources []*metav1.APIResourceList, provider string) string
func ExtractTroubleshootBundle ¶ added in v0.9.37
func FindBundleRootDir ¶ added in v0.9.48
FindBundleRootDir detects whether the bundle is stored inside a subdirectory or not. returns the subdirectory path if so, otherwise, returns the path unchanged
func ParseNodesForProviders ¶ added in v0.9.27
Types ¶
type AnalyzeResult ¶
type AnalyzeResult struct { IsPass bool IsFail bool IsWarn bool Title string Message string URI string IconKey string IconURI string }
func Analyze ¶
func Analyze(analyzer *troubleshootv1beta2.Analyze, getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func AnalyzeLocal ¶ added in v0.9.37
func AnalyzeLocal(localBundlePath string, analyzers []*troubleshootv1beta2.Analyze) ([]*AnalyzeResult, error)
Analyze local will analyze a locally available (already downloaded) bundle
func DownloadAndAnalyze ¶ added in v0.9.1
func DownloadAndAnalyze(bundleURL string, analyzersSpec string) ([]*AnalyzeResult, error)
func HostAnalyze ¶ added in v0.10.0
func HostAnalyze(hostAnalyzer *troubleshootv1beta2.HostAnalyze, getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
type CephHealth ¶ added in v0.9.50
type CephHealth string
const ( CephHealthOK CephHealth = "HEALTH_OK" CephHealthWarn CephHealth = "HEALTH_WARN" CephHealthErr CephHealth = "HEALTH_ERR" )
func (CephHealth) Compare ¶ added in v0.9.50
func (a CephHealth) Compare(b CephHealth) int
Source Files ¶
- analyzer.go
- ceph.go
- cluster_version.go
- common_status.go
- container_runtime.go
- crd.go
- database_shared.go
- deployment_status.go
- distribution.go
- download.go
- host_block_devices.go
- host_certificate.go
- host_cpu.go
- host_disk_usage.go
- host_filesystem_performance.go
- host_http.go
- host_httploadbalancer.go
- host_ipv4interfaces.go
- host_memory.go
- host_tcp_connect.go
- host_tcploadbalancer.go
- host_tcpportstatus.go
- host_time.go
- image_pull_secret.go
- ingress.go
- mysql.go
- node_resources.go
- postgres.go
- redis.go
- secret.go
- statefulset_status.go
- storage_class.go
- text_analyze.go
Click to show internal directories.
Click to hide internal directories.