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 Data(ctx *Context, dataCollector *troubleshootv1beta1.Data) ([]byte, 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 IsRBACError(err error) bool
- func Logs(ctx *Context, logsCollector *troubleshootv1beta1.Logs) ([]byte, error)
- func Mysql(ctx *Context, databaseCollector *troubleshootv1beta1.Database) ([]byte, error)
- func Postgres(ctx *Context, databaseCollector *troubleshootv1beta1.Database) ([]byte, error)
- func Redis(ctx *Context, databaseCollector *troubleshootv1beta1.Database) ([]byte, 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 Collectors
- type Context
- type CopyOutput
- type DataOutput
- type DatabaseConnection
- type ExecOutput
- type FoundSecret
- type HTTPOutput
- type LogsOutput
- type MysqlOutput
- type PostgresOutput
- type RBACError
- type RedisOutput
- type RunOutput
- type SecretOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterInfo ¶
func ClusterResources ¶
func CreateCollector ¶
func Data ¶ added in v0.9.14
func Data(ctx *Context, dataCollector *troubleshootv1beta1.Data) ([]byte, error)
func DeterministicIDForCollector ¶
func DeterministicIDForCollector(collector *troubleshootv1beta1.Collect) string
func IsRBACError ¶ added in v0.9.15
func Mysql ¶ added in v0.9.27
func Mysql(ctx *Context, databaseCollector *troubleshootv1beta1.Database) ([]byte, error)
func Postgres ¶ added in v0.9.27
func Postgres(ctx *Context, databaseCollector *troubleshootv1beta1.Database) ([]byte, error)
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"` StatefulSets map[string][]byte `json:"cluster-resources/statefulsets,omitempty"` StatefulSetsErrors []byte `json:"cluster-resources/statefulsets-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"` Nodes []byte `json:"cluster-resources/nodes.json,omitempty"` NodesErrors []byte `json:"cluster-resources/nodes-errors.json,omitempty"` Groups []byte `json:"cluster-resources/groups.json,omitempty"` Resources []byte `json:"cluster-resources/resources.json,omitempty"` GroupsResourcesErrors []byte `json:"cluster-resources/groups-resources-errors.json,omitempty"` LimitRanges map[string][]byte `json:"cluster-resources/limitranges,omitempty"` LimitRangesErrors []byte `json:"cluster-ressources/limitranges-errors.json,omitempty"` // TODO these should be considered for relocation to an rbac or auth package. cluster resources might not be the right place AuthCanI map[string][]byte `json:"cluster-resources/auth-cani-list,omitempty"` AuthCanIErrors []byte `json:"cluster-resources/auth-cani-list-errors.json,omitempty"` }
func (*ClusterResourcesOutput) Redact ¶
func (c *ClusterResourcesOutput) Redact() (*ClusterResourcesOutput, error)
type ClusterVersion ¶
type Collector ¶
type Collector struct { Collect *troubleshootv1beta1.Collect Redact bool RBACErrors []error ClientConfig *rest.Config Namespace string }
func (*Collector) GetContext ¶ added in v0.9.6
func (*Collector) GetDisplayName ¶ added in v0.9.5
func (*Collector) RunCollectorSync ¶
type Collectors ¶ added in v0.9.15
type Collectors []*Collector
func (Collectors) CheckRBAC ¶ added in v0.9.15
func (cs Collectors) CheckRBAC() error
type CopyOutput ¶
func (CopyOutput) Redact ¶ added in v0.9.10
func (c CopyOutput) Redact() (CopyOutput, error)
type DataOutput ¶ added in v0.9.14
type DatabaseConnection ¶ added in v0.9.27
type ExecOutput ¶
func (ExecOutput) Redact ¶
func (r ExecOutput) Redact() (ExecOutput, error)
type FoundSecret ¶
type HTTPOutput ¶
type LogsOutput ¶
func (LogsOutput) Redact ¶
func (l LogsOutput) Redact() (LogsOutput, error)
type MysqlOutput ¶ added in v0.9.27
type PostgresOutput ¶ added in v0.9.27
type RedisOutput ¶ added in v0.9.27
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.