diagnostics

package
v5.15.3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package diagnostics implements the functions we use to save logs and status of our system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns a CLI command

func CmdAnalyze

func CmdAnalyze() *cobra.Command

CmdAnalyze returns a CLI command

func CmdAnalyzeBackingStore

func CmdAnalyzeBackingStore() *cobra.Command

CmdAnalyzeBackingStore returns a CLI command

func CmdAnalyzeNamespaceStore

func CmdAnalyzeNamespaceStore() *cobra.Command

CmdAnalyzeNamespaceStore returns a CLI command

func CmdAnalyzeResources

func CmdAnalyzeResources() *cobra.Command

CmdAnalyzeResources returns a CLI command

func CmdCollect

func CmdCollect() *cobra.Command

CmdCollect returns a CLI command

func CmdDbDump

func CmdDbDump() *cobra.Command

CmdDbDump returns a CLI command

func CmdDbDumpDeprecated

func CmdDbDumpDeprecated() *cobra.Command

CmdDbDumpDeprecated returns a CLI command

func CmdDiagnoseDeprecated

func CmdDiagnoseDeprecated() *cobra.Command

CmdDiagnoseDeprecated returns a CLI command

func CollectDBDump

func CollectDBDump(kubeconfig string, destDir string)

CollectDBDump exposes the functionality to the diagnostics collect mechanism

func RunAnalyzeBackingStore

func RunAnalyzeBackingStore(cmd *cobra.Command, args []string)

RunAnalyzeBackingStore runs a CLI command

func RunAnalyzeNamespaceStore

func RunAnalyzeNamespaceStore(cmd *cobra.Command, args []string)

RunAnalyzeNamespaceStore runs a CLI command

func RunAnalyzeResources

func RunAnalyzeResources(cmd *cobra.Command, args []string)

RunAnalyzeResources runs a CLI command

func RunCollect

func RunCollect(cmd *cobra.Command, args []string)

RunCollect runs a CLI command

func RunDump

func RunDump(cmd *cobra.Command, args []string)

RunDump generates a tar file of a db dump

Types

type Collector

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

Collector configuration for diagnostics

func (*Collector) CollectCR

func (c *Collector) CollectCR(list client.ObjectList)

CollectCR info

func (*Collector) CollectCRs

func (c *Collector) CollectCRs()

CollectCRs collects the content of multiple CR types

func (*Collector) CollectDescribe

func (c *Collector) CollectDescribe(Kind string, Name string)

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) CollectSCC

func (c *Collector) CollectSCC()

CollectSCC collects the SCC

func (*Collector) ExportDiagnostics

func (c *Collector) ExportDiagnostics(destDir string)

ExportDiagnostics info

type CollectorDbDump

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

CollectorDbDump configuration for diagnostics

Jump to

Keyboard shortcuts

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