Documentation ¶
Index ¶
- Constants
- Variables
- func CheckApiResourcesForProviders(foundProviders *providers, apiResources []*metav1.APIResourceList, ...) string
- func DedupAnalyzers(allAnalyzers []*troubleshootv1beta2.Analyze) []*troubleshootv1beta2.Analyze
- func DownloadAndExtractSupportBundle(bundleURL string) (string, string, error)
- func ExtractTroubleshootBundle(reader io.Reader, destDir string) error
- func FindBundleRootDir(localBundlePath string) (string, error)
- func FindResource(kind string, clusterScoped bool, namespace string, name string, ...) (interface{}, error)
- func GetExcludeFlag(analyzer *troubleshootv1beta2.Analyze) *multitype.BoolOrString
- func GetVeleroBackupRepositoriesDirectory() string
- func GetVeleroBackupStorageLocationsDirectory() string
- func GetVeleroBackupsDirectory() string
- func GetVeleroDeleteBackupRequestsDirectory() string
- func GetVeleroDownloadRequestsDirectory() string
- func GetVeleroLogsDirectory() string
- func GetVeleroPodVolumeBackupsDirectory() string
- func GetVeleroPodVolumeRestoresDirectory() string
- func GetVeleroResticRepositoriesDirectory() string
- func GetVeleroRestoresDirectory() string
- func GetVeleroSchedulesDirectory() string
- func GetVeleroServerStatusRequestsDirectory() string
- func GetVeleroVolumeSnapshotLocationsDirectory() string
- func ParseNodesForProviders(nodes []corev1.Node) (providers, string)
- type AnalyzeCephStatus
- type AnalyzeCertificates
- func (a *AnalyzeCertificates) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
- func (a *AnalyzeCertificates) AnalyzeCertificates(analyzer *troubleshootv1beta2.CertificatesAnalyze, ...) ([]*AnalyzeResult, error)
- func (a *AnalyzeCertificates) IsExcluded() (bool, error)
- func (a *AnalyzeCertificates) Title() string
- type AnalyzeClusterPodStatuses
- type AnalyzeClusterResource
- type AnalyzeClusterVersion
- type AnalyzeConfigMap
- type AnalyzeContainerRuntime
- type AnalyzeCustomResourceDefinition
- type AnalyzeDeploymentStatus
- type AnalyzeDistribution
- type AnalyzeEvent
- type AnalyzeGoldpinger
- type AnalyzeHTTPAnalyze
- type AnalyzeHostBlockDevices
- type AnalyzeHostCPU
- type AnalyzeHostCertificate
- type AnalyzeHostCertificatesCollection
- type AnalyzeHostDiskUsage
- type AnalyzeHostFilesystemPerformance
- type AnalyzeHostHTTP
- type AnalyzeHostHTTPLoadBalancer
- type AnalyzeHostIPV4Interfaces
- type AnalyzeHostKernelConfigs
- type AnalyzeHostKernelModules
- type AnalyzeHostMemory
- type AnalyzeHostOS
- type AnalyzeHostServices
- type AnalyzeHostSubnetAvailable
- type AnalyzeHostSystemPackages
- type AnalyzeHostTCPConnect
- type AnalyzeHostTCPLoadBalancer
- type AnalyzeHostTCPPortStatus
- type AnalyzeHostTextAnalyze
- type AnalyzeHostTime
- type AnalyzeHostUDPPortStatus
- type AnalyzeImagePullSecret
- type AnalyzeIngress
- type AnalyzeJobStatus
- type AnalyzeJsonCompare
- type AnalyzeLonghorn
- type AnalyzeMssql
- type AnalyzeMysql
- type AnalyzeNodeMetrics
- type AnalyzeNodeResources
- type AnalyzePostgres
- type AnalyzeRedis
- type AnalyzeRegistryImages
- type AnalyzeReplicaSetStatus
- type AnalyzeResult
- func Analyze(ctx context.Context, analyzer *troubleshootv1beta2.Analyze, ...) ([]*AnalyzeResult, error)
- func AnalyzeLocal(ctx context.Context, localBundlePath string, ...) ([]*AnalyzeResult, error)
- func DownloadAndAnalyze(bundleURL string, analyzersSpec string) ([]*AnalyzeResult, error)
- func HostAnalyze(ctx context.Context, hostAnalyzer *troubleshootv1beta2.HostAnalyze, ...) []*AnalyzeResult
- func NewAnalyzeResultError(analyzer HostAnalyzer, err error) []*AnalyzeResult
- type AnalyzeSecret
- type AnalyzeStatefulsetStatus
- type AnalyzeStorageClass
- type AnalyzeSysctl
- type AnalyzeTextAnalyze
- type AnalyzeVelero
- type AnalyzeWeaveReport
- type AnalyzeYamlCompare
- type Analyzer
- type CephHealth
- type CephStatus
- type CheckMessage
- type ComparisonOperator
- type HealthStatus
- type HostAnalyzer
- type OsdMap
- type PgMap
- type Provider
- type Summary
- type WeaveAttributes
- type WeaveConnection
- type WeaveIPAM
- type WeaveReport
- type WeaveRouter
Constants ¶
const ( SynchronizedActive = "synchronized+active" SynchronizedInactive = "synchronized+inactive" UnsynchronizedActive = "unsynchronized+active" UnsynchronizedInactive = "unsynchronized+inactive" )
const FILE_NOT_COLLECTED = "fileNotCollected"
Variables ¶
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", }, }, }
var Filemap = map[string]string{ "deployment": constants.CLUSTER_RESOURCES_DEPLOYMENTS, "statefulset": constants.CLUSTER_RESOURCES_STATEFULSETS, "networkpolicy": constants.CLUSTER_RESOURCES_NETWORK_POLICY, "pod": constants.CLUSTER_RESOURCES_PODS, "ingress": constants.CLUSTER_RESOURCES_INGRESS, "service": constants.CLUSTER_RESOURCES_SERVICES, "resourcequota": constants.CLUSTER_RESOURCES_RESOURCE_QUOTA, "job": constants.CLUSTER_RESOURCES_JOBS, "persistentvolumeclaim": constants.CLUSTER_RESOURCES_PVCS, "pvc": constants.CLUSTER_RESOURCES_PVCS, "replicaset": constants.CLUSTER_RESOURCES_REPLICASETS, "configmap": constants.CLUSTER_RESOURCES_CONFIGMAPS, "namespace": fmt.Sprintf("%s.json", constants.CLUSTER_RESOURCES_NAMESPACES), "persistentvolume": fmt.Sprintf("%s.json", constants.CLUSTER_RESOURCES_PVS), "pv": fmt.Sprintf("%s.json", constants.CLUSTER_RESOURCES_PVS), "node": fmt.Sprintf("%s.json", constants.CLUSTER_RESOURCES_NODES), "storageclass": fmt.Sprintf("%s.json", constants.CLUSTER_RESOURCES_STORAGE_CLASS), }
Functions ¶
func CheckApiResourcesForProviders ¶ added in v0.45.0
func CheckApiResourcesForProviders(foundProviders *providers, apiResources []*metav1.APIResourceList, provider string) string
func DedupAnalyzers ¶ added in v0.60.0
func DedupAnalyzers(allAnalyzers []*troubleshootv1beta2.Analyze) []*troubleshootv1beta2.Analyze
deduplicates a list of troubleshootv1beta2.Analyze objects marshals object to json and then uses its string value to check for uniqueness there is no sorting of the keys in the analyze object's spec so if the spec isn't an exact match line for line as written, no dedup will occur
func DownloadAndExtractSupportBundle ¶ added in v0.53.0
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 FindResource ¶ added in v0.51.0
func FindResource(kind string, clusterScoped bool, namespace string, name string, getFileContents getCollectedFileContents) (interface{}, error)
FindResource locates and returns a kubernetes resource as an interface{} from a support bundle based on some basic selectors if clusterScoped is false and namespace is not provided, it will default to looking in the "default" namespace
func GetExcludeFlag ¶ added in v0.36.0
func GetExcludeFlag(analyzer *troubleshootv1beta2.Analyze) *multitype.BoolOrString
func GetVeleroBackupRepositoriesDirectory ¶ added in v0.77.0
func GetVeleroBackupRepositoriesDirectory() string
func GetVeleroBackupStorageLocationsDirectory ¶ added in v0.77.0
func GetVeleroBackupStorageLocationsDirectory() string
func GetVeleroBackupsDirectory ¶ added in v0.77.0
func GetVeleroBackupsDirectory() string
func GetVeleroDeleteBackupRequestsDirectory ¶ added in v0.77.0
func GetVeleroDeleteBackupRequestsDirectory() string
func GetVeleroDownloadRequestsDirectory ¶ added in v0.77.0
func GetVeleroDownloadRequestsDirectory() string
func GetVeleroLogsDirectory ¶ added in v0.77.0
func GetVeleroLogsDirectory() string
func GetVeleroPodVolumeBackupsDirectory ¶ added in v0.77.0
func GetVeleroPodVolumeBackupsDirectory() string
func GetVeleroPodVolumeRestoresDirectory ¶ added in v0.77.0
func GetVeleroPodVolumeRestoresDirectory() string
func GetVeleroResticRepositoriesDirectory ¶ added in v0.77.0
func GetVeleroResticRepositoriesDirectory() string
func GetVeleroRestoresDirectory ¶ added in v0.77.0
func GetVeleroRestoresDirectory() string
func GetVeleroSchedulesDirectory ¶ added in v0.77.0
func GetVeleroSchedulesDirectory() string
func GetVeleroServerStatusRequestsDirectory ¶ added in v0.77.0
func GetVeleroServerStatusRequestsDirectory() string
func GetVeleroVolumeSnapshotLocationsDirectory ¶ added in v0.77.0
func GetVeleroVolumeSnapshotLocationsDirectory() string
func ParseNodesForProviders ¶ added in v0.9.27
Types ¶
type AnalyzeCephStatus ¶ added in v0.56.0
type AnalyzeCephStatus struct {
// contains filtered or unexported fields
}
func (*AnalyzeCephStatus) Analyze ¶ added in v0.56.0
func (a *AnalyzeCephStatus) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeCephStatus) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeCephStatus) IsExcluded() (bool, error)
func (*AnalyzeCephStatus) Title ¶ added in v0.56.0
func (a *AnalyzeCephStatus) Title() string
type AnalyzeCertificates ¶ added in v0.66.0
type AnalyzeCertificates struct {
// contains filtered or unexported fields
}
func (*AnalyzeCertificates) Analyze ¶ added in v0.66.0
func (a *AnalyzeCertificates) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeCertificates) AnalyzeCertificates ¶ added in v0.66.0
func (a *AnalyzeCertificates) AnalyzeCertificates(analyzer *troubleshootv1beta2.CertificatesAnalyze, getCollectedFileContents func(string) ([]byte, error)) ([]*AnalyzeResult, error)
func (*AnalyzeCertificates) IsExcluded ¶ added in v0.66.0
func (a *AnalyzeCertificates) IsExcluded() (bool, error)
func (*AnalyzeCertificates) Title ¶ added in v0.66.0
func (a *AnalyzeCertificates) Title() string
type AnalyzeClusterPodStatuses ¶ added in v0.56.0
type AnalyzeClusterPodStatuses struct {
// contains filtered or unexported fields
}
func (*AnalyzeClusterPodStatuses) Analyze ¶ added in v0.56.0
func (a *AnalyzeClusterPodStatuses) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeClusterPodStatuses) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeClusterPodStatuses) IsExcluded() (bool, error)
func (*AnalyzeClusterPodStatuses) Title ¶ added in v0.56.0
func (a *AnalyzeClusterPodStatuses) Title() string
type AnalyzeClusterResource ¶ added in v0.56.0
type AnalyzeClusterResource struct {
// contains filtered or unexported fields
}
func (*AnalyzeClusterResource) Analyze ¶ added in v0.56.0
func (a *AnalyzeClusterResource) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeClusterResource) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeClusterResource) IsExcluded() (bool, error)
func (*AnalyzeClusterResource) Title ¶ added in v0.56.0
func (a *AnalyzeClusterResource) Title() string
type AnalyzeClusterVersion ¶ added in v0.56.0
type AnalyzeClusterVersion struct {
// contains filtered or unexported fields
}
func (*AnalyzeClusterVersion) Analyze ¶ added in v0.56.0
func (a *AnalyzeClusterVersion) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeClusterVersion) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeClusterVersion) IsExcluded() (bool, error)
func (*AnalyzeClusterVersion) Title ¶ added in v0.56.0
func (a *AnalyzeClusterVersion) Title() string
type AnalyzeConfigMap ¶ added in v0.56.0
type AnalyzeConfigMap struct {
// contains filtered or unexported fields
}
func (*AnalyzeConfigMap) Analyze ¶ added in v0.56.0
func (a *AnalyzeConfigMap) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeConfigMap) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeConfigMap) IsExcluded() (bool, error)
func (*AnalyzeConfigMap) Title ¶ added in v0.56.0
func (a *AnalyzeConfigMap) Title() string
type AnalyzeContainerRuntime ¶ added in v0.56.0
type AnalyzeContainerRuntime struct {
// contains filtered or unexported fields
}
func (*AnalyzeContainerRuntime) Analyze ¶ added in v0.56.0
func (a *AnalyzeContainerRuntime) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeContainerRuntime) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeContainerRuntime) IsExcluded() (bool, error)
func (*AnalyzeContainerRuntime) Title ¶ added in v0.56.0
func (a *AnalyzeContainerRuntime) Title() string
type AnalyzeCustomResourceDefinition ¶ added in v0.56.0
type AnalyzeCustomResourceDefinition struct {
// contains filtered or unexported fields
}
func (*AnalyzeCustomResourceDefinition) Analyze ¶ added in v0.56.0
func (a *AnalyzeCustomResourceDefinition) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeCustomResourceDefinition) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeCustomResourceDefinition) IsExcluded() (bool, error)
func (*AnalyzeCustomResourceDefinition) Title ¶ added in v0.56.0
func (a *AnalyzeCustomResourceDefinition) Title() string
type AnalyzeDeploymentStatus ¶ added in v0.56.0
type AnalyzeDeploymentStatus struct {
// contains filtered or unexported fields
}
func (*AnalyzeDeploymentStatus) Analyze ¶ added in v0.56.0
func (a *AnalyzeDeploymentStatus) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeDeploymentStatus) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeDeploymentStatus) IsExcluded() (bool, error)
func (*AnalyzeDeploymentStatus) Title ¶ added in v0.56.0
func (a *AnalyzeDeploymentStatus) Title() string
type AnalyzeDistribution ¶ added in v0.56.0
type AnalyzeDistribution struct {
// contains filtered or unexported fields
}
func (*AnalyzeDistribution) Analyze ¶ added in v0.56.0
func (a *AnalyzeDistribution) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeDistribution) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeDistribution) IsExcluded() (bool, error)
func (*AnalyzeDistribution) Title ¶ added in v0.56.0
func (a *AnalyzeDistribution) Title() string
type AnalyzeEvent ¶ added in v0.84.0
type AnalyzeEvent struct {
// contains filtered or unexported fields
}
func (*AnalyzeEvent) Analyze ¶ added in v0.84.0
func (a *AnalyzeEvent) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeEvent) IsExcluded ¶ added in v0.84.0
func (a *AnalyzeEvent) IsExcluded() (bool, error)
func (*AnalyzeEvent) Title ¶ added in v0.84.0
func (a *AnalyzeEvent) Title() string
type AnalyzeGoldpinger ¶ added in v0.79.0
type AnalyzeGoldpinger struct {
// contains filtered or unexported fields
}
func (*AnalyzeGoldpinger) Analyze ¶ added in v0.79.0
func (a *AnalyzeGoldpinger) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeGoldpinger) IsExcluded ¶ added in v0.79.0
func (a *AnalyzeGoldpinger) IsExcluded() (bool, error)
func (*AnalyzeGoldpinger) Title ¶ added in v0.79.0
func (a *AnalyzeGoldpinger) Title() string
type AnalyzeHTTPAnalyze ¶ added in v0.94.0
type AnalyzeHTTPAnalyze struct {
// contains filtered or unexported fields
}
func (*AnalyzeHTTPAnalyze) Analyze ¶ added in v0.94.0
func (a *AnalyzeHTTPAnalyze) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeHTTPAnalyze) IsExcluded ¶ added in v0.94.0
func (a *AnalyzeHTTPAnalyze) IsExcluded() (bool, error)
func (*AnalyzeHTTPAnalyze) Title ¶ added in v0.94.0
func (a *AnalyzeHTTPAnalyze) Title() string
type AnalyzeHostBlockDevices ¶ added in v0.10.8
type AnalyzeHostBlockDevices struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostBlockDevices) Analyze ¶ added in v0.10.8
func (a *AnalyzeHostBlockDevices) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostBlockDevices) IsExcluded ¶ added in v0.10.8
func (a *AnalyzeHostBlockDevices) IsExcluded() (bool, error)
func (*AnalyzeHostBlockDevices) Title ¶ added in v0.10.8
func (a *AnalyzeHostBlockDevices) Title() string
type AnalyzeHostCPU ¶ added in v0.10.8
type AnalyzeHostCPU struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostCPU) Analyze ¶ added in v0.10.8
func (a *AnalyzeHostCPU) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostCPU) IsExcluded ¶ added in v0.10.8
func (a *AnalyzeHostCPU) IsExcluded() (bool, error)
func (*AnalyzeHostCPU) Title ¶ added in v0.10.8
func (a *AnalyzeHostCPU) Title() string
type AnalyzeHostCertificate ¶ added in v0.10.8
type AnalyzeHostCertificate struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostCertificate) Analyze ¶ added in v0.10.8
func (a *AnalyzeHostCertificate) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostCertificate) IsExcluded ¶ added in v0.10.8
func (a *AnalyzeHostCertificate) IsExcluded() (bool, error)
func (*AnalyzeHostCertificate) Title ¶ added in v0.10.8
func (a *AnalyzeHostCertificate) Title() string
type AnalyzeHostCertificatesCollection ¶ added in v0.70.0
type AnalyzeHostCertificatesCollection struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostCertificatesCollection) Analyze ¶ added in v0.70.0
func (a *AnalyzeHostCertificatesCollection) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostCertificatesCollection) IsExcluded ¶ added in v0.70.0
func (a *AnalyzeHostCertificatesCollection) IsExcluded() (bool, error)
func (*AnalyzeHostCertificatesCollection) Title ¶ added in v0.70.0
func (a *AnalyzeHostCertificatesCollection) Title() string
type AnalyzeHostDiskUsage ¶ added in v0.10.8
type AnalyzeHostDiskUsage struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostDiskUsage) Analyze ¶ added in v0.10.8
func (a *AnalyzeHostDiskUsage) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostDiskUsage) IsExcluded ¶ added in v0.10.8
func (a *AnalyzeHostDiskUsage) IsExcluded() (bool, error)
func (*AnalyzeHostDiskUsage) Title ¶ added in v0.10.8
func (a *AnalyzeHostDiskUsage) Title() string
type AnalyzeHostFilesystemPerformance ¶ added in v0.10.8
type AnalyzeHostFilesystemPerformance struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostFilesystemPerformance) Analyze ¶ added in v0.10.8
func (a *AnalyzeHostFilesystemPerformance) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostFilesystemPerformance) IsExcluded ¶ added in v0.10.8
func (a *AnalyzeHostFilesystemPerformance) IsExcluded() (bool, error)
func (*AnalyzeHostFilesystemPerformance) Title ¶ added in v0.10.8
func (a *AnalyzeHostFilesystemPerformance) Title() string
type AnalyzeHostHTTP ¶ added in v0.10.8
type AnalyzeHostHTTP struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostHTTP) Analyze ¶ added in v0.10.8
func (a *AnalyzeHostHTTP) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostHTTP) IsExcluded ¶ added in v0.10.8
func (a *AnalyzeHostHTTP) IsExcluded() (bool, error)
func (*AnalyzeHostHTTP) Title ¶ added in v0.10.8
func (a *AnalyzeHostHTTP) Title() string
type AnalyzeHostHTTPLoadBalancer ¶ added in v0.10.8
type AnalyzeHostHTTPLoadBalancer struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostHTTPLoadBalancer) Analyze ¶ added in v0.10.8
func (a *AnalyzeHostHTTPLoadBalancer) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostHTTPLoadBalancer) IsExcluded ¶ added in v0.10.8
func (a *AnalyzeHostHTTPLoadBalancer) IsExcluded() (bool, error)
func (*AnalyzeHostHTTPLoadBalancer) Title ¶ added in v0.10.8
func (a *AnalyzeHostHTTPLoadBalancer) Title() string
type AnalyzeHostIPV4Interfaces ¶ added in v0.10.8
type AnalyzeHostIPV4Interfaces struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostIPV4Interfaces) Analyze ¶ added in v0.10.8
func (a *AnalyzeHostIPV4Interfaces) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostIPV4Interfaces) IsExcluded ¶ added in v0.10.8
func (a *AnalyzeHostIPV4Interfaces) IsExcluded() (bool, error)
func (*AnalyzeHostIPV4Interfaces) Title ¶ added in v0.10.8
func (a *AnalyzeHostIPV4Interfaces) Title() string
type AnalyzeHostKernelConfigs ¶ added in v0.93.0
type AnalyzeHostKernelConfigs struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostKernelConfigs) Analyze ¶ added in v0.93.0
func (a *AnalyzeHostKernelConfigs) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostKernelConfigs) IsExcluded ¶ added in v0.93.0
func (a *AnalyzeHostKernelConfigs) IsExcluded() (bool, error)
func (*AnalyzeHostKernelConfigs) Title ¶ added in v0.93.0
func (a *AnalyzeHostKernelConfigs) Title() string
type AnalyzeHostKernelModules ¶ added in v0.15.0
type AnalyzeHostKernelModules struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostKernelModules) Analyze ¶ added in v0.15.0
func (a *AnalyzeHostKernelModules) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
Analyze the kernel module collection results.
When an outcome is specified, the "when" condition must be empty (for default conditions), or made up of 3 parts:
- comma-separated list of kernel module names, e,g, "target_core_mod,target_core_file,tcm_loop"
- comparison operator ("==", "=", "!=", "<>")
- comma-separated state list ("unknown", "loaded", "loadable", "loading", "unloading")
Multiple outcomes can be provided. Outcomes should not conflict.
Default outcomes (with empty when clauses) can be provided for fail, warn and pass. When multiple defaults are provided, evaluation is processed in the order that they were specified and the first to match is returned.
- a default fail will only trigger if there are no matching non-default pass outcomes.
- a default warn will only trigger if there are no matching non-default pass or fail outcomes.
- a default pass will only trigger if there are no matching non-default fail outcomes.
func (*AnalyzeHostKernelModules) IsExcluded ¶ added in v0.15.0
func (a *AnalyzeHostKernelModules) IsExcluded() (bool, error)
func (*AnalyzeHostKernelModules) Title ¶ added in v0.15.0
func (a *AnalyzeHostKernelModules) Title() string
type AnalyzeHostMemory ¶ added in v0.10.8
type AnalyzeHostMemory struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostMemory) Analyze ¶ added in v0.10.8
func (a *AnalyzeHostMemory) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostMemory) IsExcluded ¶ added in v0.10.8
func (a *AnalyzeHostMemory) IsExcluded() (bool, error)
func (*AnalyzeHostMemory) Title ¶ added in v0.10.8
func (a *AnalyzeHostMemory) Title() string
type AnalyzeHostOS ¶ added in v0.16.0
type AnalyzeHostOS struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostOS) Analyze ¶ added in v0.16.0
func (a *AnalyzeHostOS) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostOS) IsExcluded ¶ added in v0.16.0
func (a *AnalyzeHostOS) IsExcluded() (bool, error)
func (*AnalyzeHostOS) Title ¶ added in v0.16.0
func (a *AnalyzeHostOS) Title() string
type AnalyzeHostServices ¶ added in v0.10.15
type AnalyzeHostServices struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostServices) Analyze ¶ added in v0.10.15
func (a *AnalyzeHostServices) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostServices) IsExcluded ¶ added in v0.10.15
func (a *AnalyzeHostServices) IsExcluded() (bool, error)
func (*AnalyzeHostServices) Title ¶ added in v0.10.15
func (a *AnalyzeHostServices) Title() string
type AnalyzeHostSubnetAvailable ¶ added in v0.59.0
type AnalyzeHostSubnetAvailable struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostSubnetAvailable) Analyze ¶ added in v0.59.0
func (a *AnalyzeHostSubnetAvailable) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostSubnetAvailable) IsExcluded ¶ added in v0.59.0
func (a *AnalyzeHostSubnetAvailable) IsExcluded() (bool, error)
func (*AnalyzeHostSubnetAvailable) Title ¶ added in v0.59.0
func (a *AnalyzeHostSubnetAvailable) Title() string
type AnalyzeHostSystemPackages ¶ added in v0.24.0
type AnalyzeHostSystemPackages struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostSystemPackages) Analyze ¶ added in v0.24.0
func (a *AnalyzeHostSystemPackages) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostSystemPackages) IsExcluded ¶ added in v0.24.0
func (a *AnalyzeHostSystemPackages) IsExcluded() (bool, error)
func (*AnalyzeHostSystemPackages) Title ¶ added in v0.24.0
func (a *AnalyzeHostSystemPackages) Title() string
type AnalyzeHostTCPConnect ¶ added in v0.10.8
type AnalyzeHostTCPConnect struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostTCPConnect) Analyze ¶ added in v0.10.8
func (a *AnalyzeHostTCPConnect) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostTCPConnect) IsExcluded ¶ added in v0.10.8
func (a *AnalyzeHostTCPConnect) IsExcluded() (bool, error)
func (*AnalyzeHostTCPConnect) Title ¶ added in v0.10.8
func (a *AnalyzeHostTCPConnect) Title() string
type AnalyzeHostTCPLoadBalancer ¶ added in v0.10.8
type AnalyzeHostTCPLoadBalancer struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostTCPLoadBalancer) Analyze ¶ added in v0.10.8
func (a *AnalyzeHostTCPLoadBalancer) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostTCPLoadBalancer) IsExcluded ¶ added in v0.10.8
func (a *AnalyzeHostTCPLoadBalancer) IsExcluded() (bool, error)
func (*AnalyzeHostTCPLoadBalancer) Title ¶ added in v0.10.8
func (a *AnalyzeHostTCPLoadBalancer) Title() string
type AnalyzeHostTCPPortStatus ¶ added in v0.10.8
type AnalyzeHostTCPPortStatus struct {
// contains filtered or unexported fields
}
AnalyzeHostTCPPortStatus is an analyzer that will return only one matching result, or a warning if nothing matches. The first match that is encountered is the one that is returned.
func (*AnalyzeHostTCPPortStatus) Analyze ¶ added in v0.10.8
func (a *AnalyzeHostTCPPortStatus) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostTCPPortStatus) IsExcluded ¶ added in v0.10.8
func (a *AnalyzeHostTCPPortStatus) IsExcluded() (bool, error)
func (*AnalyzeHostTCPPortStatus) Title ¶ added in v0.10.8
func (a *AnalyzeHostTCPPortStatus) Title() string
type AnalyzeHostTextAnalyze ¶ added in v0.70.1
type AnalyzeHostTextAnalyze struct {
// contains filtered or unexported fields
}
AnalyzeHostTextAnalyze implements HostAnalyzer interface
func (*AnalyzeHostTextAnalyze) Analyze ¶ added in v0.70.1
func (a *AnalyzeHostTextAnalyze) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostTextAnalyze) IsExcluded ¶ added in v0.70.1
func (a *AnalyzeHostTextAnalyze) IsExcluded() (bool, error)
func (*AnalyzeHostTextAnalyze) Title ¶ added in v0.70.1
func (a *AnalyzeHostTextAnalyze) Title() string
type AnalyzeHostTime ¶ added in v0.10.8
type AnalyzeHostTime struct {
// contains filtered or unexported fields
}
func (*AnalyzeHostTime) Analyze ¶ added in v0.10.8
func (a *AnalyzeHostTime) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostTime) IsExcluded ¶ added in v0.10.8
func (a *AnalyzeHostTime) IsExcluded() (bool, error)
func (*AnalyzeHostTime) Title ¶ added in v0.10.8
func (a *AnalyzeHostTime) Title() string
type AnalyzeHostUDPPortStatus ¶ added in v0.55.0
type AnalyzeHostUDPPortStatus struct {
// contains filtered or unexported fields
}
AnalyzeHostUDPPortStatus is an analyzer that will return only one matching result, or a warning if nothing matches. The first match that is encountered is the one that is returned.
func (*AnalyzeHostUDPPortStatus) Analyze ¶ added in v0.55.0
func (a *AnalyzeHostUDPPortStatus) Analyze( getCollectedFileContents func(string) ([]byte, error), findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func (*AnalyzeHostUDPPortStatus) IsExcluded ¶ added in v0.55.0
func (a *AnalyzeHostUDPPortStatus) IsExcluded() (bool, error)
func (*AnalyzeHostUDPPortStatus) Title ¶ added in v0.55.0
func (a *AnalyzeHostUDPPortStatus) Title() string
type AnalyzeImagePullSecret ¶ added in v0.56.0
type AnalyzeImagePullSecret struct {
// contains filtered or unexported fields
}
func (*AnalyzeImagePullSecret) Analyze ¶ added in v0.56.0
func (a *AnalyzeImagePullSecret) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeImagePullSecret) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeImagePullSecret) IsExcluded() (bool, error)
func (*AnalyzeImagePullSecret) Title ¶ added in v0.56.0
func (a *AnalyzeImagePullSecret) Title() string
type AnalyzeIngress ¶ added in v0.56.0
type AnalyzeIngress struct {
// contains filtered or unexported fields
}
func (*AnalyzeIngress) Analyze ¶ added in v0.56.0
func (a *AnalyzeIngress) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeIngress) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeIngress) IsExcluded() (bool, error)
func (*AnalyzeIngress) Title ¶ added in v0.56.0
func (a *AnalyzeIngress) Title() string
type AnalyzeJobStatus ¶ added in v0.56.0
type AnalyzeJobStatus struct {
// contains filtered or unexported fields
}
func (*AnalyzeJobStatus) Analyze ¶ added in v0.56.0
func (a *AnalyzeJobStatus) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeJobStatus) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeJobStatus) IsExcluded() (bool, error)
func (*AnalyzeJobStatus) Title ¶ added in v0.56.0
func (a *AnalyzeJobStatus) Title() string
type AnalyzeJsonCompare ¶ added in v0.56.0
type AnalyzeJsonCompare struct {
// contains filtered or unexported fields
}
func (*AnalyzeJsonCompare) Analyze ¶ added in v0.56.0
func (a *AnalyzeJsonCompare) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeJsonCompare) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeJsonCompare) IsExcluded() (bool, error)
func (*AnalyzeJsonCompare) Title ¶ added in v0.56.0
func (a *AnalyzeJsonCompare) Title() string
type AnalyzeLonghorn ¶ added in v0.56.0
type AnalyzeLonghorn struct {
// contains filtered or unexported fields
}
func (*AnalyzeLonghorn) Analyze ¶ added in v0.56.0
func (a *AnalyzeLonghorn) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeLonghorn) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeLonghorn) IsExcluded() (bool, error)
func (*AnalyzeLonghorn) Title ¶ added in v0.56.0
func (a *AnalyzeLonghorn) Title() string
type AnalyzeMssql ¶ added in v0.71.1
type AnalyzeMssql struct {
// contains filtered or unexported fields
}
func (*AnalyzeMssql) Analyze ¶ added in v0.71.1
func (a *AnalyzeMssql) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeMssql) IsExcluded ¶ added in v0.71.1
func (a *AnalyzeMssql) IsExcluded() (bool, error)
func (*AnalyzeMssql) Title ¶ added in v0.71.1
func (a *AnalyzeMssql) Title() string
type AnalyzeMysql ¶ added in v0.56.0
type AnalyzeMysql struct {
// contains filtered or unexported fields
}
func (*AnalyzeMysql) Analyze ¶ added in v0.56.0
func (a *AnalyzeMysql) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeMysql) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeMysql) IsExcluded() (bool, error)
func (*AnalyzeMysql) Title ¶ added in v0.56.0
func (a *AnalyzeMysql) Title() string
type AnalyzeNodeMetrics ¶ added in v0.87.0
type AnalyzeNodeMetrics struct {
// contains filtered or unexported fields
}
func (*AnalyzeNodeMetrics) Analyze ¶ added in v0.87.0
func (a *AnalyzeNodeMetrics) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeNodeMetrics) IsExcluded ¶ added in v0.87.0
func (a *AnalyzeNodeMetrics) IsExcluded() (bool, error)
func (*AnalyzeNodeMetrics) Title ¶ added in v0.87.0
func (a *AnalyzeNodeMetrics) Title() string
type AnalyzeNodeResources ¶ added in v0.56.0
type AnalyzeNodeResources struct {
// contains filtered or unexported fields
}
func (*AnalyzeNodeResources) Analyze ¶ added in v0.56.0
func (a *AnalyzeNodeResources) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeNodeResources) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeNodeResources) IsExcluded() (bool, error)
func (*AnalyzeNodeResources) Title ¶ added in v0.56.0
func (a *AnalyzeNodeResources) Title() string
type AnalyzePostgres ¶ added in v0.56.0
type AnalyzePostgres struct {
// contains filtered or unexported fields
}
func (*AnalyzePostgres) Analyze ¶ added in v0.56.0
func (a *AnalyzePostgres) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzePostgres) IsExcluded ¶ added in v0.56.0
func (a *AnalyzePostgres) IsExcluded() (bool, error)
func (*AnalyzePostgres) Title ¶ added in v0.56.0
func (a *AnalyzePostgres) Title() string
type AnalyzeRedis ¶ added in v0.56.0
type AnalyzeRedis struct {
// contains filtered or unexported fields
}
func (*AnalyzeRedis) Analyze ¶ added in v0.56.0
func (a *AnalyzeRedis) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeRedis) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeRedis) IsExcluded() (bool, error)
func (*AnalyzeRedis) Title ¶ added in v0.56.0
func (a *AnalyzeRedis) Title() string
type AnalyzeRegistryImages ¶ added in v0.56.0
type AnalyzeRegistryImages struct {
// contains filtered or unexported fields
}
func (*AnalyzeRegistryImages) Analyze ¶ added in v0.56.0
func (a *AnalyzeRegistryImages) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeRegistryImages) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeRegistryImages) IsExcluded() (bool, error)
func (*AnalyzeRegistryImages) Title ¶ added in v0.56.0
func (a *AnalyzeRegistryImages) Title() string
type AnalyzeReplicaSetStatus ¶ added in v0.56.0
type AnalyzeReplicaSetStatus struct {
// contains filtered or unexported fields
}
func (*AnalyzeReplicaSetStatus) Analyze ¶ added in v0.56.0
func (a *AnalyzeReplicaSetStatus) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeReplicaSetStatus) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeReplicaSetStatus) IsExcluded() (bool, error)
func (*AnalyzeReplicaSetStatus) Title ¶ added in v0.56.0
func (a *AnalyzeReplicaSetStatus) Title() string
type AnalyzeResult ¶
type AnalyzeResult struct { IsPass bool IsFail bool IsWarn bool Strict bool Title string Message string URI string IconKey string IconURI string InvolvedObject *corev1.ObjectReference }
func Analyze ¶
func Analyze( ctx context.Context, analyzer *troubleshootv1beta2.Analyze, getFile getCollectedFileContents, findFiles getChildCollectedFileContents, ) ([]*AnalyzeResult, error)
func AnalyzeLocal ¶ added in v0.9.37
func AnalyzeLocal( ctx context.Context, localBundlePath string, analyzers []*troubleshootv1beta2.Analyze, hostAnalyzers []*troubleshootv1beta2.HostAnalyze, ) ([]*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( ctx context.Context, hostAnalyzer *troubleshootv1beta2.HostAnalyze, getFile getCollectedFileContents, findFiles getChildCollectedFileContents, ) []*AnalyzeResult
func NewAnalyzeResultError ¶ added in v0.10.8
func NewAnalyzeResultError(analyzer HostAnalyzer, err error) []*AnalyzeResult
type AnalyzeSecret ¶ added in v0.56.0
type AnalyzeSecret struct {
// contains filtered or unexported fields
}
func (*AnalyzeSecret) Analyze ¶ added in v0.56.0
func (a *AnalyzeSecret) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeSecret) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeSecret) IsExcluded() (bool, error)
func (*AnalyzeSecret) Title ¶ added in v0.56.0
func (a *AnalyzeSecret) Title() string
type AnalyzeStatefulsetStatus ¶ added in v0.56.0
type AnalyzeStatefulsetStatus struct {
// contains filtered or unexported fields
}
func (*AnalyzeStatefulsetStatus) Analyze ¶ added in v0.56.0
func (a *AnalyzeStatefulsetStatus) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeStatefulsetStatus) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeStatefulsetStatus) IsExcluded() (bool, error)
func (*AnalyzeStatefulsetStatus) Title ¶ added in v0.56.0
func (a *AnalyzeStatefulsetStatus) Title() string
type AnalyzeStorageClass ¶ added in v0.56.0
type AnalyzeStorageClass struct {
// contains filtered or unexported fields
}
func (*AnalyzeStorageClass) Analyze ¶ added in v0.56.0
func (a *AnalyzeStorageClass) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeStorageClass) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeStorageClass) IsExcluded() (bool, error)
func (*AnalyzeStorageClass) Title ¶ added in v0.56.0
func (a *AnalyzeStorageClass) Title() string
type AnalyzeSysctl ¶ added in v0.56.0
type AnalyzeSysctl struct {
// contains filtered or unexported fields
}
func (*AnalyzeSysctl) Analyze ¶ added in v0.56.0
func (a *AnalyzeSysctl) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeSysctl) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeSysctl) IsExcluded() (bool, error)
func (*AnalyzeSysctl) Title ¶ added in v0.56.0
func (a *AnalyzeSysctl) Title() string
type AnalyzeTextAnalyze ¶ added in v0.56.0
type AnalyzeTextAnalyze struct {
// contains filtered or unexported fields
}
func (*AnalyzeTextAnalyze) Analyze ¶ added in v0.56.0
func (a *AnalyzeTextAnalyze) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeTextAnalyze) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeTextAnalyze) IsExcluded() (bool, error)
func (*AnalyzeTextAnalyze) Title ¶ added in v0.56.0
func (a *AnalyzeTextAnalyze) Title() string
type AnalyzeVelero ¶ added in v0.77.0
type AnalyzeVelero struct {
// contains filtered or unexported fields
}
func (*AnalyzeVelero) Analyze ¶ added in v0.77.0
func (a *AnalyzeVelero) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeVelero) IsExcluded ¶ added in v0.77.0
func (a *AnalyzeVelero) IsExcluded() (bool, error)
func (*AnalyzeVelero) Title ¶ added in v0.77.0
func (a *AnalyzeVelero) Title() string
type AnalyzeWeaveReport ¶ added in v0.56.0
type AnalyzeWeaveReport struct {
// contains filtered or unexported fields
}
func (*AnalyzeWeaveReport) Analyze ¶ added in v0.56.0
func (a *AnalyzeWeaveReport) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeWeaveReport) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeWeaveReport) IsExcluded() (bool, error)
func (*AnalyzeWeaveReport) Title ¶ added in v0.56.0
func (a *AnalyzeWeaveReport) Title() string
type AnalyzeYamlCompare ¶ added in v0.56.0
type AnalyzeYamlCompare struct {
// contains filtered or unexported fields
}
func (*AnalyzeYamlCompare) Analyze ¶ added in v0.56.0
func (a *AnalyzeYamlCompare) Analyze(getFile getCollectedFileContents, findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error)
func (*AnalyzeYamlCompare) IsExcluded ¶ added in v0.56.0
func (a *AnalyzeYamlCompare) IsExcluded() (bool, error)
func (*AnalyzeYamlCompare) Title ¶ added in v0.56.0
func (a *AnalyzeYamlCompare) Title() string
type Analyzer ¶ added in v0.56.0
type Analyzer interface { Title() string IsExcluded() (bool, error) Analyze(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
type CephStatus ¶ added in v0.15.0
type CephStatus struct { Health HealthStatus `json:"health"` OsdMap struct { OsdMap OsdMap `json:"osdmap"` } `json:"osdmap"` PgMap PgMap `json:"pgmap"` }
type CheckMessage ¶ added in v0.34.0
type ComparisonOperator ¶ added in v0.87.0
type ComparisonOperator int
const ( Unknown ComparisonOperator = iota Equal NotEqual GreaterThan GreaterThanOrEqual LessThan LessThanOrEqual )
func ParseComparisonOperator ¶ added in v0.87.0
func ParseComparisonOperator(s string) (ComparisonOperator, error)
type HealthStatus ¶ added in v0.15.0
type HealthStatus struct { Status string `json:"status"` Checks map[string]CheckMessage `json:"checks"` }
type HostAnalyzer ¶ added in v0.10.8
type HostAnalyzer interface { Title() string IsExcluded() (bool, error) Analyze(getFile func(string) ([]byte, error), findFiles getChildCollectedFileContents) ([]*AnalyzeResult, error) }
func GetHostAnalyzer ¶ added in v0.10.8
func GetHostAnalyzer(analyzer *troubleshootv1beta2.HostAnalyze) (HostAnalyzer, bool)
type WeaveAttributes ¶ added in v0.13.9
type WeaveConnection ¶ added in v0.13.9
type WeaveConnection struct { State string Info string Attrs WeaveAttributes }
type WeaveReport ¶ added in v0.13.9
type WeaveReport struct { Router WeaveRouter IPAM WeaveIPAM }
relevant fields from https://github.com/weaveworks/weave/blob/e3712152d2a0fe3bc998964c948e45bdf8ff6144/prog/weaver/http.go#L295
type WeaveRouter ¶ added in v0.13.9
type WeaveRouter struct { NickName string // this is the hostname Connections []WeaveConnection }
Source Files ¶
- analyzer.go
- ceph.go
- certificates.go
- cluster_pod_statuses.go
- cluster_version.go
- common_status.go
- comparison.go
- configmap.go
- container_runtime.go
- crd.go
- database_shared.go
- deployment_status.go
- distribution.go
- download.go
- event.go
- goldpinger.go
- host_analyzer.go
- host_block_devices.go
- host_certificate.go
- host_certificates_collection.go
- host_cpu.go
- host_disk_usage.go
- host_filesystem_performance.go
- host_http.go
- host_httploadbalancer.go
- host_ipv4interfaces.go
- host_kernel_configs.go
- host_kernel_modules.go
- host_memory.go
- host_os_info.go
- host_services.go
- host_subnetavailable.go
- host_system_packages.go
- host_tcp_connect.go
- host_tcploadbalancer.go
- host_tcpportstatus.go
- host_text_analyze.go
- host_time.go
- host_udpportstatus.go
- http_analyze.go
- image_pull_secret.go
- ingress.go
- job_status.go
- json_compare.go
- k8s_node_metrics.go
- kube_resource.go
- longhorn.go
- mssql.go
- mysql.go
- node_resources.go
- postgres.go
- redis.go
- registry.go
- replicaset_status.go
- secret.go
- statefulset_status.go
- storage_class.go
- sysctl.go
- text_analyze.go
- velero.go
- weave.go
- yaml_compare.go