Documentation ¶
Overview ¶
Package diagnostics implements the functions we use to save logs and status of our system.
Index ¶
- func Cmd() *cobra.Command
- func CmdAnalyze() *cobra.Command
- func CmdAnalyzeBackingStore() *cobra.Command
- func CmdAnalyzeNamespaceStore() *cobra.Command
- func CmdAnalyzeResources() *cobra.Command
- func CmdCollect() *cobra.Command
- func CmdDbDump() *cobra.Command
- func CmdDbDumpDeprecated() *cobra.Command
- func CmdDiagnoseDeprecated() *cobra.Command
- func CollectDBDump(kubeconfig string, destDir string)
- func RunAnalyzeBackingStore(cmd *cobra.Command, args []string)
- func RunAnalyzeNamespaceStore(cmd *cobra.Command, args []string)
- func RunAnalyzeResources(cmd *cobra.Command, args []string)
- func RunCollect(cmd *cobra.Command, args []string)
- func RunDump(cmd *cobra.Command, args []string)
- type Collector
- func (c *Collector) CollectCR(list client.ObjectList)
- func (c *Collector) CollectCRs()
- func (c *Collector) CollectDescribe(Kind string, Name string)
- func (c *Collector) CollectPVCs(listOptions client.ListOptions)
- func (c *Collector) CollectPVs(listOptions client.ListOptions)
- func (c *Collector) CollectPodsLogs(listOptions client.ListOptions)
- func (c *Collector) CollectSCC()
- func (c *Collector) ExportDiagnostics(destDir string)
- type CollectorDbDump
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdAnalyzeBackingStore ¶
CmdAnalyzeBackingStore returns a CLI command
func CmdAnalyzeNamespaceStore ¶
CmdAnalyzeNamespaceStore returns a CLI command
func CmdAnalyzeResources ¶
CmdAnalyzeResources returns a CLI command
func CmdDbDumpDeprecated ¶
CmdDbDumpDeprecated returns a CLI command
func CmdDiagnoseDeprecated ¶
CmdDiagnoseDeprecated returns a CLI command
func CollectDBDump ¶
CollectDBDump exposes the functionality to the diagnostics collect mechanism
func RunAnalyzeBackingStore ¶
RunAnalyzeBackingStore runs a CLI command
func RunAnalyzeNamespaceStore ¶
RunAnalyzeNamespaceStore runs a CLI command
func RunAnalyzeResources ¶
RunAnalyzeResources runs a CLI command
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector configuration for diagnostics
func (*Collector) CollectCRs ¶
func (c *Collector) CollectCRs()
CollectCRs collects the content of multiple CR types
func (*Collector) CollectDescribe ¶
CollectDescribe collects output of the "describe pod" of a single pod
func (*Collector) CollectPVCs ¶
func (c *Collector) CollectPVCs(listOptions client.ListOptions)
CollectPVCs collects describe of PVCs
func (*Collector) CollectPVs ¶
func (c *Collector) CollectPVs(listOptions client.ListOptions)
CollectPVs collects describe of PVs
func (*Collector) CollectPodsLogs ¶
func (c *Collector) CollectPodsLogs(listOptions client.ListOptions)
CollectPodsLogs collects logs of all existing noobaa pods
func (*Collector) ExportDiagnostics ¶
ExportDiagnostics info
type CollectorDbDump ¶
type CollectorDbDump struct {
// contains filtered or unexported fields
}
CollectorDbDump configuration for diagnostics