Documentation
¶
Index ¶
- Constants
- func RequestWithPortForwarder(cli kube.CLIClient, nn types.NamespacedName, port int, reqPath string) ([]byte, error)
- type ConfigDump
- func (cd ConfigDump) CheckRBAC(_ context.Context, _ tbcollect.Collector, _ *troubleshootv1b2.Collect, ...) error
- func (cd ConfigDump) Collect(_ chan<- interface{}) (tbcollect.CollectorResult, error)
- func (cd ConfigDump) GetRBACErrors() []error
- func (cd ConfigDump) HasRBACErrors() bool
- func (cd ConfigDump) IsExcluded() (bool, error)
- func (cd ConfigDump) Title() string
- type CustomResource
- func (cr *CustomResource) CheckRBAC(_ context.Context, _ tbcollect.Collector, _ *troubleshootv1b2.Collect, ...) error
- func (cr *CustomResource) Collect(_ chan<- interface{}) (tbcollect.CollectorResult, error)
- func (cr *CustomResource) GetRBACErrors() []error
- func (cr *CustomResource) HasRBACErrors() bool
- func (cr *CustomResource) IsExcluded() (bool, error)
- func (cr *CustomResource) Title() string
- type EnvoyGatewayResource
- func (eg EnvoyGatewayResource) CheckRBAC(_ context.Context, _ tbcollect.Collector, _ *troubleshootv1b2.Collect, ...) error
- func (eg EnvoyGatewayResource) Collect(_ chan<- interface{}) (tbcollect.CollectorResult, error)
- func (eg EnvoyGatewayResource) GetRBACErrors() []error
- func (eg EnvoyGatewayResource) HasRBACErrors() bool
- func (eg EnvoyGatewayResource) IsExcluded() (bool, error)
- func (eg EnvoyGatewayResource) Title() string
- type PrometheusMetric
- func (p PrometheusMetric) CheckRBAC(_ context.Context, _ tbcollect.Collector, _ *troubleshootv1b2.Collect, ...) error
- func (p PrometheusMetric) Collect(_ chan<- interface{}) (tbcollect.CollectorResult, error)
- func (p PrometheusMetric) GetRBACErrors() []error
- func (p PrometheusMetric) HasRBACErrors() bool
- func (p PrometheusMetric) IsExcluded() (bool, error)
- func (p PrometheusMetric) Title() string
Constants ¶
View Source
const (
SecretsConfigDumpTypeURL = "type.googleapis.com/envoy.admin.v3.SecretsConfigDump"
)
Variables ¶
This section is empty.
Functions ¶
func RequestWithPortForwarder ¶ added in v1.2.0
Types ¶
type ConfigDump ¶
type ConfigDump struct {
BundlePath string
Namespace string
ClientConfig *rest.Config
EnableSDS bool
}
ConfigDump defines a collector that dumps the envoy configuration of the proxy pod.
func (ConfigDump) Collect ¶
func (cd ConfigDump) Collect(_ chan<- interface{}) (tbcollect.CollectorResult, error)
func (ConfigDump) GetRBACErrors ¶
func (cd ConfigDump) GetRBACErrors() []error
func (ConfigDump) HasRBACErrors ¶
func (cd ConfigDump) HasRBACErrors() bool
func (ConfigDump) IsExcluded ¶
func (cd ConfigDump) IsExcluded() (bool, error)
func (ConfigDump) Title ¶
func (cd ConfigDump) Title() string
type CustomResource ¶
type CustomResource struct {
BundlePath string
Namespace string
ClientConfig *rest.Config
Namespaces []string
IncludeGroups []string
}
CustomResource defines a custom resource collector, which collect custom resources from the cluster, with the given IncludeGroups and Namespaces.
func (*CustomResource) Collect ¶
func (cr *CustomResource) Collect(_ chan<- interface{}) (tbcollect.CollectorResult, error)
func (*CustomResource) GetRBACErrors ¶
func (cr *CustomResource) GetRBACErrors() []error
func (*CustomResource) HasRBACErrors ¶
func (cr *CustomResource) HasRBACErrors() bool
func (*CustomResource) IsExcluded ¶
func (cr *CustomResource) IsExcluded() (bool, error)
func (*CustomResource) Title ¶
func (cr *CustomResource) Title() string
type EnvoyGatewayResource ¶
EnvoyGatewayResource defines a collector for the Envoy Gateway resource from the given namespace. This is most like the CusterResource collector, but remove unnecessary types like StatefulSet, CornJob etc.
func (EnvoyGatewayResource) Collect ¶
func (eg EnvoyGatewayResource) Collect(_ chan<- interface{}) (tbcollect.CollectorResult, error)
func (EnvoyGatewayResource) GetRBACErrors ¶
func (eg EnvoyGatewayResource) GetRBACErrors() []error
func (EnvoyGatewayResource) HasRBACErrors ¶
func (eg EnvoyGatewayResource) HasRBACErrors() bool
func (EnvoyGatewayResource) IsExcluded ¶
func (eg EnvoyGatewayResource) IsExcluded() (bool, error)
func (EnvoyGatewayResource) Title ¶
func (eg EnvoyGatewayResource) Title() string
type PrometheusMetric ¶
PrometheusMetric defines a collector scraping Prometheus metrics from the selected pods.
func (PrometheusMetric) Collect ¶
func (p PrometheusMetric) Collect(_ chan<- interface{}) (tbcollect.CollectorResult, error)
func (PrometheusMetric) GetRBACErrors ¶
func (p PrometheusMetric) GetRBACErrors() []error
func (PrometheusMetric) HasRBACErrors ¶
func (p PrometheusMetric) HasRBACErrors() bool
func (PrometheusMetric) IsExcluded ¶
func (p PrometheusMetric) IsExcluded() (bool, error)
func (PrometheusMetric) Title ¶
func (p PrometheusMetric) Title() string
Click to show internal directories.
Click to hide internal directories.