 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func ClusterInfo(ctx *Context) ([]byte, error)
- func ClusterResources(ctx *Context) ([]byte, error)
- func Copy(ctx *Context, copyCollector *troubleshootv1beta1.Copy) ([]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(ctx *Context, execCollector *troubleshootv1beta1.Exec) ([]byte, error)
- func HTTP(ctx *Context, httpCollector *troubleshootv1beta1.HTTP) ([]byte, error)
- func Logs(ctx *Context, logsCollector *troubleshootv1beta1.Logs) ([]byte, error)
- func ParseSpec(specContents string) (*troubleshootv1beta1.Collect, error)
- func Run(ctx *Context, runCollector *troubleshootv1beta1.Run) ([]byte, error)
- func Secret(ctx *Context, secretCollector *troubleshootv1beta1.Secret) ([]byte, error)
- type ClusterInfoOutput
- type ClusterResourcesOutput
- type ClusterVersion
- type Collector
- type Context
- 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
	ClientConfig *rest.Config
}
    func (*Collector) GetContext ¶ added in v0.9.6
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.