Documentation
¶
Index ¶
- func OnEvict(key string, _ CacheValue)
- type CacheValue
- type EndpointsReconciler
- type MetricsCollectionTrafficCache
- func (c *MetricsCollectionTrafficCache) GenerateValue(pods []cloudclient.K8sResourceEligibleForMetricsCollectionInput) (CacheValue, error)
- func (c *MetricsCollectionTrafficCache) Get(namespace string, reason cloudclient.EligibleForMetricsCollectionReason) (CacheValue, bool)
- func (c *MetricsCollectionTrafficCache) Set(namespace string, reason cloudclient.EligibleForMetricsCollectionReason, ...) bool
- type MetricsCollectionTrafficHandler
- type PodReconciler
- type ServiceReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnEvict ¶
func OnEvict(key string, _ CacheValue)
Types ¶
type CacheValue ¶
type CacheValue []byte
type EndpointsReconciler ¶
type EndpointsReconciler struct {
client.Client
injectablerecorder.InjectableRecorder
// contains filtered or unexported fields
}
func NewEndpointsReconciler ¶
func NewEndpointsReconciler(metricsCollectionTrafficHandler *MetricsCollectionTrafficHandler) *EndpointsReconciler
func (*EndpointsReconciler) InjectRecorder ¶
func (r *EndpointsReconciler) InjectRecorder(recorder record.EventRecorder)
func (*EndpointsReconciler) SetupWithManager ¶
func (r *EndpointsReconciler) SetupWithManager(mgr ctrl.Manager) error
type MetricsCollectionTrafficCache ¶
type MetricsCollectionTrafficCache struct {
// contains filtered or unexported fields
}
func NewMetricsCollectionTrafficCache ¶
func NewMetricsCollectionTrafficCache() *MetricsCollectionTrafficCache
func (*MetricsCollectionTrafficCache) GenerateValue ¶
func (c *MetricsCollectionTrafficCache) GenerateValue(pods []cloudclient.K8sResourceEligibleForMetricsCollectionInput) (CacheValue, error)
func (*MetricsCollectionTrafficCache) Get ¶
func (c *MetricsCollectionTrafficCache) Get(namespace string, reason cloudclient.EligibleForMetricsCollectionReason) (CacheValue, bool)
func (*MetricsCollectionTrafficCache) Set ¶
func (c *MetricsCollectionTrafficCache) Set(namespace string, reason cloudclient.EligibleForMetricsCollectionReason, value CacheValue) bool
type MetricsCollectionTrafficHandler ¶
type MetricsCollectionTrafficHandler struct {
client.Client
// contains filtered or unexported fields
}
func NewMetricsCollectionTrafficHandler ¶
func NewMetricsCollectionTrafficHandler(client client.Client, serviceIdResolver *serviceidresolver.Resolver, otterizeCloud cloudclient.CloudClient) *MetricsCollectionTrafficHandler
func (*MetricsCollectionTrafficHandler) HandleAllPodsInNamespace ¶
func (*MetricsCollectionTrafficHandler) HandleAllServicesInNamespace ¶
type PodReconciler ¶
type PodReconciler struct {
client.Client
injectablerecorder.InjectableRecorder
// contains filtered or unexported fields
}
func NewPodReconciler ¶
func NewPodReconciler(metricsCollectionTrafficHandler *MetricsCollectionTrafficHandler) *PodReconciler
func (*PodReconciler) InjectRecorder ¶
func (r *PodReconciler) InjectRecorder(recorder record.EventRecorder)
func (*PodReconciler) SetupWithManager ¶
func (r *PodReconciler) SetupWithManager(mgr ctrl.Manager) error
type ServiceReconciler ¶
type ServiceReconciler struct {
client.Client
injectablerecorder.InjectableRecorder
// contains filtered or unexported fields
}
func NewServiceReconciler ¶
func NewServiceReconciler(metricsCollectionTrafficHandler *MetricsCollectionTrafficHandler) *ServiceReconciler
func (*ServiceReconciler) InjectRecorder ¶
func (r *ServiceReconciler) InjectRecorder(recorder record.EventRecorder)
func (*ServiceReconciler) SetupWithManager ¶
func (r *ServiceReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.