Documentation ¶
Index ¶
- Constants
- Variables
- func Ceph(c *Collector, cephCollector *troubleshootv1beta2.Ceph) (map[string][]byte, error)
- func ClusterInfo(c *Collector) (map[string][]byte, error)
- func ClusterResources(c *Collector) (map[string][]byte, error)
- func Collectd(c *Collector, collectdCollector *troubleshootv1beta2.Collectd) (map[string][]byte, error)
- func Copy(c *Collector, copyCollector *troubleshootv1beta2.Copy) (map[string][]byte, error)
- func CreateCollector(client client.Client, scheme *runtime.Scheme, ownerRef metav1.Object, ...) (*corev1.ConfigMap, *corev1.Pod, error)
- func Data(c *Collector, dataCollector *troubleshootv1beta2.Data) (map[string][]byte, error)
- func DeterministicIDForCollector(collector *troubleshootv1beta2.Collect) string
- func Exec(c *Collector, execCollector *troubleshootv1beta2.Exec) (map[string][]byte, error)
- func GetCephCollectorFilepath(name, namespace string) string
- func HTTP(c *Collector, httpCollector *troubleshootv1beta2.HTTP) (map[string][]byte, error)
- func IsRBACError(err error) bool
- func Logs(c *Collector, logsCollector *troubleshootv1beta2.Logs) (map[string][]byte, error)
- func Mysql(c *Collector, databaseCollector *troubleshootv1beta2.Database) (map[string][]byte, error)
- func Postgres(c *Collector, databaseCollector *troubleshootv1beta2.Database) (map[string][]byte, error)
- func Redis(c *Collector, databaseCollector *troubleshootv1beta2.Database) (map[string][]byte, error)
- func Run(c *Collector, runCollector *troubleshootv1beta2.Run) (map[string][]byte, error)
- func Secret(c *Collector, secretCollector *troubleshootv1beta2.Secret) (map[string][]byte, error)
- type CephCommand
- type ClusterVersion
- type Collector
- type Collectors
- type DatabaseConnection
- type FoundSecret
- type RBACError
Constants ¶
View Source
const (
DefaultCephNamespace = "rook-ceph"
)
Variables ¶
View Source
var CephCommands = []CephCommand{ { ID: "status", Command: []string{"ceph", "status"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, { ID: "fs", Command: []string{"ceph", "fs", "status"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, { ID: "fs-ls", Command: []string{"ceph", "fs", "ls"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, { ID: "osd-status", Command: []string{"ceph", "osd", "status"}, Args: []string{"-f", "json-pretty"}, Format: "txt", }, { ID: "osd-tree", Command: []string{"ceph", "osd", "tree"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, { ID: "osd-pool", Command: []string{"ceph", "osd", "pool", "ls", "detail"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, { ID: "health", Command: []string{"ceph", "health", "detail"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, { ID: "auth", Command: []string{"ceph", "auth", "ls"}, Args: []string{"-f", "json-pretty"}, Format: "json", }, }
Functions ¶
func CreateCollector ¶
func DeterministicIDForCollector ¶
func DeterministicIDForCollector(collector *troubleshootv1beta2.Collect) string
func GetCephCollectorFilepath ¶ added in v0.9.50
func IsRBACError ¶ added in v0.9.15
Types ¶
type CephCommand ¶ added in v0.9.50
type ClusterVersion ¶
type Collector ¶
type Collector struct { Collect *troubleshootv1beta2.Collect Redact bool RBACErrors []error ClientConfig *rest.Config Namespace string PathPrefix string }
func (*Collector) GetDisplayName ¶ added in v0.9.5
func (*Collector) IsExcluded ¶ added in v0.9.52
checks if a given collector has a spec with 'exclude' that evaluates to true.
func (*Collector) RunCollectorSync ¶
type Collectors ¶ added in v0.9.15
type Collectors []*Collector
type DatabaseConnection ¶ added in v0.9.27
type FoundSecret ¶
Click to show internal directories.
Click to hide internal directories.