Documentation ¶
Index ¶
- func ClusterInfo() ([]byte, error)
- func ClusterResources(redact bool) ([]byte, error)
- func Copy(copyCollector *troubleshootv1beta1.Copy, redact bool) ([]byte, error)
- func CreateCollector(client client.Client, scheme *runtime.Scheme, ownerRef metav1.Object, ...) (*corev1.ConfigMap, *corev1.Pod, error)
- func DeterministicIDForCollector(collector *troubleshootv1beta1.Collect) string
- func Exec(execCollector *troubleshootv1beta1.Exec, redact bool) ([]byte, error)
- func HTTP(httpCollector *troubleshootv1beta1.HTTP, redact bool) ([]byte, error)
- func Logs(logsCollector *troubleshootv1beta1.Logs, redact bool) ([]byte, error)
- func ParseSpec(specContents string) (*troubleshootv1beta1.Collect, error)
- func Run(runCollector *troubleshootv1beta1.Run, redact bool) ([]byte, error)
- func Secret(secretCollector *troubleshootv1beta1.Secret, redact bool) ([]byte, error)
- type ClusterInfoOutput
- type ClusterResourcesOutput
- type ClusterVersion
- type Collector
- type CopyOutput
- type ExecOutput
- type FoundSecret
- type HTTPOutput
- type LogsOutput
- type RunOutput
- type SecretOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterInfo ¶
func ClusterResources ¶
func CreateCollector ¶
func DeterministicIDForCollector ¶
func DeterministicIDForCollector(collector *troubleshootv1beta1.Collect) string
Types ¶
type ClusterInfoOutput ¶
type ClusterResourcesOutput ¶
type ClusterResourcesOutput struct { Namespaces []byte `json:"cluster-resources/namespaces.json,omitempty"` NamespacesErrors []byte `json:"cluster-resources/namespaces-errors.json,omitempty"` Pods map[string][]byte `json:"cluster-resources/pods,omitempty"` PodsErrors []byte `json:"cluster-resources/pods-errors.json,omitempty"` Services map[string][]byte `json:"cluster-resources/services,omitempty"` ServicesErrors []byte `json:"cluster-resources/services-errors.json,omitempty"` Deployments map[string][]byte `json:"cluster-resources/deployments,omitempty"` DeploymentsErrors []byte `json:"cluster-resources/deployments-errors.json,omitempty"` Ingress map[string][]byte `json:"cluster-resources/ingress,omitempty"` IngressErrors []byte `json:"cluster-resources/ingress-errors.json,omitempty"` StorageClasses []byte `json:"cluster-resources/storage-classes.json,omitempty"` StorageErrors []byte `json:"cluster-resources/storage-errors.json,omitempty"` CustomResourceDefinitions []byte `json:"cluster-resources/custom-resource-definitions.json,omitempty"` CustomResourceDefinitionsErrors []byte `json:"cluster-resources/custom-resource-definitions-errors.json,omitempty"` ImagePullSecrets map[string][]byte `json:"cluster-resources/image-pull-secrets,omitempty"` ImagePullSecretsErrors []byte `json:"cluster-resources/image-pull-secrets-errors.json,omitempty"` }
func (*ClusterResourcesOutput) Redact ¶
func (c *ClusterResourcesOutput) Redact() (*ClusterResourcesOutput, error)
type ClusterVersion ¶
type Collector ¶
type Collector struct { Collect *troubleshootv1beta1.Collect Redact bool }
func (*Collector) GetDisplayName ¶ added in v0.9.5
func (*Collector) RunCollectorSync ¶
type CopyOutput ¶
type ExecOutput ¶
type ExecOutput struct { Results map[string][]byte `json:"exec/,omitempty"` Errors map[string][]byte `json:"exec-errors/,omitempty"` }
func (*ExecOutput) Redact ¶
func (r *ExecOutput) Redact() (*ExecOutput, error)
type FoundSecret ¶
type HTTPOutput ¶
type LogsOutput ¶
type LogsOutput struct { PodLogs map[string][]byte `json:"logs/,omitempty"` Errors map[string][]byte `json:"logs-errors/,omitempty"` }
func (*LogsOutput) Redact ¶
func (l *LogsOutput) Redact() (*LogsOutput, error)
type SecretOutput ¶
type SecretOutput struct { FoundSecret map[string][]byte `json:"secrets/,omitempty"` Errors map[string][]byte `json:"secrets-errors/,omitempty"` }
func (*SecretOutput) Redact ¶
func (s *SecretOutput) Redact() (*SecretOutput, error)
Click to show internal directories.
Click to hide internal directories.